diff --git a/_config.yml b/_config.yml index 2132a7c2f26..1810de2fb20 100644 --- a/_config.yml +++ b/_config.yml @@ -198,6 +198,7 @@ defaults: aside: toc: true show_edit_on_github: true + show_subscribe: true pageview: true diff --git a/_data/locale.yml b/_data/locale.yml index 4bc018ad58f..12466287da8 100644 --- a/_data/locale.yml +++ b/_data/locale.yml @@ -1,19 +1,8 @@ -NAV: - HOME: - en: "Home" - zh: "主页" - zh-Hans: "主页" - zh-Hant: "主頁" - ALL: - en: "Archive" - zh: "归档" - zh-Hans: "归档" - zh-Hant: "歸檔" - RSS: - en: "RSS" - zh: "RSS" - zh-Hans: "RSS" - zh-Hant: "RSS" +SUBSCRIBE: + en: "Subscribe" + zh: "订阅" + zh-Hans: "订阅" + zh-Hant: "訂閱" READMORE: en: "Read more" diff --git a/_data/variables.yml b/_data/variables.yml index 66388921801..5dbaeb6efe7 100644 --- a/_data/variables.yml +++ b/_data/variables.yml @@ -31,6 +31,7 @@ default: show_date: true show_tags: true show_author_profile: false + show_subscribe: false full_width: false sharing: false comment: true diff --git a/_includes/article-footer.html b/_includes/article-footer.html new file mode 100644 index 00000000000..65f016d010d --- /dev/null +++ b/_includes/article-footer.html @@ -0,0 +1,55 @@ +{%- include snippets/assign.html + target=site.data.variables.default.page.show_author_profile + source0=layout.show_author_profile source1=page.show_author_profile -%} +{%- assign _show_author_profile = __return -%} + +{%- include snippets/assign.html + target=site.data.variables.default.page.show_subscribe + source0=layout.show_subscribe source1=page.show_subscribe -%} +{%- assign _show_subscribe = __return -%} + +{%- include snippets/assign.html + target=site.data.variables.default.page.license + source0=layout.license source1=page.license -%} +{%- assign _license = __return -%} + + \ No newline at end of file diff --git a/_includes/article/footer/subscribe.html b/_includes/article/footer/subscribe.html new file mode 100644 index 00000000000..f1d56c2c09e --- /dev/null +++ b/_includes/article/footer/subscribe.html @@ -0,0 +1,6 @@ +{%- assign _paths_rss = site.paths.rss | default: site.data.variables.default.paths.rss -%} +{%- include snippets/get-nav-url.html path=_paths_rss -%} +{%- assign _paths_rss = __return -%} +{%- include snippets/locale-to-string.html locale=site.data.locale.SUBSCRIBE -%} +{%- assign _locale_nav_subscribe = __return -%} +
\ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index ade48029452..b9359b77e16 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,5 +1,5 @@ -