diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-10-25 15:29:33 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-10-25 15:29:33 +0800 |
| commit | 5066fbedd5b92797ceca9f6841785ee03b362a57 (patch) | |
| tree | 62476f0ea942c370c764c6180c7c31c97f049322 /_layouts/post.html | |
| parent | 6d80c9b4be3cc4ace918f0546e1238a680116042 (diff) | |
| download | www-5066fbedd5b92797ceca9f6841785ee03b362a57.tar.gz | |
Add post layout.
Diffstat (limited to '_layouts/post.html')
| -rw-r--r-- | _layouts/post.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..0b25d7c --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>{{ page.title }}</title> + {% include header.html %} + </head> + <body> + + {% include nav.html %} + + <main> + <div class="container"> + <img src="{{ site.baseurl }}/assets/img/grunge.png" alt="" class="line"> + <p class="center">[ N<sup>o</sup>{% for post in site.posts %} + {% if post.title == page.title %} + {{ forloop.index | roman }} + {% endif %} + {% endfor %} ] + <span> {{ page.keywords }}</span></p> + <img src="{{ site.baseurl }}/assets/img/grunge.png" alt="" class="line flip"> + + <h2 class="brand center" id="title">{{ page.title | upcase }}</h2> + {% if page.abstract %}<h5 class="center">{{ page.abstract }}</h5>{% endif %} + {% if page.category %} + <img src="{{ site.baseurl }}/assets/img/grunge.png" alt="" class="line tag flip"> + <p class="right tagline">{{ page.category }}</p> + <img src="{{ site.baseurl }}/assets/img/grunge.png" alt="" class="line tag"> + {% endif %} + <br> + <h4 class="center space">{{ site.location | upcase }}</h4> + <h5 class="center">{{ page.date | date_to_long_string | upcase }}</h5> + + <div class="threecol justify"> + {{ content }} + </div> + + <p class="right italics">by {{ page.author }}</p> + </div> + </main> + + </body> +</html> |
