summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/page.html25
-rw-r--r--templates/section_posts.html (renamed from templates/section.html)5
-rw-r--r--templates/section_projects.html5
3 files changed, 25 insertions, 10 deletions
diff --git a/templates/page.html b/templates/page.html
index 7120590..786b800 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,21 +1,30 @@
-{% extends "base.html" %}
-{% import "macros.html" as macros %}
-{% block content %}
+{% extends "base.html" %} {% import "macros.html" as macros %} {% block content
+%}
<h1>
{{ page.title }}<br />
+ {% if page.date %}
<small>({{ page.date }})</small>
+ {% endif %}
<small>[{{ page.extra.kind }}]</small>
</h1>
-{{ page.content | replace(from="<!-- toc -->", to=macros::toc(page=page)) | safe }}
+{{ page.content | replace(from="<!-- toc -->", to=macros::toc(page=page)) | safe
+}}
<nav class="post-nav" aria-label="Post navigation">
{% if page.higher %}
- <div class="post-nav-left"><a class="post-nav-link" href="{{ page.higher.permalink }}">← {{ page.higher.title }}</a></div>
- {% endif %}
- {% if page.lower %}
- <div class="post-nav-right"><a class="post-nav-link" href="{{ page.lower.permalink }}">{{ page.lower.title }} →</a></div>
+ <div class="post-nav-left">
+ <a class="post-nav-link" href="{{ page.higher.permalink }}"
+ >← {{ page.higher.title }}</a
+ >
+ </div>
+ {% endif %} {% if page.lower %}
+ <div class="post-nav-right">
+ <a class="post-nav-link" href="{{ page.lower.permalink }}"
+ >{{ page.lower.title }} →</a
+ >
+ </div>
{% endif %}
</nav>
diff --git a/templates/section.html b/templates/section_posts.html
index b72f536..f44321f 100644
--- a/templates/section.html
+++ b/templates/section_posts.html
@@ -1,5 +1,6 @@
-{% extends "base.html" %} {% block content %} {% set posts =
-get_section(path="posts/_index.md") %}
+{% extends "base.html" %}
+{% block content %}
+{% set posts = get_section(path="posts/_index.md") %}
<h1>{{ section.title }}</h1>
<p>
diff --git a/templates/section_projects.html b/templates/section_projects.html
new file mode 100644
index 0000000..be0db07
--- /dev/null
+++ b/templates/section_projects.html
@@ -0,0 +1,5 @@
+{% extends "base.html" %}
+
+{% block content %}
+{{ section.content | safe }}
+{% endblock %}