summaryrefslogtreecommitdiffstats
path: root/_layouts
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-10-25 15:29:33 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-10-25 15:29:33 +0800
commit5066fbedd5b92797ceca9f6841785ee03b362a57 (patch)
tree62476f0ea942c370c764c6180c7c31c97f049322 /_layouts
parent6d80c9b4be3cc4ace918f0546e1238a680116042 (diff)
downloadwww-5066fbedd5b92797ceca9f6841785ee03b362a57.tar.gz
Add post layout.
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html25
-rw-r--r--_layouts/post.html43
2 files changed, 46 insertions, 22 deletions
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 @@
<!doctype html>
<html lang="en-us">
- <head>
- <meta charset="utf-8">
- <title>{{ page.title }}</title>
- <link rel="stylesheet" href="/assets/css/main.css">
- <link rel="stylesheet" href="/assets/css/normalize.css">
- <link rel="stylesheet" href="/assets/css/skeleton.css">
- </head>
+ {% include header.html %}
<body>
-
- <div class="container">
- <ul id="navlist" class="left">
- <li {% if page.url == "/" %}class="active"{% endif %}>
- <a href="{{ site.baseurl }}/">hme</a>
- </li>
- <li {% if page.url == "/projects/" %}class="active"{% endif %}>
- <a href="{{ site.baseurl }}/projects/">tnk</a>
- </li>
- <li {% if page.url == "/about/" %}class="active"{% endif %}>
- <a href="{{ site.baseurl }}/about/">abt</a>
- </li>
- <li><a href="{{ site.baseurl }}/feed.xml">rss</a></li>
- </ul>
- </div>
+
+ {% include nav.html %}
<main class="container" id="main">{{ content }}</main>
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">[&nbsp;N<sup>o</sup>{% for post in site.posts %}
+ {% if post.title == page.title %}
+ {{ forloop.index | roman }}
+ {% endif %}
+ {% endfor %}&nbsp;]
+ <span>&nbsp;{{ 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>