aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2024-03-29 01:42:38 -0500
committerChristian Cleberg <[email protected]>2024-03-29 01:42:38 -0500
commit4cd7447aced18a5469feae91886076507c0b9f0e (patch)
treea4733d553ce68f64277ffa3a52f800dc58ff72de /templates/page.html
parentb90b88ff1cb8ade86496fe072edac3cd27fe9463 (diff)
parent07c42d3ad17060131e822f5816d2057cd1753b1b (diff)
downloadcleberg.net-4cd7447aced18a5469feae91886076507c0b9f0e.tar.gz
cleberg.net-4cd7447aced18a5469feae91886076507c0b9f0e.tar.bz2
cleberg.net-4cd7447aced18a5469feae91886076507c0b9f0e.zip
merge org branch into main
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html51
1 files changed, 0 insertions, 51 deletions
diff --git a/templates/page.html b/templates/page.html
deleted file mode 100644
index b858d1a..0000000
--- a/templates/page.html
+++ /dev/null
@@ -1,51 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}
-<title>{{ page.title }} | cleberg.net</title>
-{% endblock %}
-
-{% block css %}
-<link rel="stylesheet" href="/syntax-theme-dark.css" media="(prefers-color-scheme: dark)">
-<link rel="stylesheet" href="/syntax-theme-light.css" media="(prefers-color-scheme: light)">
-<link rel="stylesheet" href="/styles.css">
-{% endblock css %}
-
-{% block content %}
-<section class="post-metadata">
- <h1>{{ page.title }}</h1>
- {% if page.date %}
- <p><time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date }}</time></p>
- {% endif %}
- {% if page.updated %}
- <p>Last Updated: <time datetime="{{ page.updated | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.updated }}</time></p>
- {% endif %}
- <p>{{ page.word_count }} words; {{ page.reading_time }} minute(s)</p>
-{% if page.toc %}
- <details open>
- <summary>Table of Contents</summary>
- <nav class="page-nav" aria-label="page-nav" role="navigation">
- <ul>
- {% for h1 in page.toc %}
- <li>
- <a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
- {% if h1.children %}
- <ul>
- {% for h2 in h1.children %}
- <li>
- <a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
- </li>
- {% endfor %}
- </ul>
- {% endif %}
- </li>
- {% endfor %}
- </ul>
- </nav>
- </details>
-{% endif %}
-</section>
-
-<article role="article">
-{{ page.content | safe }}
-</article>
-{% endblock content %}