aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-12 09:44:56 -0300
committerEuAndreh <eu@euandre.org>2020-08-12 09:44:56 -0300
commite6ac45cabf6e4a52a4a03ba82e5de79a3dbcd9be (patch)
tree00f62bae65f0a6f4ce1571ad4e91107a4ddee41e
parentdefault.html: Fix missing link in <link alternate> (diff)
downloadeuandre.org-e6ac45cabf6e4a52a4a03ba82e5de79a3dbcd9be.tar.gz
euandre.org-e6ac45cabf6e4a52a4a03ba82e5de79a3dbcd9be.tar.xz
default.html: Add page title meta attribute only when it exists
-rw-r--r--_layouts/default.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 535fc54..79284fb 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -12,7 +12,9 @@
<meta property="og:site_name" content="{{ site.title }}" />
<meta name="author" content="{{ site.author.name }}" />
<meta property="og:locale" content="{{ page.lang }}" />
- <meta property="og:title" content="{{ page.title | xml_escape }}" />
+ {% if page.title %}
+ <meta property="og:title" content="{{ page.title | xml_escape }}" />
+ {% endif %}
<link rel="canonical" href="{{ page.url | absolute_url }}" />
<meta property="og:url" content="{{ page.url | absolute_url }}" />