From cbb3bd4be5dbc6b740339986efb15e62840e7296 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 24 Jan 2021 03:02:19 +0800 Subject: [PATCH] Set default values for site variables good for gem-based first run --- _data/date_format.yml | 1 + _data/label.yml | 5 ++++- _data/read_time.yml | 7 ------- _data/share.yml | 2 -- _includes/panel.html | 6 +++--- _includes/post-nav.html | 8 +++++--- _includes/post-sharing.html | 2 +- _includes/read-time.html | 10 +++++++--- _includes/related-posts.html | 3 ++- _includes/search-results.html | 2 +- _includes/timeago.html | 13 +++++++++---- _includes/topbar.html | 2 +- _layouts/category.html | 4 +++- _layouts/home.html | 2 +- _layouts/tag.html | 5 ++++- _sass/layout/post.scss | 12 ++---------- assets/css/style.scss | 4 +--- 17 files changed, 45 insertions(+), 43 deletions(-) delete mode 100644 _data/read_time.yml diff --git a/_data/date_format.yml b/_data/date_format.yml index 0a984ff..e10093f 100644 --- a/_data/date_format.yml +++ b/_data/date_format.yml @@ -6,6 +6,7 @@ tooltip: "%a, %b %e, %Y, %l:%M %p %z" + post: long: "%b %e, %Y" short: "%b %e" diff --git a/_data/label.yml b/_data/label.yml index 007da2f..f46fd45 100644 --- a/_data/label.yml +++ b/_data/label.yml @@ -11,10 +11,13 @@ panel: post: relate_posts: Further Reading + share: Share button: next: Newer previous: Older search_hint: Search # text show on search bar -pin_prompt: Pinned # pinned prompt +pin_prompt: Pinned # pinned prompt + +read_time_unit: min # see posts' time to read diff --git a/_data/read_time.yml b/_data/read_time.yml deleted file mode 100644 index 0349fea..0000000 --- a/_data/read_time.yml +++ /dev/null @@ -1,7 +0,0 @@ -# words per minute -wpm: 180 - -# minimum value -min_time: 1 - -prompt: min diff --git a/_data/share.yml b/_data/share.yml index 7bb7d8d..763bb7a 100644 --- a/_data/share.yml +++ b/_data/share.yml @@ -6,8 +6,6 @@ # © 2020 Cotes Chung # MIT Licensed -label: "Share" - platforms: - type: Twitter diff --git a/_includes/panel.html b/_includes/panel.html index 36fbce8..1381417 100644 --- a/_includes/panel.html +++ b/_includes/panel.html @@ -15,7 +15,7 @@ {% if update_list.size > 0 %}
- {{- site.data.label.panel.lastmod -}} + {{- site.data.label.panel.lastmod | default: 'Recent Update' -}}