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 %} {% endfor %}
</div> </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 --> <!-- page views -->
{% if site.google_analytics.pv %} {% if site.google_analytics.pv %}
<div> <div>
@ -68,9 +55,22 @@ layout: default
<div class="post-tail-wrapper text-muted"> <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 --> <!-- Tags -->
{% if page.tags.size > 0 %} {% if page.tags.size > 0 %}
<div class="pt-5"> <div class="pt-3">
{% for tag in page.tags %} {% for tag in page.tags %}
<a href="{{ site.baseurl }}/tags/{{ tag | replace: ' ', '-' | downcase | url_encode }}/" <a href="{{ site.baseurl }}/tags/{{ tag | replace: ' ', '-' | downcase | url_encode }}/"
class="post-tag no-text-decoration" > 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"> <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 %} {% include post-nav.html %}
{% if site.disqus.comments and page.comments %} {% if site.disqus.comments and page.comments %}
{% include disqus.html %} {% include disqus.html %}
{% endif %} {% endif %}
{% include related-posts.html %}
</div> <!-- .pl-1 pr-1 --> </div> <!-- .pl-1 pr-1 -->
</div> <!-- #post-extend-wrapper --> </div> <!-- #post-extend-wrapper -->

View file

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