From caf8dec568ba646fa4f3cb4fe4c7e3e716e8b094 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 7 Apr 2020 02:11:50 +0800 Subject: [PATCH] Update the post meta design. --- _data/{right.yml => rights.yml} | 10 +--- _includes/footer.html | 4 +- _includes/post-sharing.html | 2 +- _layouts/post.html | 70 ++++++++++++---------- _posts/2019-08-08-text-and-typography.md | 3 +- _posts/2019-08-08-write-a-new-post.md | 3 +- _posts/2019-08-09-getting-started.md | 1 + _posts/2019-08-11-customize-the-favicon.md | 3 +- assets/css/main.scss | 12 ++-- assets/css/post.scss | 23 +++++-- 10 files changed, 76 insertions(+), 55 deletions(-) rename _data/{right.yml => rights.yml} (64%) diff --git a/_data/right.yml b/_data/rights.yml similarity index 64% rename from _data/right.yml rename to _data/rights.yml index 50e5152..bedc283 100644 --- a/_data/right.yml +++ b/_data/rights.yml @@ -7,15 +7,11 @@ license: - link: "https://creativecommons.org/licenses/by/4.0/" - prompt: This post is licensed under name: CC BY 4.0 - icons: - - "fab fa-creative-commons" - - "fab fa-creative-commons-by" + link: "https://creativecommons.org/licenses/by/4.0/" brief: Some rights reserved. verbose: >- - The blog posts on this site are licensed - under the Creative Commons Attribution 4.0 International (CC BY 4.0) License. \ No newline at end of file + 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 by the author. \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index 31da5a4..4620300 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -12,9 +12,9 @@

© {{ 'now' | date: "%Y" }} {{ site.social.name }}. - {% if site.data.right.brief %} + {% if site.data.rights.brief %} {{ site.data.right.brief }} + title="{{ site.data.rights.verbose }}">{{ site.data.rights.brief }} {% endif %}

diff --git a/_includes/post-sharing.html b/_includes/post-sharing.html index 24a0315..e4ddec2 100644 --- a/_includes/post-sharing.html +++ b/_includes/post-sharing.html @@ -8,7 +8,7 @@ -->
- {{ site.data.share.label }} + {{ site.data.share.label }} {% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %} {% assign url = page.url | relative_url | prepend: site.url %} diff --git a/_layouts/post.html b/_layouts/post.html index 4247531..dddb2e1 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -16,24 +16,42 @@ layout: default

{{ page.title }}