Skip to content

Commit b6145b4

Browse files
committed
Changed the position of lastmod and related posts.
1 parent c1a129d commit b6145b4

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

_layouts/post.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,6 @@ <h1 data-toc-skip>{{ page.title }}</h1>
2828
{% endfor %}
2929
</div>
3030

31-
<!-- lastmod -->
32-
{% if page.seo.date_modified > page.date %}
33-
<div>
34-
Updated
35-
<span class="timeago lastmod"
36-
data-toggle="tooltip" data-placement="auto"
37-
title="{{ page.seo.date_modified | date: TOOLTIP_DATE }}">
38-
{{ page.seo.date_modified | date: POST_DATE }}
39-
<i class="unloaded">{{ page.seo.date_modified | date_to_xmlschema}}</i>
40-
</span>
41-
</div>
42-
{% endif %}
43-
4431
<!-- page views -->
4532
{% if site.google_analytics.pv %}
4633
<div>
@@ -68,9 +55,22 @@ <h1 data-toc-skip>{{ page.title }}</h1>
6855
6956
<div class="post-tail-wrapper text-muted">
7057
58+
<!-- lastmod -->
59+
{% if page.seo.date_modified > page.date %}
60+
<div>
61+
Updated
62+
<span class="timeago lastmod"
63+
data-toggle="tooltip" data-placement="auto"
64+
title="{{ page.seo.date_modified | date: TOOLTIP_DATE }}">
65+
{{ page.seo.date_modified | date: POST_DATE }}
66+
<i class="unloaded">{{ page.seo.date_modified | date_to_xmlschema}}</i>
67+
</span>
68+
</div>
69+
{% endif %}
70+
7171
<!-- Tags -->
7272
{% if page.tags.size > 0 %}
73-
<div class="pt-5">
73+
<div class="pt-3">
7474
{% for tag in page.tags %}
7575
<a href="{{ site.baseurl }}/tags/{{ tag | replace: ' ', '-' | downcase | url_encode }}/"
7676
class="post-tag no-text-decoration" >
@@ -115,14 +115,14 @@ <h1 data-toc-skip>{{ page.title }}</h1>
115115

116116
<div class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
117117

118-
{% include related-posts.html %}
119-
120118
{% include post-nav.html %}
121119

122120
{% if site.disqus.comments and page.comments %}
123121
{% include disqus.html %}
124122
{% endif %}
125123

124+
{% include related-posts.html %}
125+
126126
</div> <!-- .pl-1 pr-1 -->
127127

128128
</div> <!-- #post-extend-wrapper -->

assets/css/post.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
}
2323

2424
.post-tail-wrapper {
25-
margin-top: 3.5rem;
25+
margin-top: 5rem;
2626
border-bottom: 1px double var(--main-border, #e9ecef);
2727
font-size: 0.85rem;
2828
}
2929

3030
.post-navigation {
31-
padding: 1rem .2rem;
32-
margin-bottom: 2rem;
31+
padding-top: 3rem;
32+
padding-bottom: 2rem;
3333
}
3434

3535
.post-navigation .btn,

0 commit comments

Comments
 (0)