diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-03-30 01:13:26 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-03-30 01:13:26 +0300 |
commit | 03a298cf1733fe651b0783e0b92914aaf3a4de96 (patch) | |
tree | b85906f82f94e3052d5a4c9a5ed9fba3fbe9cc1d /templates/page.html | |
parent | 21c3d8a7075e93612a72cd4fa37db3b25e7e9cd3 (diff) | |
download | yaroslavps.com-03a298cf1733fe651b0783e0b92914aaf3a4de96.tar.gz yaroslavps.com-03a298cf1733fe651b0783e0b92914aaf3a4de96.zip |
Add og:site_name meta tag
Diffstat (limited to 'templates/page.html')
-rw-r--r-- | templates/page.html | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/templates/page.html b/templates/page.html index 2ee72d6..4c9a18c 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,5 +1,12 @@ {% extends "base.html" %} {% block extrahead %} +{% if page.permalink is containing("weblog") %} +<meta property="og:site_name" content="{{ trans(key="weblog_title", lang=lang) }}" /> +{% elif page.permalink is containing("food") %} +<meta property="og:site_name" content="{{ trans(key="recipes_title", lang=lang) }}" /> +{% else %} +<meta property="og:site_name" content="{{ trans(key="website_title", lang=lang) }}" /> +{% endif %} <meta property="og:title" content="{{ page.title }}" /> <meta property="og:url" content="{{ page.permalink }}" /> <meta property="og:type" content="article" /> @@ -12,11 +19,11 @@ {% endblock %} {% block title %} {% if page.permalink is containing("weblog") %} -{{ page.title }} - Yaroslav's weblog +{{ page.title }} - {{ trans(key="weblog_title", lang=lang) }} {% elif page.permalink is containing("food") %} -{{ page.title }} - Yaroslav's recipe book +{{ page.title }} - {{ trans(key="recipes_title", lang=lang) }} {% else %} -{{ page.title }} - Yaroslav's website +{{ page.title }} - {{ trans(key="website_title", lang=lang) }} {% endif %} {% endblock %} {% block header %} |