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 --- _layouts/404.html | 25 +++++++++++++++++++++++ _layouts/archives.html | 18 +++++++++++++++++ _layouts/articles.html | 14 +++++++++++++ _layouts/categories.html | 16 +++++++++++++++ _layouts/default.html | 24 +++++++++++++++++++++- _layouts/framework.html | 35 ++++++++++++++++++++++++++++++++ _layouts/home.html | 5 +++++ _layouts/page.html | 5 ----- _layouts/post.html | 52 ++++++++++++++++++++++++++++++++++++++++++++++-- _layouts/tags.html | 16 +++++++++++++++ 10 files changed, 202 insertions(+), 8 deletions(-) create mode 100644 _layouts/404.html create mode 100644 _layouts/archives.html create mode 100644 _layouts/articles.html create mode 100644 _layouts/categories.html create mode 100644 _layouts/framework.html create mode 100644 _layouts/home.html delete mode 100644 _layouts/page.html create mode 100644 _layouts/tags.html (limited to '_layouts') diff --git a/_layouts/404.html b/_layouts/404.html new file mode 100644 index 0000000..2bda249 --- /dev/null +++ b/_layouts/404.html @@ -0,0 +1,25 @@ +--- +layout: default +--- + + + +
+

404

+ +

Page not found :(

+

Try to check other pages through the menu.

+
diff --git a/_layouts/archives.html b/_layouts/archives.html new file mode 100644 index 0000000..bbe9ebb --- /dev/null +++ b/_layouts/archives.html @@ -0,0 +1,18 @@ +--- +layout: framework +sidebar: archive-list +--- + +{%- if site.posts.size > 0 -%} + + {% 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 | reverse %} + {% assign field = 'date' %} + {% include views/segments.html %} + +{%- endif -%} diff --git a/_layouts/articles.html b/_layouts/articles.html new file mode 100644 index 0000000..89e9d86 --- /dev/null +++ b/_layouts/articles.html @@ -0,0 +1,14 @@ +--- +layout: framework +sidebar: category-list +--- + +
+ {% if page.banner == nil %} + {% assign banner = page.title %} + {% endif %} + + {{ content }} + + {% include views/pagination.html %} +
diff --git a/_layouts/categories.html b/_layouts/categories.html new file mode 100644 index 0000000..7d37d89 --- /dev/null +++ b/_layouts/categories.html @@ -0,0 +1,16 @@ +--- +layout: framework +sidebar: category-list +--- + +{%- if site.posts.size > 0 -%} + + {%- include functions.html func='log' level='debug' msg='Get value' -%} + {%- include functions.html func='get_categories' -%} + {% assign categories = return %} + + {% assign keys = categories %} + {% assign field = 'categories' %} + {%- include views/segments.html -%} + +{%- endif -%} diff --git a/_layouts/default.html b/_layouts/default.html index cddd070..1823491 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1 +1,23 @@ -{{ content }} + + + + {%- include head.html -%} + + + + {%- include views/header.html -%} + + {%- include views/banner.html -%} + + {%- include extensions/hashlocate.html -%} + +
+
+ {{ content }} +
+
+ + {%- include views/footer.html -%} + + + diff --git a/_layouts/framework.html b/_layouts/framework.html new file mode 100644 index 0000000..f7186c6 --- /dev/null +++ b/_layouts/framework.html @@ -0,0 +1,35 @@ +--- +layout: default +--- + +
+
+ + {{ content }} + +
+ +
diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..5b677fe --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,5 @@ +--- +layout: articles +--- + +{{ content }} diff --git a/_layouts/page.html b/_layouts/page.html deleted file mode 100644 index 5e71126..0000000 --- a/_layouts/page.html +++ /dev/null @@ -1,5 +0,0 @@ ---- -layout: default ---- - -{{ content }} diff --git a/_layouts/post.html b/_layouts/post.html index 5e71126..cae5476 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,5 +1,53 @@ --- -layout: default +layout: framework +banner: 'default' +banner_html: post-header.html +sidebar: + - article-menu --- -{{ content }} +
+
+ + {%- assign name = 'banner' -%} + {%- include functions.html func='get_value' -%} + {%- assign banner = return -%} + + {%- if banner == nil -%} + {%- include views/post-header.html -%} + {%- endif -%} + + {%- include views/article.html -%} + +
+ {%- if page.previous -%} + « Prev + {%- else -%} + + {%- endif -%} + + {%- if page.next -%} + Next » + {%- else -%} + + {%- endif -%} +
+ + {%- if page.comments != false -%} + + {%- if site.disqus.shortname -%} + {%- include extensions/comments/disqus.html -%} + {%- endif -%} + + {%- if site.gitment.username -%} + {%- include extensions/comments/gitment.html -%} + {%- endif -%} + + {%- endif -%} + +
+ + {%- include extensions/mathjax.html -%} +
+ + diff --git a/_layouts/tags.html b/_layouts/tags.html new file mode 100644 index 0000000..dfd1fa6 --- /dev/null +++ b/_layouts/tags.html @@ -0,0 +1,16 @@ +--- +layout: framework +sidebar: tag-list +--- + +{%- if site.posts.size > 0 -%} + + {%- 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' %} + {%- include views/segments.html -%} + +{%- endif -%} -- cgit v1.2.3