summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-07-18 23:46:06 +0100
committerTomasz Kramkowski <tk@the-tk.com>2018-07-18 23:55:42 +0100
commitc34ae6fed8503c6f8b27b4bd55cf26bb3f47ad23 (patch)
treea50e1f923f5101846e440fba4b076b14d8ac6b4b /templates
downloadthe-tk.com-c34ae6fed8503c6f8b27b4bd55cf26bb3f47ad23.tar.gz
the-tk.com-c34ae6fed8503c6f8b27b4bd55cf26bb3f47ad23.tar.xz
the-tk.com-c34ae6fed8503c6f8b27b4bd55cf26bb3f47ad23.zip
init commit
Diffstat (limited to 'templates')
-rw-r--r--templates/blog.html7
-rw-r--r--templates/default.html46
-rw-r--r--templates/error.html5
-rw-r--r--templates/index.html22
-rw-r--r--templates/post.html16
-rw-r--r--templates/project.html16
-rw-r--r--templates/projects.html11
-rw-r--r--templates/tag.html7
8 files changed, 130 insertions, 0 deletions
diff --git a/templates/blog.html b/templates/blog.html
new file mode 100644
index 0000000..658f69d
--- /dev/null
+++ b/templates/blog.html
@@ -0,0 +1,7 @@
+{% extends "default.html" %}
+{% block content %}
+<h1>Posts</h1>
+<ul class="postlist">{% for post in page.posts %}
+ <li><time>{{ post.date|datefmt }}</time> | <a href="{{ '/' + post.location }}">{{ post.title }}</a>{% endfor %}
+</ul>
+{% endblock %}
diff --git a/templates/default.html b/templates/default.html
new file mode 100644
index 0000000..337cb20
--- /dev/null
+++ b/templates/default.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ {% block head %}
+ <title>{{ page.title }}</title>
+ <link rel="stylesheet" href="/style.css" />
+ <link rel="icon" type="image/png" sizes="32x32" href="/images/icon32x32.png" />
+ <link rel="icon" type="image/png" sizes="16x16" href="/images/icon16x16.png" />
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="description" content="{{ page.description }}" />
+ <meta name="author" content="Tomasz Kramkowski <tk@the-tk.com>" />
+ <meta name="keywords" content="{{ page.keywords }}" />
+ {% endblock %}
+ </head>
+ <body>
+ <main>
+ <header>
+ <nav>
+ <a href="{{ site.baseurl }}/">the-tk.com</a>
+ | <a href="{{ site.baseurl }}/blog.html">Blog</a>
+ | <a href="{{ site.baseurl }}/projects.html">Projects</a>
+ </nav>
+ </header>
+ <hr />
+ {% block content %}{% endblock %}
+ <hr />
+ <footer>
+ <a href="mailto:website-inquiries@the-tk.com">contact</a>
+ • <a href="https://github.com/EliteTK">github</a>
+ • <a href="https://the-tk.com/cgit">cgit</a>
+ • <a href="https://the-tk.com/archive">ML archive</a>
+ • <a href="http://www.catb.org/hacker-emblem/"><img class="icon" src="/images/glider-yellow.png" alt="Hacker Emblem" /></a>
+ • <a href="https://www.eff.org/"><img class="icon" src="/images/EFF.png" alt="EFF Logo" /></a>
+ • <a href="https://www.fsf.org/"><img class="icon" src="/images/GNU.png" alt="GNU Logo" /></a>
+ </footer>
+ </main>
+ <div id="copyright">
+ Copyright © Tomasz Kramkowski.
+ <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" src="/images/ccbysa.png" /></a><br />
+ All hosted work, unless otherwise specified, is available under a
+ <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>
+ International License.<br />
+ </div>
+ </body>
+</html>
diff --git a/templates/error.html b/templates/error.html
new file mode 100644
index 0000000..23ba358
--- /dev/null
+++ b/templates/error.html
@@ -0,0 +1,5 @@
+{% extends "default.html" %}
+{% block content %}
+<h1>Error</h1>
+<h2>{{ page.code }} - {{ page.error }}</h2>
+{% endblock %}
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..c32a7fb
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,22 @@
+{% extends "default.html" %}
+{% block content %}
+<h1>Welcome</h1>
+
+<p>Welcome, this is my website, an under-maintained infodump. Hopefully you'll find something useful here.</p>
+
+<h2>Recent blogposts:</h2>
+<ul class="postlist">{% for post in page.posts %}
+ <li>
+ <article>
+ <header>
+ <h3>{{ post.title }}</h3>
+ </header>
+ {{ post.pre }}
+ <a href="/{{ post.location }}">Read more...</a>
+ <footer>
+ <time>{{ post.date|datefmt }}</time>
+ </footer>
+ </article>
+ </li>
+{% endfor %}</ul>
+{% endblock %}
diff --git a/templates/post.html b/templates/post.html
new file mode 100644
index 0000000..6cb47c3
--- /dev/null
+++ b/templates/post.html
@@ -0,0 +1,16 @@
+{% extends "default.html" %}
+{% block content %}
+<article>
+ <header>
+ <h1>{{ page.title }}</h1>
+ </header>
+ {{ page.content }}
+ <footer>{% if page.tags %}
+ <ul class="taglist">
+ <li>Tags:</li>{% for tag in page.tags %}
+ <li><a href="{{ '/tag/' + tag + '.html' }}">{{ tag }}</a></li>{% endfor %}
+ </ul>{% endif %}
+ <time>{{ page.date|datefmt }}</time>
+ </footer>
+</article>
+{% endblock %}
diff --git a/templates/project.html b/templates/project.html
new file mode 100644
index 0000000..15e4d9a
--- /dev/null
+++ b/templates/project.html
@@ -0,0 +1,16 @@
+{% extends "default.html" %}
+{% block content %}
+<h1>{{ page.title }}</h1>
+{{ page.content }}
+{% if page.source or page.ml %}<hr />
+<dl>
+{% if page.source %}<dt>Source</dt>
+ <dd><a href="{{ page.source }}">{{ page.source }}</a></dd>{% endif %}
+{% if page.ml %}<dt>Mailing list</dt>
+ <dd><a href="mailto:{{ page.ml }}@the-tk.com">{{ page.ml }}@the-tk.com</a>
+ (<a href="https://the-tk.com/archive/{{ page.ml }}/">archive</a>)</dd>{% endif %}
+{% if page.aur %}<dt>AUR</dt>
+<dd><a href="https://aur.archlinux.org/packages/{{ page.aur }}">{{ page.aur }}</a></dd>{% endif %}
+</dl>
+{% endif %}</article>
+{% endblock %}
diff --git a/templates/projects.html b/templates/projects.html
new file mode 100644
index 0000000..7405542
--- /dev/null
+++ b/templates/projects.html
@@ -0,0 +1,11 @@
+{% extends "default.html" %}
+{% block content %}
+<h1>Projects</h1>
+<ul class="projects">{% for project in page.projects %}
+ <li>
+ <h2>{{ project.name }}</h2>
+ <p>{{ project.description }}</p>
+ <a href="{{ '/' + project.location }}">More info...</a>
+ </li>{% endfor %}
+</ul>
+{% endblock %}
diff --git a/templates/tag.html b/templates/tag.html
new file mode 100644
index 0000000..47c5fa0
--- /dev/null
+++ b/templates/tag.html
@@ -0,0 +1,7 @@
+{% extends "default.html" %}
+{% block content %}
+<h1>Posts tagged - {{ page.tag }}</h1>
+<ul class="postlist">{% for post in page.posts %}
+ <li><time>{{ post.date|datefmt }}</time> | <a href="{{ '/' + post.location }}">{{ post.title }}</a>{% endfor %}
+</ul>
+{% endblock %}