aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.toml3
-rw-r--r--templates/page.html13
2 files changed, 13 insertions, 3 deletions
diff --git a/config.toml b/config.toml
index 3376afa..bd3fa77 100644
--- a/config.toml
+++ b/config.toml
@@ -22,6 +22,7 @@ highlight_theme = "1337"
[languages.en.translations]
full_name = "Yaroslav de la Peña Smirnov"
first_name = "Yaroslav"
+website_title = "Yaroslav's website"
weblog_title = "Yaroslav's weblog"
recipes_title = "Yaroslav's recipe book"
published = "Published"
@@ -44,6 +45,7 @@ generate_feed = false
[languages.es.translations]
full_name = "Yaroslav de la Peña Smirnov"
first_name = "Yaroslav"
+website_title = "Sitio web de Yaroslav"
weblog_title = "Weblog de Yaroslav"
recipes_title = "Recetario de Yaroslav"
published = "Publicado el"
@@ -66,6 +68,7 @@ generate_feed = false
[languages.ru.translations]
full_name = "Ярослав де ла Пенья Смирнов"
first_name = "Ярослав"
+website_title = "Веб-сайт Ярослава"
weblog_title = "Веб-журнал Ярослава"
recipes_title = "Книга рецептов Ярослава"
published = "Опубликовано"
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 %}