diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-02-19 21:53:26 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-02-19 21:53:26 +0100 |
commit | 58c838e31374d80431e5e2c1ac0f48d1802c5d95 (patch) | |
tree | c7c70bb4f644290ddd9e40d770dfad9c8fddb9fa /src/templates/page.html | |
parent | d407af65cad96d5edee927aec66ae4cc07edeb7a (diff) | |
download | website-58c838e31374d80431e5e2c1ac0f48d1802c5d95.tar.xz |
Add keyword/description support to templates
Diffstat (limited to 'src/templates/page.html')
-rw-r--r-- | src/templates/page.html | 9 |
1 files changed, 9 insertions, 0 deletions
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"> |