Update the post meta design.
This commit is contained in:
parent
2423dbc726
commit
caf8dec568
10 changed files with 76 additions and 55 deletions
|
@ -7,15 +7,11 @@
|
||||||
|
|
||||||
|
|
||||||
license:
|
license:
|
||||||
link: "https://creativecommons.org/licenses/by/4.0/"
|
|
||||||
prompt: This post is licensed under
|
|
||||||
name: CC BY 4.0
|
name: CC BY 4.0
|
||||||
icons:
|
link: "https://creativecommons.org/licenses/by/4.0/"
|
||||||
- "fab fa-creative-commons"
|
|
||||||
- "fab fa-creative-commons-by"
|
|
||||||
|
|
||||||
brief: Some rights reserved.
|
brief: Some rights reserved.
|
||||||
|
|
||||||
verbose: >-
|
verbose: >-
|
||||||
The blog posts on this site are licensed
|
Except where otherwise noted, the blog posts on this site are licensed
|
||||||
under the Creative Commons Attribution 4.0 International (CC BY 4.0) License.
|
under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
|
|
@ -12,9 +12,9 @@
|
||||||
<p class="mb-0">
|
<p class="mb-0">
|
||||||
© {{ 'now' | date: "%Y" }}
|
© {{ 'now' | date: "%Y" }}
|
||||||
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
|
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
|
||||||
{% if site.data.right.brief %}
|
{% if site.data.rights.brief %}
|
||||||
<span data-toggle="tooltip" data-placement="top"
|
<span data-toggle="tooltip" data-placement="top"
|
||||||
title="{{ site.data.right.verbose }}">{{ site.data.right.brief }}</span>
|
title="{{ site.data.rights.verbose }}">{{ site.data.rights.brief }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<div class="share-wrapper">
|
<div class="share-wrapper">
|
||||||
<span class="share-label ml-1 mr-1">{{ site.data.share.label }}</span>
|
<span class="share-label mr-1">{{ site.data.share.label }}</span>
|
||||||
<span class="share-icons">
|
<span class="share-icons">
|
||||||
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
|
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
|
||||||
{% assign url = page.url | relative_url | prepend: site.url %}
|
{% assign url = page.url | relative_url | prepend: site.url %}
|
||||||
|
|
|
@ -16,24 +16,42 @@ layout: default
|
||||||
<h1 data-toc-skip>{{ page.title }}</h1>
|
<h1 data-toc-skip>{{ page.title }}</h1>
|
||||||
|
|
||||||
<div class="post-meta text-muted d-flex flex-column">
|
<div class="post-meta text-muted d-flex flex-column">
|
||||||
<!-- Published Date and Categoreis -->
|
<!-- Published date and author -->
|
||||||
<div>
|
<div>
|
||||||
|
Posted
|
||||||
<span class="timeago" data-toggle="tooltip" data-placement="bottom"
|
<span class="timeago" data-toggle="tooltip" data-placement="bottom"
|
||||||
title="{{ page.date | date: site.data.date_format.tooltip }}">
|
title="{{ page.date | date: site.data.date_format.tooltip }}">
|
||||||
{{ page.date | date: site.data.date_format.post }}
|
{{ page.date | date: site.data.date_format.post }}
|
||||||
<i class="unloaded">{{ page.date | date_to_xmlschema }}</i>
|
<i class="unloaded">{{ page.date | date_to_xmlschema }}</i>
|
||||||
</span>
|
</span>
|
||||||
{% if page.categories.size > 0 %}on{% endif %}
|
by
|
||||||
{% for category in page.categories %}
|
<span class="author">
|
||||||
<a href='{{ site.baseurl }}/categories/{{ category | replace: ' ', '-' | downcase | url_encode }}/'>{{ category }}</a>
|
{% if page.author %}
|
||||||
{%- unless forloop.last -%}, {%- endunless -%}
|
{{ page.author }}
|
||||||
{% endfor %}
|
{% else%}
|
||||||
|
{{ site.author }}
|
||||||
|
{% endif %}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- lastmod -->
|
||||||
|
{% if page.seo.date_modified > page.date %}
|
||||||
|
<div>
|
||||||
|
Updated
|
||||||
|
<span class="timeago lastmod"
|
||||||
|
data-toggle="tooltip" data-placement="bottom"
|
||||||
|
title="{{ page.seo.date_modified | date: site.data.date_format.tooltip }}">
|
||||||
|
{{ page.seo.date_modified | date: site.data.date_format.post }}
|
||||||
|
<i class="unloaded">{{ page.seo.date_modified | date_to_xmlschema}}</i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- page views -->
|
<!-- page views -->
|
||||||
{% if site.google_analytics.pv.enabled %}
|
{% if site.google_analytics.pv.enabled %}
|
||||||
<div>
|
<div>
|
||||||
<span id="pv" class="pageviews"><i class="fas fa-spinner fa-spin fa-fw"></i></span> views
|
<span id="pv" class="pageviews"><i class="fas fa-spinner fa-spin fa-fw"></i></span>
|
||||||
|
views
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -57,22 +75,21 @@ layout: default
|
||||||
|
|
||||||
<div class="post-tail-wrapper text-muted">
|
<div class="post-tail-wrapper text-muted">
|
||||||
|
|
||||||
<!-- lastmod -->
|
<!-- categories -->
|
||||||
{% if page.seo.date_modified > page.date %}
|
{% if page.categories.size > 0 %}
|
||||||
<div>
|
<div class="post-meta mb-3">
|
||||||
Updated
|
<i class="far fa-folder-open fa-fw mr-1"></i>
|
||||||
<span class="timeago lastmod"
|
{% for category in page.categories %}
|
||||||
data-toggle="tooltip" data-placement="top"
|
<a href='{{ site.baseurl }}/categories/{{ category | replace: ' ', '-' | downcase | url_encode }}/'>{{ category }}</a>
|
||||||
title="{{ page.seo.date_modified | date: site.data.date_format.tooltip }}">
|
{%- unless forloop.last -%}, {%- endunless -%}
|
||||||
{{ page.seo.date_modified | date: site.data.date_format.post }}
|
{% endfor %}
|
||||||
<i class="unloaded">{{ page.seo.date_modified | date_to_xmlschema}}</i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Tags -->
|
<!-- tags -->
|
||||||
{% if page.tags.size > 0 %}
|
{% if page.tags.size > 0 %}
|
||||||
<div class="pt-3">
|
<div class="post-tags">
|
||||||
|
<i class="fa fa-tags fa-fw mr-1"></i>
|
||||||
{% 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" >
|
||||||
|
@ -84,18 +101,11 @@ layout: default
|
||||||
|
|
||||||
<div class="post-tail-bottom
|
<div class="post-tail-bottom
|
||||||
d-flex justify-content-between align-items-center pt-5 pb-2">
|
d-flex justify-content-between align-items-center pt-5 pb-2">
|
||||||
|
{% if site.data.rights.license %}
|
||||||
{% if site.data.right.license %}
|
|
||||||
<div class="license-wrapper">
|
<div class="license-wrapper">
|
||||||
<span class="license-text ml-1 mr-1">
|
This post is licensed under
|
||||||
{{ site.data.right.license.prompt }}
|
<a href="{{ site.data.rights.license.link }}">{{ site.data.rights.license.name }}</a>
|
||||||
<a href="{{ site.data.right.license.link }}">
|
by the author.
|
||||||
{{ site.data.right.license.name }}
|
|
||||||
{% for icon in site.data.right.license.icons %}
|
|
||||||
<i class="{{ icon }}"></i>
|
|
||||||
{% endfor %}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: "Text and Typography"
|
title: Text and Typography
|
||||||
|
author: Cotes Chung
|
||||||
date: 2019-08-08 11:33:00 +0800
|
date: 2019-08-08 11:33:00 +0800
|
||||||
categories: [Blogging, Demo]
|
categories: [Blogging, Demo]
|
||||||
tags: [typography]
|
tags: [typography]
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: "Writing a New Post"
|
title: Writing a New Post
|
||||||
|
author: Cotes Chung
|
||||||
date: 2019-08-08 14:10:00 +0800
|
date: 2019-08-08 14:10:00 +0800
|
||||||
categories: [Blogging, Tutorial]
|
categories: [Blogging, Tutorial]
|
||||||
tags: [writing]
|
tags: [writing]
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Getting Started
|
title: Getting Started
|
||||||
|
author: Cotes Chung
|
||||||
date: 2019-08-09 20:55:00 +0800
|
date: 2019-08-09 20:55:00 +0800
|
||||||
categories: [Blogging, Tutorial]
|
categories: [Blogging, Tutorial]
|
||||||
tags: [getting started]
|
tags: [getting started]
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: "Customize the Favicon"
|
title: Customize the Favicon
|
||||||
|
author: Cotes Chung
|
||||||
date: 2019-08-11 00:34:00 +0800
|
date: 2019-08-11 00:34:00 +0800
|
||||||
categories: [Blogging, Tutorial]
|
categories: [Blogging, Tutorial]
|
||||||
tags: [favicon]
|
tags: [favicon]
|
||||||
|
|
|
@ -752,9 +752,6 @@ a {
|
||||||
@extend %no-bottom-border;
|
@extend %no-bottom-border;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.license-wrapper .license-text &:hover {
|
|
||||||
@extend %link-hover;
|
|
||||||
}
|
|
||||||
|
|
||||||
} // a
|
} // a
|
||||||
|
|
||||||
|
@ -857,13 +854,14 @@ table {
|
||||||
min-width: 2rem;
|
min-width: 2rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: var(--tag-bg);
|
background: var(--tag-bg);
|
||||||
border-radius: .34rem;
|
border-radius: .3rem;
|
||||||
padding: 0 .4rem;
|
padding: 0 .4rem;
|
||||||
color: #818182;
|
color: #818182;
|
||||||
line-height: 1.6rem;
|
line-height: 1.3rem;
|
||||||
&:not(:first-child) {
|
&:not(:last-child) {
|
||||||
margin-left: .2rem;
|
margin-right: .2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@extend %tag-hover;
|
@extend %tag-hover;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
MIT License
|
MIT License
|
||||||
*/
|
*/
|
||||||
@import "_addon/variables";
|
@import "_addon/variables";
|
||||||
|
@import "_addon/module";
|
||||||
|
|
||||||
$prompt-older: "{{ site.data.label.post.button.previous }}";
|
$prompt-older: "{{ site.data.label.post.button.previous }}";
|
||||||
$prompt-newer: "{{ site.data.label.post.button.next }}";
|
$prompt-newer: "{{ site.data.label.post.button.next }}";
|
||||||
|
@ -26,6 +27,10 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
|
||||||
border-color: var(--btn-border-color);
|
border-color: var(--btn-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.author {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.post img {
|
.post img {
|
||||||
margin-top: .5rem;
|
margin-top: .5rem;
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
|
@ -40,11 +45,15 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-tail-wrapper {
|
.post-tail-wrapper {
|
||||||
margin-top: 5rem;
|
margin-top: 4rem;
|
||||||
border-bottom: 1px double var(--main-border-color);
|
border-bottom: 1px double var(--main-border-color);
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-tags {
|
||||||
|
line-height: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
.post-navigation {
|
.post-navigation {
|
||||||
padding-top: 3rem;
|
padding-top: 3rem;
|
||||||
padding-bottom: 2rem;
|
padding-bottom: 2rem;
|
||||||
|
@ -268,8 +277,11 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
|
||||||
|
|
||||||
.license-wrapper {
|
.license-wrapper {
|
||||||
line-height: 1.2rem;
|
line-height: 1.2rem;
|
||||||
.license-text>a {
|
>a {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
&:hover {
|
||||||
|
@extend %link-hover;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
i {
|
i {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
@ -282,10 +294,11 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
|
||||||
|
|
||||||
@media all and (max-width: 576px) {
|
@media all and (max-width: 576px) {
|
||||||
.post-tail-bottom {
|
.post-tail-bottom {
|
||||||
-ms-flex-wrap: wrap!important;
|
-ms-flex-wrap: wrap-reverse!important;
|
||||||
flex-wrap: wrap!important;
|
flex-wrap: wrap-reverse!important;
|
||||||
>div:first-child {
|
>div:first-child {
|
||||||
margin-bottom: 1rem;
|
width: 100%;
|
||||||
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue