summaryrefslogtreecommitdiffstatshomepage
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/base.html2
-rw-r--r--templates/macros.html9
-rw-r--r--templates/page.html3
3 files changed, 8 insertions, 6 deletions
diff --git a/templates/base.html b/templates/base.html
index ea70a47..ac19b26 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -16,7 +16,7 @@
<html lang="en">
<head>
<title>
- {{ config.title ~ " · " ~ title }}
+ {{ title ~ " · " ~ config.title }}
</title>
<link rel="stylesheet" href="/style.css"/>
<link rel="icon" href="/icon.svg"/>
diff --git a/templates/macros.html b/templates/macros.html
index dc621f9..ccce644 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -1,12 +1,13 @@
{% macro render_post(post, class="feed") -%}
+<aside class="gutter">
+ <img class="avatar" alt="Authored by: {{ config.extra.author }}" src="{{ config.extra.avatar }}" width="64" />
+</aside>
<article class="{{ class }}">
<header>
- <img class="avatar" alt="{{ config.extra.author }}" src="{{ config.extra.avatar }}" width="64" />
<div class="banner smaller">
<div class="info">
- <a class="bold-hover" title="permalink to this post" href="{{ post.permalink }}">{% if class == "related" %}№ {{ post.slug }} {% else %}§{% endif %}</a>
<time class="mute" datetime="{{ post.date }}" title="{{ post.date }}">{{ post.date | date(format="%F") }}</time>
- <h2 class="mute title">{{ post.title }}</h2>
+ <h2 class="mute title"><a title="permalink to this post" href="{{ post.permalink }}">{{ post.title }}</a></h2>
</div>
{%- if "tags" in post.taxonomies %}
<nav class="tags">
@@ -33,7 +34,7 @@
{%- endmacro render_pagination -%}
{%- macro render_tags(tags) %}
-{%- for tag in tags %}
+{%- for tag in tags | sort %}
<li><a class="tag" href="{{ get_taxonomy_url(kind="tags", name=tag) }}">{{ tag }}</a></li>
{%- endfor %}
{%- endmacro render_tags %}
diff --git a/templates/page.html b/templates/page.html
index 645c7f2..32d6e4c 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -3,7 +3,8 @@
{%- block content %}
{{ macros::render_post(post=page, class="single") }}
{%- if "related" in page.extra and page.extra.related | length > 0 -%}
-<h3 class="related">Related posts</h2>
+<aside class="gutter"><span>§</span></aside>
+<h2 id="related">Related posts</h2>
{%- for ref in page.extra.related %}
{%- set page = get_page(path=ref ~ "/index.md") -%}
{{ macros::render_post(post=page, class="related") }}