summaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-02-19 21:53:26 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-02-19 21:53:26 +0100
commit58c838e31374d80431e5e2c1ac0f48d1802c5d95 (patch)
treec7c70bb4f644290ddd9e40d770dfad9c8fddb9fa /src/templates
parentd407af65cad96d5edee927aec66ae4cc07edeb7a (diff)
downloadwebsite-58c838e31374d80431e5e2c1ac0f48d1802c5d95.tar.xz
Add keyword/description support to templates
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/entry.html6
-rw-r--r--src/templates/page.html9
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">