From 5066fbedd5b92797ceca9f6841785ee03b362a57 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sat, 25 Oct 2025 15:29:33 +0800 Subject: Add post layout. --- _layouts/default.html | 25 +++---------------------- _layouts/post.html | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 22 deletions(-) create mode 100644 _layouts/post.html (limited to '_layouts') diff --git a/_layouts/default.html b/_layouts/default.html index 9adf234..0a98b7f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,28 +1,9 @@ - - - {{ page.title }} - - - - + {% include header.html %} - -
- -
+ + {% include nav.html %}
{{ content }}
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 @@ + + + + + {{ page.title }} + {% include header.html %} + + + + {% include nav.html %} + +
+
+ +

[ No{% for post in site.posts %} + {% if post.title == page.title %} + {{ forloop.index | roman }} + {% endif %} + {% endfor %} ] +  {{ page.keywords }}

+ + +

{{ page.title | upcase }}

+ {% if page.abstract %}
{{ page.abstract }}
{% endif %} + {% if page.category %} + +

{{ page.category }}

+ + {% endif %} +
+

{{ site.location | upcase }}

+
{{ page.date | date_to_long_string | upcase }}
+ +
+ {{ content }} +
+ +

by {{ page.author }}

+
+
+ + + -- cgit v1.2.3