Skip to content

Commit bb88148

Browse files
committed
Fix page descriptions
1 parent 5b710c7 commit bb88148

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

_includes/head.html

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
44
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
55

6-
{% if title == "Home" %}
7-
<meta name="description" content="Homepage of Thanos Kolovos" />
6+
{% if description == nil %}
7+
<meta name="description" content="Personal Blog of Thanos Kolovos" />
88
{% else %}
9-
<meta name="description" content="{{ page.description }}" />
9+
<meta name="description" content="{{ description }}" />
1010
{% endif %}
1111
<title>
1212
{% if title == "Home" %} {{ site.title }} &middot; Homepage of Thanos
@@ -39,16 +39,27 @@
3939
property="og:image"
4040
content="{{ site.url }}/assets/img/social/linkedin.png?v=2"
4141
/>
42+
{% endif %} {% if description == nul %}
43+
<meta property="og:description" content="Personal Blog of Thanos Kolovos" />
44+
{% else %}
45+
<meta property="og:description" content="{{ description }}" />
4246
{% endif %}
43-
<meta property="og:description" content="{{ page.description }}" />
47+
4448
<meta property="og:image:width" content="400" />
4549
<meta property="og:image:height" content="400" />
4650

4751
<!-- Twitter Tags -->
4852
<meta name="twitter:card" content="summary" />
4953
<meta name="twitter:site" content="@codegaze" />
5054
<meta name="twitter:title" content="{{ title }}" />
51-
<meta name="twitter:description" content="{{ page.description }}" />
55+
{% if description == nul %}
56+
<meta
57+
property="twitter:description"
58+
content="Personal Blog of Thanos Kolovos"
59+
/>
60+
{% else %}
61+
<meta property="twitter:description" content="{{ description }}" />
62+
{% endif %}
5263
<meta name="twitter:creator" content="@codegaze" />
5364
<meta
5465
name="twitter:image"

0 commit comments

Comments
 (0)