aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/article.html25
-rw-r--r--templates/article_link.inc.html3
-rw-r--r--templates/article_summary.inc.html9
-rw-r--r--templates/base.html92
-rw-r--r--templates/category.html12
-rw-r--r--templates/humans.html16
-rw-r--r--templates/index.html12
-rw-r--r--templates/links.html6
-rw-r--r--templates/metadata.inc.html6
-rw-r--r--templates/page.html9
-rw-r--r--templates/pagination.inc.html15
-rw-r--r--templates/projects.html13
-rw-r--r--templates/sitemap.html32
-rw-r--r--templates/tag.html12
14 files changed, 262 insertions, 0 deletions
diff --git a/templates/article.html b/templates/article.html
new file mode 100644
index 0000000..1332097
--- /dev/null
+++ b/templates/article.html
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+{% block title %}{{ article.title }} - {{ SITENAME }}{% endblock %}
+
+{% block extra_meta %}
+ <meta name="description" content="{{ article.summary|striptags }}">
+{% endblock %}
+
+{% block content %}
+<div class="level">
+ <div class="level-left" style="margin-top: auto">
+ <div class="level-item">
+ <h1 class="title">{{ article.title }}</h1>
+ </div>
+ </div>
+ <div class="level-right">
+ <div class="level-item">
+ {% include 'metadata.inc.html' %}
+ </div>
+ </div>
+</div>
+<hr>
+<article class="content">
+ {{ article.content }}
+</article>
+{% endblock %}
diff --git a/templates/article_link.inc.html b/templates/article_link.inc.html
new file mode 100644
index 0000000..1897fc5
--- /dev/null
+++ b/templates/article_link.inc.html
@@ -0,0 +1,3 @@
+<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title }}</a> [<time datetime="{{ article.date }}" pubdate>{{ article.locale_date }}</time>]
+{% if article.tags %}<span>{% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}" class="tag is-link mx-1">{{ tag }}</a>{% endfor %}</span>{% endif %}
+<p>{{ article.summary|safe }}</p>
diff --git a/templates/article_summary.inc.html b/templates/article_summary.inc.html
new file mode 100644
index 0000000..9aa6947
--- /dev/null
+++ b/templates/article_summary.inc.html
@@ -0,0 +1,9 @@
+<article class="summary">
+ {% include 'metadata.inc.html' %}
+ <div>
+ <h2>
+ <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a>
+ </h2>
+ <p>{{ article.summary }}</p>
+ </div>
+</article>
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..2c1dfb3
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,92 @@
+<!DOCTYPE html>
+<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
+<head>
+ <meta charset="utf-8"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="author" content="{{ AUTHOR }}">
+ {% block extra_meta %}
+ {% endblock %}
+
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.0/css/bulma.min.css" integrity="sha256-aPeK/N8IHpHsvPBCf49iVKMdusfobKo2oxF8lRruWJg=" crossorigin="anonymous">
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
+ <link rel="author" href="humans.txt" />
+
+ <title>{% block title %}{{ SITENAME }}{% endblock %}</title>
+</head>
+<!--
+ __ __
+/\ \/\ \
+\ \ \ \ \ __ _ __ ____ ___ ___ ___ __ ___
+ \ \ \ \ \ /'__`\/\`'__\/',__\ / __`\ /' _ `\ /' _ `\ /'__`\/' _ `\
+ \ \ \_/ \/\ __/\ \ \//\__, `\/\ \L\ \/\ \/\ \/\ \/\ \/\ __//\ \/\ \
+ \ `\___/\ \____\\ \_\\/\____/\ \____/\ \_\ \_\ \_\ \_\ \____\ \_\ \_\
+ `\/__/ \/____/ \/_/ \/___/ \/___/ \/_/\/_/\/_/\/_/\/____/\/_/\/_/
+
+COPYRIGHT (C) 2014-2020 Hans-Nikolai Viessmann
+To see a full changelog, navigate to https://blog.viess.mn/CHANGELOG.txt
+
+This website (https://blog.viess.mn) and its content is the property of Hans-Nikolai
+Viessmann (hans [at] viess [dot] mn), unless otherwise stated. The website and its
+content are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0
+Unported License, unless otherwise stated.
+
+Full details of the license can be found at http://creativecommons.org or directly
+at http://creativecommons.org/licenses/by-nc-sa/3.0/.
+
+This website was made using tools and frameworks made by amazing people. Please look
+at the humans.txt file at https://blog.viess.mn/humans.txt for more information.
+
+"If you meet the Buddha, kill him."
+ - Linji Yixuan
+-->
+<body class="sticky">
+ <div class="sticky-skip">
+ <header>
+ <nav class="navbar has-shadow" role="navigation" aria-label="main navigation">
+ <div class="container">
+ <div class="navbar-brand">
+ <a class="navbar-item is-size-4 is-family-monospace" title="From German meaning to be deep in thought, dreaming" href="/">versonnen</a>
+ <a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false">
+ <span aria-hidden="true"></span>
+ <span aria-hidden="true"></span>
+ <span aria-hidden="true"></span>
+ </a>
+ </div>
+ <div class="navbar-menu">
+ <div class="navbar-start">
+ <a class="navbar-item" href="#">About Me</a>
+ <a class="navbar-item" href="/pages/projects/">Projects</a>
+ <a class="navbar-item" href="/pages/links/">Links</a>
+ </div>
+ </div>
+ </div>
+ </nav>
+ </header>
+ <main class="container my-5">
+ {% block content -%}
+ {%- endblock content %}
+ </main>
+ </div>
+ <footer class="footer footer-sticky">
+ <div class="container">
+ <div class="columns is-vcentered">
+ <div class="column">
+ <div class="my-2"><span class="tag is-info is-medium has-text-weight-bold">TL;DR</span> I am a computer scientist from Germany working in the The Netherlands</div>
+ <div class="my-2"><span class="tag is-info is-medium has-text-weight-bold">WORKING ON</span> My PhD thesis...</div>
+ <div class="my-2"><span class="tag is-info is-medium has-text-weight-bold">CONTACT</span> Email me at <em>h<span>a</span>ns</em><span></span>@<span></span><em>vie<span></span>ss<span></span>.<span></span>m<span>n</span></em></div>
+ </div>
+ <div class="column" align="right">
+ <div class="my-2"><a rel="author" href="/humans.txt"><img alt="Humans.txt" src="{{ SITEURL }}/theme/images/humanstxt-isolated-blank.gif"/></a></div>
+ <div class="my-2"><a href="//www.w3.org/html/"><img src="//www.w3.org/html/logo/badge/html5-badge-h-css3-semantics.png" width="83" height="33" alt="HTML5 Powered with CSS3 / Styling, and Semantics" title="HTML5 Powered with CSS3 / Styling, and Semantics"></a></div>
+ <div class="my-2"><a rel="license" href="//creativecommons.org/licenses/by-nc-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="//i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" /></a></div>
+ </div>
+ </div>
+ <div class="content has-text-centered">
+ <a href="{{ SITEURL }}">blog</a> &mdash; <a href="/pages/about-me/">about me</a> &mdash; <a href="/tags.html">tags</a> &mdash; <a href="/categories.html">categories</a> &mdash; <a href="/pages/projects/">projects</a> &mdash; <a href="/pages/links/">links</a> &mdash; <a href="/pages/acknowledgements/">acknowledgements</a>
+ </div>
+ </div>
+ </footer>
+ {% block scripts -%}
+ {%- endblock scripts %}
+</body>
+</html>
diff --git a/templates/category.html b/templates/category.html
new file mode 100644
index 0000000..2c4a99a
--- /dev/null
+++ b/templates/category.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+{% block title %}{{ category }} - {{ SITENAME }}{% endblock %}
+
+{% block content %}
+<h1 class="title">{{ category.name.capitalize() }}</h1>
+<h2 class="subtitle">Article Category</h2>
+<ol>
+{% for article in articles %}
+ {% include 'article_link.inc.html' %}
+{% endfor %}
+</ol>
+{% endblock %}
diff --git a/templates/humans.html b/templates/humans.html
new file mode 100644
index 0000000..b80fea2
--- /dev/null
+++ b/templates/humans.html
@@ -0,0 +1,16 @@
+/* TEAM */
+ Creator: Hans-Nikolai Viessmann
+ Contact: hans [at] viess.mn
+ From: Germany
+ In: The Netherlands
+
+/* SITE */
+ Site Last Updated: {{ COMMITDATE }}
+ Language(s): English
+ Standards: HTML5, CSS3, Javascript
+ Components:
+ Pelican, BULMA CSS
+ Software:
+ ArchLinux, GIT, VIM, Firefox
+ Hardware: Dell (9550) laptop, Clevo (EN251W) laptop
+ Services: Self-hosted, Github-Pages
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..3b7de1e
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1 class="title">Articles</h1>
+<ul>
+{% for article in articles %}
+ <li class="py-2">
+ {% include 'article_link.inc.html' %}
+ </li>
+{% endfor %}
+</ul>
+{% endblock content %}
diff --git a/templates/links.html b/templates/links.html
new file mode 100644
index 0000000..a2fa798
--- /dev/null
+++ b/templates/links.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+{% block title %}Links - {{ SITENAME }}{% endblock %}
+
+{% block content %}
+<h1 class="title">Links</h1>
+{% endblock %}
diff --git a/templates/metadata.inc.html b/templates/metadata.inc.html
new file mode 100644
index 0000000..85011c2
--- /dev/null
+++ b/templates/metadata.inc.html
@@ -0,0 +1,6 @@
+<div>
+ <div><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time></div>
+ {% if article and article.modified %}<div><em>(modified <time datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time>)</em></div>{% endif %}
+ <div class="mb-2">Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></div>
+ {% if article.tags %}<p class="tags">{% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}" class="tag is-link">{{ tag }}</a>{% endfor %}</p>{% endif %}
+</div>
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..f020cf6
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+{% block title %}{{ page.title }} - {{ SITENAME }}{% endblock %}
+
+{% block content %}
+<h1 class="title">{{ page.title }}</h1>
+<div class="content">
+ {{ page.content }}
+</div>
+{% endblock %}
diff --git a/templates/pagination.inc.html b/templates/pagination.inc.html
new file mode 100644
index 0000000..64a80b3
--- /dev/null
+++ b/templates/pagination.inc.html
@@ -0,0 +1,15 @@
+{% if DEFAULT_PAGINATION %}
+<div class="pagination">
+ {% if articles_page.has_previous() %}
+ {% if articles_page.previous_page_number() == 1 %}
+ <a href="{{ SITEURL }}/{{ page_name }}.html">&laquo;</a>
+ {% else %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">&laquo;</a>
+ {% endif %}
+ {% endif %}
+ Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
+ {% if articles_page.has_next() %}
+ <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">&raquo;</a>
+ {% endif %}
+</div>
+{% endif %}
diff --git a/templates/projects.html b/templates/projects.html
new file mode 100644
index 0000000..d227900
--- /dev/null
+++ b/templates/projects.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+{% block title %}Projects - {{ SITENAME }}{% endblock %}
+
+{% block content %}
+<h1 class="title">Projects</h1>
+<ul>
+{% for article in articles if article.category.name == 'project' %}
+ <li>
+ {% include 'article_link.inc.html' %}
+ </li>
+{% endfor %}
+</ul>
+{% endblock %}
diff --git a/templates/sitemap.html b/templates/sitemap.html
new file mode 100644
index 0000000..e844e0b
--- /dev/null
+++ b/templates/sitemap.html
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+
+{% for article in articles %}
+ <url>
+ <loc>{{ SITEURL }}/{{ article.url }}</loc>
+ <priority>0.8</priority>
+ </url>
+
+ {% for translation in article.translations %}
+ <url>
+ <loc>{{ SITEURL }}/{{ translation.url }}</loc>
+ <priority>0.8</priority>
+ </url>
+ {% endfor %}
+{% endfor %}
+
+{% for page in pages %}
+ <url>
+ <loc>{{ SITEURL }}/{{ page.url }}</loc>
+ <priority>1.0</priority>
+ </url>
+
+ {% for translation in page.translations %}
+ <url>
+ <loc>{{ SITEURL }}/{{ translation.url }}</loc>
+ <priority>1.0</priority>
+ </url>
+ {% endfor %}
+{% endfor %}
+
+</urlset>
diff --git a/templates/tag.html b/templates/tag.html
new file mode 100644
index 0000000..0456e0e
--- /dev/null
+++ b/templates/tag.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+{% block title %}{{ tag }} - {{ SITENAME }}{% endblock %}
+
+{% block content %}
+<h1 class="title">{{ tag.name.capitalize() }}</h1>
+<h2 class="subtitle">Article Tag</h2>
+<ol>
+{% for article in articles %}
+ {% include 'article_link.inc.html' %}
+{% endfor %}
+</ol>
+{% endblock %}