Update html template, add markdown template.
This commit is contained in:
8
template-post.md
Normal file
8
template-post.md
Normal 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...
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user