diff options
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 %} |