-
{% for item in update_list %}
@@ -34,7 +34,7 @@
{% if trending_tags.size > 0 %}
- {{ post.title }} - {{ post.date | date: site.data.date_format.post.long }} + {{ post.date | date: post_long_df }} {% endfor %}
- {{ post.title }} - {{ post.date | date: site.data.date_format.post.long }} + {{ post.date | date: post_long_df }} {% endfor %}
- {{- site.data.label.panel.trending_tags -}}
+ {{- site.data.label.panel.trending_tags | default: 'Trending Tags' -}}
{% for tag_name in trending_tags %}
@@ -52,7 +52,7 @@
diff --git a/_includes/post-sharing.html b/_includes/post-sharing.html
index e71049e..9998fd4 100644
--- a/_includes/post-sharing.html
+++ b/_includes/post-sharing.html
@@ -8,7 +8,7 @@
-->
- {{- site.data.label.panel.toc -}}
+ {{- site.data.label.panel.toc | default: 'Contents' -}}
diff --git a/_includes/post-nav.html b/_includes/post-nav.html
index 81a6231..6c32aef 100644
--- a/_includes/post-nav.html
+++ b/_includes/post-nav.html
@@ -9,7 +9,8 @@
{% if page.previous.url %}
-
+
\ No newline at end of file
+{{ page.previous.title }}
{% else %} @@ -19,7 +20,8 @@ {% endif %} {% if page.next.url %} - +{{ page.next.title }}
{% else %} @@ -28,4 +30,4 @@ {% endif %} -
- {{ site.data.share.label }}
+ {{ site.data.label.post.share | default: 'Share' }}
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
{% assign url = page.url | absolute_url %}
diff --git a/_includes/read-time.html b/_includes/read-time.html
index c81f4b8..f63bc3b 100644
--- a/_includes/read-time.html
+++ b/_includes/read-time.html
@@ -3,13 +3,17 @@
-->
{% assign words = include.content | strip_html | number_of_words: "auto" %}
-{% assign read_time = words | divided_by: site.data.read_time.wpm %}
+
+{% assign wpm = 180 %}
+{% assign min_time = 1 %}
+
+{% assign read_time = words | divided_by: wpm %}
{% unless read_time > 0 %}
- {% assign read_time = site.data.read_time.min_time %}
+ {% assign read_time = min_time %}
{% endunless %}
- {{- read_time -}}{{" "}}{{- site.data.read_time.prompt -}}
+ {{- read_time -}}{{" "}}{{- site.data.label.read_time_unit | default: "min" -}}
diff --git a/_includes/related-posts.html b/_includes/related-posts.html
index 03c1828..4f2b7c6 100644
--- a/_includes/related-posts.html
+++ b/_includes/related-posts.html
@@ -85,7 +85,8 @@
{% if index_list.size > 0 %}
-
{{ site.data.label.post.relate_posts }}
+{{ site.data.label.post.relate_posts | default: 'Further Reading' }}
{% for entry in index_list %}
{% assign index = entry | plus: 0 %}
diff --git a/_includes/search-results.html b/_includes/search-results.html
index e22e23d..698e91a 100644
--- a/_includes/search-results.html
+++ b/_includes/search-results.html
@@ -8,7 +8,7 @@
-
{{ site.data.label.panel.trending_tags }}
+{{ site.data.label.panel.trending_tags | default: 'Trending Tags' }}
{% include trending-tags.html %} diff --git a/_includes/timeago.html b/_includes/timeago.html index b6b7bcd..908dd79 100644 --- a/_includes/timeago.html +++ b/_includes/timeago.html @@ -6,22 +6,27 @@ © 2020 Cotes Chung MIT License --> + +{% assign tooltip_df = site.data.date_format.tooltip | default: '%a, %b %e, %Y, %l:%M %p %z' %} +{% assign post_long_df = site.data.date_format.post.long | default: '%b %e, %Y' %} +{% assign post_short_df = site.data.date_format.post.short | default: '%b %e' %} + {% assign this_year = site.time | date: "%Y" %} {% assign post_year = include.date | date: "%Y" %} {% if post_year == this_year %} - {{ include.date | date: site.data.date_format.post.short }} + {{ include.date | date: post_short_df }} {% else %} - {{ include.date | date: site.data.date_format.post.long }} + {{ include.date | date: post_long_df }} {% endif %} {{ include.date | date_to_xmlschema }} - \ No newline at end of file + diff --git a/_includes/topbar.html b/_includes/topbar.html index dfbc946..89f3f0b 100644 --- a/_includes/topbar.html +++ b/_includes/topbar.html @@ -42,7 +42,7 @@ + aria-label="search" placeholder="{{ site.data.label.search_hint | default: 'Search' }}..."> Cancel diff --git a/_layouts/category.html b/_layouts/category.html index ccc7d46..4382d6e 100644 --- a/_layouts/category.html +++ b/_layouts/category.html @@ -14,11 +14,13 @@ layout: page-
+ {% assign post_long_df = site.data.date_format.post.long | default: '%b %e, %Y' %}
+
{% for post in page.posts %}
- {{ site.data.label.pin_prompt }}
+ {{ site.data.label.pin_prompt | default: 'Pinned' }}
{% endif %}
diff --git a/_layouts/tag.html b/_layouts/tag.html
index 1e67f6e..d4fefe9 100644
--- a/_layouts/tag.html
+++ b/_layouts/tag.html
@@ -7,6 +7,7 @@ layout: page
# MIT Licensed
---
+
@@ -14,11 +15,13 @@ layout: page {{ page.posts | size }}
-
+ {% assign post_long_df = site.data.date_format.post.long | default: '%b %e, %Y' %}
+
{% for post in page.posts %}