diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-02-02 21:10:12 +0530 |
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2026-02-02 21:10:12 +0530 |
| commit | d245c05825743e20d2df2900c4f8313d82ebcfe1 (patch) | |
| tree | b82ce18e8b9d2ff3d6c32f152b6d799d27eb4ffa /templates/post.html | |
first commit
Diffstat (limited to 'templates/post.html')
| -rw-r--r-- | templates/post.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..e055397 --- /dev/null +++ b/templates/post.html @@ -0,0 +1,29 @@ +{% import "macros/header.html" as header %} +{% import "macros/date.html" as date %} + +{% extends "base.html" %} + +{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} +{% block description %}{{ page.description }}{% endblock description %} + +{% block og_title %}{{ page.title }} - {{ config.title }}{% endblock og_title %} +{% block og_description %}{{ page.description }}{% endblock og_description %} + +{% block header %} +{{ header::site_header(activePage="/posts") }} +{% endblock header %} + +{% block main %} +<article> + <header> + <h1>{{ page.title }}</h1> + <p> + <time datetime="{{ page.date }}"> + {{ date::format_date(date=page.date) }} + </time> + </p> + <hr> + </header> + {{ page.content | safe }} +</article> +{% endblock main %} |