summaryrefslogtreecommitdiffstatshomepage
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html2
-rw-r--r--templates/macros.html6
-rw-r--r--templates/page.html3
3 files changed, 7 insertions, 4 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 f504f76..ccce644 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -1,7 +1,9 @@
{% 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">
<time class="mute" datetime="{{ post.date }}" title="{{ post.date }}">{{ post.date | date(format="%F") }}</time>
@@ -32,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") }}