Changed the position of lastmod and related posts.

This commit is contained in:
Cotes Chung 2020-02-17 23:44:10 +08:00
parent fd56f5b600
commit 16bb4e4544
2 changed files with 19 additions and 19 deletions

View File

@ -28,19 +28,6 @@ layout: default
{% endfor %}
</div>
<!-- lastmod -->
{% if page.seo.date_modified > page.date %}
<div>
Updated
<span class="timeago lastmod"
data-toggle="tooltip" data-placement="auto"
title="{{ page.seo.date_modified | date: TOOLTIP_DATE }}">
{{ page.seo.date_modified | date: POST_DATE }}
<i class="unloaded">{{ page.seo.date_modified | date_to_xmlschema}}</i>
</span>
</div>
{% endif %}
<!-- page views -->
{% if site.google_analytics.pv %}
<div>
@ -68,9 +55,22 @@ layout: default
<div class="post-tail-wrapper text-muted">
<!-- lastmod -->
{% if page.seo.date_modified > page.date %}
<div>
Updated
<span class="timeago lastmod"
data-toggle="tooltip" data-placement="auto"
title="{{ page.seo.date_modified | date: TOOLTIP_DATE }}">
{{ page.seo.date_modified | date: POST_DATE }}
<i class="unloaded">{{ page.seo.date_modified | date_to_xmlschema}}</i>
</span>
</div>
{% endif %}
<!-- Tags -->
{% if page.tags.size > 0 %}
<div class="pt-5">
<div class="pt-3">
{% for tag in page.tags %}
<a href="{{ site.baseurl }}/tags/{{ tag | replace: ' ', '-' | downcase | url_encode }}/"
class="post-tag no-text-decoration" >
@ -115,14 +115,14 @@ layout: default
<div class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
{% include related-posts.html %}
{% include post-nav.html %}
{% if site.disqus.comments and page.comments %}
{% include disqus.html %}
{% endif %}
{% include related-posts.html %}
</div> <!-- .pl-1 pr-1 -->
</div> <!-- #post-extend-wrapper -->

View File

@ -22,14 +22,14 @@
}
.post-tail-wrapper {
margin-top: 3.5rem;
margin-top: 5rem;
border-bottom: 1px double var(--main-border, #e9ecef);
font-size: 0.85rem;
}
.post-navigation {
padding: 1rem .2rem;
margin-bottom: 2rem;
padding-top: 3rem;
padding-bottom: 2rem;
}
.post-navigation .btn,