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