Update html template, add markdown template.

This commit is contained in:
2024-01-17 14:46:24 -08:00
parent 57f447bf2c
commit 3efa25ba15
2 changed files with 14 additions and 4 deletions

8
template-post.md Normal file
View File

@@ -0,0 +1,8 @@
title: Post Title
description: Post description goes here
tags: template, post, misc
date: 2024-01-17 14:24
# Post Content
Post content goes here...

View File

@@ -7,12 +7,12 @@
{% if title %}
<h2>{{ title }}</h2>
{% endif %}
{% if description %}
<p>{{ description }}</p>
{% endif %}
<aside>
<p>published on {{ date.date() }}
{% if tags %}
· tagged with
<p>{% if tags %} tagged with
{% for tag in tags|sort(case_sensitive=true) %}
{%- if not loop.first and not loop.last %}, {% endif -%}
{%- if loop.last and not loop.first %} and {% endif %}
@@ -20,6 +20,8 @@
{%- endfor %}
{% endif %}
</p>
<p>published on {{ date.date() }} </p>
<p>{%- if edited %} edited on {{ edited }}{% endif -%}</p>
</aside>
{{ content }}