summaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-18 14:14:30 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-18 14:14:30 +0200
commitb944832d593683e54c216d23bb493b302b521e29 (patch)
tree6c4376d642e8245a6a41e44d4a8e090a481185bb /src/templates
parent80e38791f41cf326e43946e306157daa7d7e08e1 (diff)
downloadtheos-website-b944832d593683e54c216d23bb493b302b521e29.tar.xz
convert root page to reST like ~kyrias/
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/layout.html33
-rw-r--r--src/templates/page.html12
2 files changed, 45 insertions, 0 deletions
diff --git a/src/templates/layout.html b/src/templates/layout.html
new file mode 100644
index 0000000..22625f5
--- /dev/null
+++ b/src/templates/layout.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>{{ title }}</title>
+ <link href="style.css" rel="stylesheet">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="author" content="Johannes Löthberg">
+
+{% block head %}{% endblock %}
+</head>
+<body itemscope itemtype="http://schema.org/WebPage">
+<header>
+ <nav>
+ <ul>
+ <li><a href="https://theos.kyriasis.com/">theos/</a></li>
+ <li><a href="http://git.kyriasis.com/">cgit/</a></li>
+ <li><a href="https://theos.kyriasis.com:6697/">znc/</a></li>
+ </ul>
+ </nav>
+ <h1>{{ header }}</h1>
+</header>
+
+{% block content %}{% endblock %}
+<footer>
+ <div id="foot-left">
+ <p id="copy">
+ © <span itemprop="copyrightYear">2014</span>
+ by <span itemprop="copyrightHolder">Johannes Löthberg</span>
+ </p>
+</footer>
+</body>
+</html>
diff --git a/src/templates/page.html b/src/templates/page.html
new file mode 100644
index 0000000..3c5d29a
--- /dev/null
+++ b/src/templates/page.html
@@ -0,0 +1,12 @@
+{% extends 'layout.html' %}
+
+{% block content %}
+ <article id="{{ page.article_id }}" class="botborder" itemprop="mainContentOfPage">
+
+ {{ page.body }}
+
+ <p id="last-upd">Last updated <time itemprop="dateModified" datetime="{{ page.date }}">{{ page.date }}</time></p>
+ <p id="author"><a rel="author" href="{{ page.author_link }}">{{ page.author }}</a></p>
+
+ </article>
+{% endblock content %}