diff options
author | EuAndreh <eu@euandre.org> | 2020-08-12 09:44:56 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-12 09:44:56 -0300 |
commit | e6ac45cabf6e4a52a4a03ba82e5de79a3dbcd9be (patch) | |
tree | 00f62bae65f0a6f4ce1571ad4e91107a4ddee41e /_layouts/default.html | |
parent | default.html: Fix missing link in <link alternate> (diff) | |
download | euandre.org-e6ac45cabf6e4a52a4a03ba82e5de79a3dbcd9be.tar.gz euandre.org-e6ac45cabf6e4a52a4a03ba82e5de79a3dbcd9be.tar.xz |
default.html: Add page title meta attribute only when it exists
Diffstat (limited to '_layouts/default.html')
-rw-r--r-- | _layouts/default.html | 4 |
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 }}" /> |