From 61eae5c5f9881cab29712f6e696085baa977e1f9 Mon Sep 17 00:00:00 2001 From: Jeffrey Tse Date: Wed, 11 Sep 2019 12:19:34 +0800 Subject: release: v1.0.0 --- _includes/sidebar/archive-list.html | 10 ++++++ _includes/sidebar/article-menu.html | 59 +++++++++++++++++++++++++++++++++ _includes/sidebar/category-list.html | 9 +++++ _includes/sidebar/common-list.html | 25 ++++++++++++++ _includes/sidebar/google-translate.html | 3 ++ _includes/sidebar/tag-list.html | 9 +++++ 6 files changed, 115 insertions(+) create mode 100644 _includes/sidebar/archive-list.html create mode 100644 _includes/sidebar/article-menu.html create mode 100644 _includes/sidebar/category-list.html create mode 100644 _includes/sidebar/common-list.html create mode 100644 _includes/sidebar/google-translate.html create mode 100644 _includes/sidebar/tag-list.html (limited to '_includes/sidebar') diff --git a/_includes/sidebar/archive-list.html b/_includes/sidebar/archive-list.html new file mode 100644 index 0000000..01968e7 --- /dev/null +++ b/_includes/sidebar/archive-list.html @@ -0,0 +1,10 @@ +{%- include functions.html func='log' level='debug' msg='Get datetimes value' -%} + +{% assign filter = '%Y' %} +{% include functions.html func='get_datetimes' %} +{% assign datetimes = return %} + +{% assign keys = datetimes %} +{% assign field = 'date' %} +{% assign url = '/archives.html' %} +{% include sidebar/common-list.html %} diff --git a/_includes/sidebar/article-menu.html b/_includes/sidebar/article-menu.html new file mode 100644 index 0000000..aa4184d --- /dev/null +++ b/_includes/sidebar/article-menu.html @@ -0,0 +1,59 @@ + + +
+
Contents
+
+
+ + diff --git a/_includes/sidebar/category-list.html b/_includes/sidebar/category-list.html new file mode 100644 index 0000000..12b26ec --- /dev/null +++ b/_includes/sidebar/category-list.html @@ -0,0 +1,9 @@ +{%- include functions.html func='log' level='debug' msg='Get categories value' -%} + +{%- include functions.html func='get_categories' -%} +{% assign categories = return %} + +{% assign keys = categories %} +{% assign field = 'categories' %} +{% assign url = '/categories.html' %} +{% include sidebar/common-list.html %} diff --git a/_includes/sidebar/common-list.html b/_includes/sidebar/common-list.html new file mode 100644 index 0000000..7e7bf96 --- /dev/null +++ b/_includes/sidebar/common-list.html @@ -0,0 +1,25 @@ +{%- if include.keys -%} + {%- assign keys = include.keys -%} +{%- endif -%} + +{%- if include.field -%} + {%- assign field = include.field -%} +{%- endif -%} + +
+ +
diff --git a/_includes/sidebar/google-translate.html b/_includes/sidebar/google-translate.html new file mode 100644 index 0000000..496e6e0 --- /dev/null +++ b/_includes/sidebar/google-translate.html @@ -0,0 +1,3 @@ +
+{%- include extensions/google-translate.html -%} +
diff --git a/_includes/sidebar/tag-list.html b/_includes/sidebar/tag-list.html new file mode 100644 index 0000000..dd7b37e --- /dev/null +++ b/_includes/sidebar/tag-list.html @@ -0,0 +1,9 @@ +{%- include functions.html func='log' level='debug' msg='Get tags value' -%} + +{%- include functions.html func='get_tags' -%} +{% assign tags = return %} + +{% assign keys = tags %} +{% assign field = 'tags' %} +{% assign url = '/tags.html' %} +{%- include sidebar/common-list.html -%} -- cgit v1.2.3