diff options
-rw-r--r-- | src/templates/entry.html | 6 | ||||
-rw-r--r-- | src/templates/page.html | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/templates/entry.html b/src/templates/entry.html index 4335bbf..9cd4f78 100644 --- a/src/templates/entry.html +++ b/src/templates/entry.html @@ -3,6 +3,12 @@ {% block head %} <link href="isso.css" rel="stylesheet"> <link href="../journal.xml" type="application/atom+xml" rel="alternate" title="kyrias’ journal atom feed" /> + {% if page.meta_desc is defined %} + <meta name="description" content="{{ page.meta_desc }}"> + {% endif %} + {% if page.meta_keywords is defined %} + <meta name="keywords" content="{{ page.meta_keywords }}"> + {% endif %} {% endblock head %} {% block content %} diff --git a/src/templates/page.html b/src/templates/page.html index 3c5d29a..fab4c1e 100644 --- a/src/templates/page.html +++ b/src/templates/page.html @@ -1,5 +1,14 @@ {% extends 'layout.html' %} +{% block head %} + {% if page.meta_desc is defined %} + <meta name="description" content="{{ page.meta_desc }}"> + {% endif %} + {% if page.meta_keywords is defined %} + <meta name="keywords" content="{{ page.meta_keywords }}"> + {% endif %} +{% endblock head %} + {% block content %} <article id="{{ page.article_id }}" class="botborder" itemprop="mainContentOfPage"> |