Skip to content

Commit

Permalink
Fix title spaces and a few links (alshedivat#789)
Browse files Browse the repository at this point in the history
* fix title

* fix a few links

* add line
  • Loading branch information
rohandebsarkar authored Jul 28, 2022
1 parent 96e794f commit 4817639
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
redirect: true
---

<p>You will be redirected to the main page within 3 seconds. If not redirected, please click <a href="{{ site.baseurl | prepend: site.url }}/">here</a>.</p>
<p>You will be redirected to the main page within 3 seconds. If not redirected, please click <a href="{{ site.baseurl }}/">here</a>.</p>
16 changes: 14 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,20 @@
<nav id="navbar" class="navbar navbar-light navbar-expand-sm {% if site.navbar_fixed %}fixed-top{% else %}sticky-top{% endif %}">
<div class="container">
{% if page.permalink != '/' -%}
<a class="navbar-brand title font-weight-lighter" href="{{ site.baseurl | prepend: site.url }}/">
{%- if site.title == "blank" -%}<span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }} {{ site.last_name }}{%- else -%}{{ site.title }}{%- endif -%}
<a class="navbar-brand title font-weight-lighter" href="{{ site.baseurl }}/">
{%- if site.title == "blank" -%}
{%- if site.first_name -%}
<span class="font-weight-bold">{{- site.first_name -}}&nbsp;</span>
{%- endif -%}
{%- if site.middle_name -%}
{{- site.middle_name -}}&nbsp;
{%- endif -%}
{%- if site.last_name -%}
{{- site.last_name -}}
{%- endif -%}
{%- else -%}
{{- site.title -}}
{%- endif -%}
</a>
{%- elsif site.enable_navbar_social -%}
<!-- Social Icons -->
Expand Down
4 changes: 2 additions & 2 deletions _includes/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@
<a href="https://stackoverflow.com/users/{{ site.stackoverflow_id }}" title="Stackoverflow"><i class="fab fa-stack-overflow"></i></a>
{% endif %}
{%- if site.rss_icon -%}
<a href="{{ site.baseurl | prepend: site.url }}/feed.xml" title="RSS Feed"><i class="fas fa-rss-square"></i></a>
{% endif %}
<a href="{{ site.baseurl }}/feed.xml" title="RSS Feed"><i class="fas fa-rss-square"></i></a>
{% endif %}
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- Head -->
<head>
{%- if page.redirect -%}
<meta http-equiv="refresh" content="3; url={{ site.baseurl | prepend: site.url }}/" />
<meta http-equiv="refresh" content="3; url={{ site.baseurl }}/" />
{%- endif -%}
{% include head.html %}
</head>
Expand Down

0 comments on commit 4817639

Please sign in to comment.