Skip to content

Commit 4817639

Browse files
Fix title spaces and a few links (alshedivat#789)
* fix title * fix a few links * add line
1 parent 96e794f commit 4817639

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
redirect: true
77
---
88

9-
<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>
9+
<p>You will be redirected to the main page within 3 seconds. If not redirected, please click <a href="{{ site.baseurl }}/">here</a>.</p>

_includes/header.html

+14-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,20 @@
55
<nav id="navbar" class="navbar navbar-light navbar-expand-sm {% if site.navbar_fixed %}fixed-top{% else %}sticky-top{% endif %}">
66
<div class="container">
77
{% if page.permalink != '/' -%}
8-
<a class="navbar-brand title font-weight-lighter" href="{{ site.baseurl | prepend: site.url }}/">
9-
{%- if site.title == "blank" -%}<span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }} {{ site.last_name }}{%- else -%}{{ site.title }}{%- endif -%}
8+
<a class="navbar-brand title font-weight-lighter" href="{{ site.baseurl }}/">
9+
{%- if site.title == "blank" -%}
10+
{%- if site.first_name -%}
11+
<span class="font-weight-bold">{{- site.first_name -}}&nbsp;</span>
12+
{%- endif -%}
13+
{%- if site.middle_name -%}
14+
{{- site.middle_name -}}&nbsp;
15+
{%- endif -%}
16+
{%- if site.last_name -%}
17+
{{- site.last_name -}}
18+
{%- endif -%}
19+
{%- else -%}
20+
{{- site.title -}}
21+
{%- endif -%}
1022
</a>
1123
{%- elsif site.enable_navbar_social -%}
1224
<!-- Social Icons -->

_includes/social.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@
5353
<a href="https://stackoverflow.com/users/{{ site.stackoverflow_id }}" title="Stackoverflow"><i class="fab fa-stack-overflow"></i></a>
5454
{% endif %}
5555
{%- if site.rss_icon -%}
56-
<a href="{{ site.baseurl | prepend: site.url }}/feed.xml" title="RSS Feed"><i class="fas fa-rss-square"></i></a>
57-
{% endif %}
56+
<a href="{{ site.baseurl }}/feed.xml" title="RSS Feed"><i class="fas fa-rss-square"></i></a>
57+
{% endif %}

_layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!-- Head -->
55
<head>
66
{%- if page.redirect -%}
7-
<meta http-equiv="refresh" content="3; url={{ site.baseurl | prepend: site.url }}/" />
7+
<meta http-equiv="refresh" content="3; url={{ site.baseurl }}/" />
88
{%- endif -%}
99
{% include head.html %}
1010
</head>

0 commit comments

Comments
 (0)