aboutsummaryrefslogtreecommitdiffstats
path: root/_layouts
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-08-23 20:08:29 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-08-23 20:08:29 +0300
commit49021944e3b4881486ae27cd48acf9196a0b6ed7 (patch)
tree64e39c5b24a4631e1cfc3d37138096379508d086 /_layouts
parent8057621bb2d80be038a08387fd3262e38f37440e (diff)
downloadaaoth.xyz-49021944e3b4881486ae27cd48acf9196a0b6ed7.tar.gz
aaoth.xyz-49021944e3b4881486ae27cd48acf9196a0b6ed7.zip
refactor post layout
add go back link to the heading instead of list use div.post-header-info (list was not right)
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/post.html21
1 files changed, 11 insertions, 10 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 30029a8..602cfce 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -4,18 +4,19 @@ layout: default
<div class="post-page">
<div class="post-header">
- <h1>{{ page.title }}</h1>
- <ul>
- <li>{{ page.date | date: "%F" }}</li>
+ {% include title-with-backlink.html title=page.title backlink="/blog/" %}
+ <div class="post-header-info">
+ <p class="post-date">{{ page.date | date: "%F" }}</p>
{% if page.tags.size > 0 %}
- <li> | </li>
- <li>tags:</li>
- {% for tag in page.tags %}
- <li><a href="/tags/{{ tag }}">{{ tag }}</a></li>
- {% endfor %}
+ <p>tags:</p>
+ <ul>
+ {% for tag in page.tags %}
+ <li><a href="/tags/{{ tag }}">{{ tag }}</a></li>
+ {% endfor %}
{% endif %}
- </ul>
+ </ul>
+ </div>
<hr>
</div>
-{{ content }}
+ {{ content }}
</div>