summaryrefslogtreecommitdiff
path: root/templates/notes/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/notes/page.html')
-rw-r--r--templates/notes/page.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/notes/page.html b/templates/notes/page.html
new file mode 100644
index 0000000..bcabff8
--- /dev/null
+++ b/templates/notes/page.html
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+
+{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
+{% block description %}{{ page.description | default(value=config.description) }}{% endblock description %}
+
+{% block content %}
+<article class="site-container article-page">
+ <header class="article-header narrow">
+ <p class="article-kind"><a href="{{ get_url(path='@/notes/_index.md') }}">Notes</a></p>
+ <h1>{{ page.title }}</h1>
+ <dl class="article-dates">
+ <div><dt>公開</dt><dd><time datetime="{{ page.date }}">{{ page.date | date(format='%Y-%m-%d') }}</time></dd></div>
+ {% if page.updated %}<div><dt>更新</dt><dd><time datetime="{{ page.updated }}">{{ page.updated | date(format='%Y-%m-%d') }}</time></dd></div>{% endif %}
+ </dl>
+ {% if page.description %}<p class="article-description">{{ page.description }}</p>{% endif %}
+ </header>
+
+ {% if page.toc %}
+ <nav class="toc narrow" aria-label="目次">
+ <h2>目次</h2>
+ {{<toc.render headers={page.toc} />}}
+ </nav>
+ {% endif %}
+
+ <div class="prose">
+ {{ page.content | safe }}
+ </div>
+
+ {% include "partials/related-software.html" %}
+</article>
+{% endblock content %}