diff --git a/_config.yml b/_config.yml index e356369..0d70cf7 100644 --- a/_config.yml +++ b/_config.yml @@ -12,7 +12,7 @@ baseurl: "" # otherwise, the layout language will use the default value of 'en'. lang: en -# Change to your timezone › http://www.timezoneconverter.com/cgi-bin/findzone/findzone +# Change to your timezone › https://kevinnovak.github.io/Time-Zone-Picker timezone: Asia/Seoul # jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md @@ -55,10 +55,6 @@ google_site_verification: # fill in to your verification string google_analytics: id: # fill in your Google Analytics ID - # Google Analytics pageviews report settings - pv: - proxy_endpoint: # fill in the Google Analytics superProxy endpoint of Google App Engine - cache_path: # the local PV cache data, friendly to visitors from GFW region # Prefer color scheme setting. # @@ -184,12 +180,12 @@ compress_html: exclude: - "*.gem" - "*.gemspec" + - docs - tools - README.md - CHANGELOG.md - LICENSE - rollup.config.js - - node_modules - package*.json jekyll-archives: @@ -200,6 +196,3 @@ jekyll-archives: permalinks: tag: /tags/:name/ category: /categories/:name/ - -plugins: - - jekyll-include-cache diff --git a/_data/contact.yml b/_data/contact.yml index 76b667a..1ed228a 100644 --- a/_data/contact.yml +++ b/_data/contact.yml @@ -4,7 +4,7 @@ icon: "fab fa-github" - type: twitter - icon: "fab fa-twitter" + icon: "fa-brands fa-x-twitter" - type: email icon: "fas fa-envelope" diff --git a/_data/share.yml b/_data/share.yml index 776667b..adfc480 100644 --- a/_data/share.yml +++ b/_data/share.yml @@ -7,7 +7,7 @@ platforms: link: "https://www.facebook.com/sharer/sharer.php?title=TITLE&u=URL" - type: Twitter - icon: "fab fa-twitter" + icon: "fa-brands fa-square-x-twitter" link: "https://twitter.com/intent/tweet?text=TITLE&url=URL" # Uncomment below if you need to. diff --git a/_includes/comments.html b/_includes/comments.html deleted file mode 100644 index 39e521f..0000000 --- a/_includes/comments.html +++ /dev/null @@ -1,5 +0,0 @@ - -{% if page.comments and site.comments.active %} - {% capture path %}comments/{{ site.comments.active }}.html{% endcapture %} - {% include {{ path }} %} -{% endif %} diff --git a/_includes/comments/disqus.html b/_includes/comments/disqus.html deleted file mode 100644 index d2f59df..0000000 --- a/_includes/comments/disqus.html +++ /dev/null @@ -1,49 +0,0 @@ - -
' %}
- {% assign content = content | replace: '', '' %}
-{% endif %}
diff --git a/_includes/origin-type.html b/_includes/origin-type.html
deleted file mode 100644
index 7f72012..0000000
--- a/_includes/origin-type.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% comment %} Site static assets origin type {% endcomment %}
-
-{% assign type = 'cors' %}
-
-{% if site.assets.self_host.enabled %}
- {% if site.assets.self_host.env %}
- {% if site.assets.self_host.env == jekyll.environment %}
- {% assign type = 'basic' %}
- {% endif %}
- {% else %}
- {% assign type = 'basic' %}
- {% endif %}
-{% endif %}
diff --git a/_includes/post-nav.html b/_includes/post-nav.html
deleted file mode 100644
index 76bcd59..0000000
--- a/_includes/post-nav.html
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
diff --git a/_includes/post-paginator.html b/_includes/post-paginator.html
deleted file mode 100644
index c432d1b..0000000
--- a/_includes/post-paginator.html
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
- {% if paginator.previous_page %}
- {% assign prev_url = paginator.previous_page_path | relative_url %}
- {% else %}
- {% assign prev_url = '#' %}
- {% endif %}
-
- -
-
-
-
-
-
-
- {% assign left_ellipsis = false %}
- {% assign right_ellipsis = false %}
-
- {% for i in (1..paginator.total_pages) %}
- {% assign pre = paginator.page | minus: 1 %}
- {% assign next = paginator.page | plus: 1 %}
- {% assign pre_less = pre | minus: 1 %}
- {% assign next_more = next | plus: 1 %}
- {% assign show = false %}
-
- {% if paginator.page == 1 %}
- {% if i <= 3 or i == paginator.total_pages %}
- {% assign show = true %}
- {% endif %}
- {% elsif paginator.page == paginator.total_pages %}
- {% if i == 1 or i >= pre_less %}
- {% assign show = true %}
- {% endif %}
- {% else %}
- {% if i == 1 or i == paginator.total_pages %}
- {% assign show = true %}
- {% elsif i >= pre and i <= next %}
- {% assign show = true %}
- {% endif %}
- {% endif %}
-
- {% if show %}
-
- -
-
- {{- i -}}
-
-
- {% else %}
-
- {% if i < pre and left_ellipsis == false %}
- -
- ...
-
- {% assign left_ellipsis = true %}
- {% elsif i > next and right_ellipsis == false %}
- -
- ...
-
- {% assign right_ellipsis = true %}
- {% endif %}
- {% endif %}
- {% endfor %}
-
-
- -
- {{ paginator.page }}
- / {{ paginator.total_pages }}
-
-
-
- {% if paginator.next_page_path %}
- {% assign next_url = paginator.next_page_path | relative_url %}
- {% else %}
- {% assign next_url = '#' %}
- {% endif %}
-
- -
-
-
-
-
-
-
diff --git a/_includes/post-sharing.html b/_includes/post-sharing.html
deleted file mode 100644
index f607ba2..0000000
--- a/_includes/post-sharing.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
diff --git a/_includes/read-time.html b/_includes/read-time.html
deleted file mode 100644
index 56b24c6..0000000
--- a/_includes/read-time.html
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-{% assign words = include.content | strip_html | number_of_words: 'auto' %}
-
-
-
-{% assign wpm = 250 %}
-{% assign min_time = 1 %}
-
-{% assign read_time = words | divided_by: wpm %}
-
-{% unless read_time > 0 %}
- {% assign read_time = min_time %}
-{% endunless %}
-
-{% capture read_prompt %}
- {{- site.data.locales[include.lang].post.read_time.prompt -}}
-{% endcapture %}
-
-
-
-
- {{- read_time -}}
- {{ ' ' }}
- {{- site.data.locales[include.lang].post.read_time.unit -}}
-
- {%- if include.prompt -%}
- {%- assign _prompt_words = read_prompt | number_of_words: 'auto' -%}
- {%- unless _prompt_words > 1 -%}{{ ' ' }}{%- endunless -%}
- {{ read_prompt }}
- {%- endif -%}
-
diff --git a/_includes/refactor-content.html b/_includes/refactor-content.html
deleted file mode 100644
index 655ecd6..0000000
--- a/_includes/refactor-content.html
+++ /dev/null
@@ -1,286 +0,0 @@
-
-
-{% assign _content = include.content %}
-
-
-
-{% if _content contains '', '
'
- | replace: '', ''
- | replace: '
', ''
- %}
-{% endif %}
-
-
-
-{% if _content contains '' %}
- {% assign _content = _content
- | replace: '
', ''
- %}
-{% endif %}
-
-
-{% if _content contains '',
- ''
- | replace:
- '',
- ''
- %}
-{% endif %}
-
-
-{% assign IMG_TAG = '
- {% if site.img_cdn %}
- {% if site.img_cdn contains '//' %}
- {% assign _path_prefix = site.img_cdn %}
- {% else %}
- {% assign _path_prefix = site.img_cdn | relative_url %}
- {% endif %}
- {% else %}
- {% assign _path_prefix = site.baseurl %}
- {% endif %}
-
-
- {% if page.img_path %}
- {% assign _path = page.img_path | append: '/' | replace: '//', '/' %}
- {% assign _path_prefix = _path_prefix | append: _path %}
- {% endif %}
-
- {% for _img_snippet in _img_snippets %}
- {% if forloop.first %}
- {% assign _img_content = _img_snippet %}
- {% continue %}
- {% endif %}
-
- {% assign _left = _img_snippet | split: '>' | first %}
- {% assign _right = _img_snippet | remove: _left %}
-
- {% unless _left contains 'src=' %}
- {% continue %}
- {% endunless %}
-
- {% assign _left = _left | remove: ' /' | replace: ' w=', ' width=' | replace: ' h=', ' height=' %}
- {% assign _attrs = _left | split: '" ' %}
-
- {% assign _width = nil %}
- {% assign _height = nil %}
- {% assign _lqip = nil %}
- {% assign _class = nil %}
-
- {% for _attr in _attrs %}
- {% unless _attr contains '=' %}
- {% continue %}
- {% endunless %}
-
- {% assign _pair = _attr | split: '="' %}
- {% capture _key %}{{ _pair | first }}{% endcapture %}
- {% capture _value %}{{ _pair | last | remove: '"' }}{% endcapture %}
-
- {% case _key %}
- {% when 'width' %}
- {% assign _width = _value %}
- {% when 'height' %}
- {% assign _height = _value %}
- {% when 'src' %}
- {% assign _src = _value %}
- {% when 'lqip' %}
- {% assign _lqip = _value %}
- {% when 'class' %}
- {% assign _class = _value %}
- {% endcase %}
- {% endfor %}
-
-
- {% if _class %}
- {% capture _old_class %}class="{{ _class }}"{% endcapture %}
- {% assign _left = _left | remove: _old_class %}
- {% endif %}
-
- {% assign _final_src = nil %}
-
- {% unless _src contains '//' %}
- {% assign _final_src = _path_prefix | append: _src %}
- {% capture _src_from %}"{{ _src }}"{% endcapture %}
- {% capture _src_to %}"{{ _final_src }}"{% endcapture %}
- {% assign _left = _left | replace: _src_from, _src_to %}
- {% endunless %}
-
- {% if _lqip %}
- {% unless _lqip contains ':' %}
- {% assign _final_lqip = _path_prefix | append: _lqip %}
- {% capture _lqip_from %}"{{ _lqip }}"{% endcapture %}
- {% capture _lqip_to %}"{{ _final_lqip }}"{% endcapture %}
- {% assign _left = _left | replace: _lqip_from, _lqip_to %}
- {% endunless %}
- {% endif %}
-
-
- {% assign _left = _left | replace: 'src=', 'data-src=' %}
- {% if _left contains 'class=' %}
- {% assign _left = _left | replace: 'class="', 'class="lazyload '%}
- {% else %}
- {% assign _left = _left | append: ' class="lazyload"' %}
- {% endif %}
-
-
- {% if _lqip %}
- {% assign _left = _left | replace: ' lqip=', ' data-lqip="true" src=' %}
- {% else %}
- {% if _width and _height %}
-
- {%- capture _svg -%}
- src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 {{ _width }} {{ _height }}'%3E%3C/svg%3E"
- {%- endcapture -%}
- {% assign _left = _svg | append: ' ' | append: _left %}
- {% assign _class = _class | append: ' shimmer' %}
- {% endif %}
- {% endif %}
-
-
- {% assign _left = _left | append: ' data-proofer-ignore' %}
-
- {% if page.layout == 'home' %}
-
- {%- capture _wrapper_start -%}
-
- {%- endcapture -%}
- {% assign _img_content = _img_content | append: _wrapper_start %}
- {% assign _right = _right | prepend: '>` is wrapped by `` -->
- {% assign _parent = _right | slice: 1, 4 %}
-
- {% if _parent == '' %}
-
- {% assign _size = _img_content | size | minus: 1 %}
- {% capture _class %}
- class="img-link{% unless _lqip %} shimmer{% endunless %}"
- {% endcapture %}
- {% assign _img_content = _img_content | slice: 0, _size | append: _class | append: '>' %}
- {% else %}
-
- {%- capture _wrapper_start -%}
-
- {%- endcapture -%}
- {% assign _img_content = _img_content | append: _wrapper_start %}
- {% assign _right = _right | prepend: '>
- {% assign _img_content = _img_content | append: debug | append: IMG_TAG | append: _left | append: _right %}
-
- {% endfor %}
-
- {% if _img_content %}
- {% assign _content = _img_content %}
- {% endif %}
-
-{% endif %}
-
-
-
-{% if _content contains '' %}
- {% assign _code_spippets = _content | split: '' %}
- {% assign _new_content = '' %}
-
- {% for _snippet in _code_spippets %}
-
- {% if forloop.last %}
- {% assign _new_content = _new_content | append: _snippet %}
-
- {% else %}
-
- {% assign _left = _snippet | split: '><' | last%}
-
- {% if _left contains 'file="' %}
- {% assign _label_text = _left | split: 'file="' | last | split: '"' | first %}
- {% assign _label_icon = 'far fa-file-code fa-fw' %}
- {% else %}
- {% assign _lang = _left | split: 'language-' | last | split: ' ' | first %}
- {% capture _label_text %}{% include language-alias.html language=_lang %}{% endcapture %}
- {% assign _label_icon = 'fas fa-code fa-fw small' %}
- {% endif %}
-
- {% capture _label %}
-
- {% endcapture %}
-
- {% assign _new_content = _new_content | append: _snippet
- | append: ''
- | append: _label
- | append: ''
- | append: ''
- %}
-
- {% endif %}
-
- {% endfor %}
-
- {% assign _content = _new_content %}
-
-{% endif %}
-
-
-
-{% assign heading_levels = '2,3,4,5' | split: ',' %}
-{% assign _heading_content = _content %}
-
-{% for level in heading_levels %}
- {% capture mark_start %}{% endcapture %}
-
- {% assign left = snippet | split: mark_end | first %}
- {% assign right = snippet | slice: left.size, snippet.size %}
- {% assign left = left | replace_first: '">', '">' | append: '' %}
-
- {% assign _new_content = _new_content | append: mark_start
- | append: left | append: anchor | append: right
- %}
-
- {% endfor %}
-
- {% assign _heading_content = _new_content %}
-
- {% endif %}
-{% endfor %}
-
-{% assign _content = _heading_content %}
-
-
-{{ _content }}
diff --git a/_includes/related-posts.html b/_includes/related-posts.html
deleted file mode 100644
index 8476a6d..0000000
--- a/_includes/related-posts.html
+++ /dev/null
@@ -1,104 +0,0 @@
-
-
-
-{% assign TOTAL_SIZE = 3 %}
-
-
-{% assign TAG_SCORE = 1 %}
-
-
-{% assign CATEGORY_SCORE = 0.5 %}
-
-{% assign SEPARATOR = ':' %}
-
-{% assign score_list = '' | split: '' %}
-{% assign last_index = site.posts.size | minus: 1 %}
-
-{% for i in (0..last_index) %}
- {% assign post = site.posts[i] %}
-
- {% if post.url == page.url %}
- {% continue %}
- {% endif %}
-
- {% assign score = 0 %}
-
- {% for tag in post.tags %}
- {% if page.tags contains tag %}
- {% assign score = score | plus: TAG_SCORE %}
- {% endif %}
- {% endfor %}
-
- {% for category in post.categories %}
- {% if page.categories contains category %}
- {% assign score = score | plus: CATEGORY_SCORE %}
- {% endif %}
- {% endfor %}
-
- {% if score > 0 %}
- {% capture score_item %}{{ score }}{{ SEPARATOR }}{{ i }}{% endcapture %}
- {% assign score_list = score_list | push: score_item %}
- {% endif %}
-{% endfor %}
-
-{% assign index_list = '' | split: '' %}
-
-{% if score_list.size > 0 %}
- {% assign score_list = score_list | sort | reverse %}
- {% for entry in score_list limit: TOTAL_SIZE %}
- {% assign index = entry | split: SEPARATOR | last %}
- {% assign index_list = index_list | push: index %}
- {% endfor %}
-{% endif %}
-
-
-{% assign less = TOTAL_SIZE | minus: index_list.size %}
-
-{% if less > 0 %}
- {% for i in (0..last_index) %}
- {% assign post = site.posts[i] %}
- {% if post.url != page.url %}
- {% capture cur_index %}{{ i }}{% endcapture %}
- {% unless index_list contains cur_index %}
- {% assign index_list = index_list | push: cur_index %}
- {% assign less = less | minus: 1 %}
- {% if less <= 0 %}
- {% break %}
- {% endif %}
- {% endunless %}
- {% endif %}
- {% endfor %}
-{% endif %}
-
-{% if index_list.size > 0 %}
-
-
-{% endif %}
diff --git a/_includes/search-loader.html b/_includes/search-loader.html
deleted file mode 100644
index 634325b..0000000
--- a/_includes/search-loader.html
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-{% capture result_elem %}
-
- {title}
-
- {snippet}
-
-{% endcapture %}
-
-{% capture not_found %}{{ site.data.locales[include.lang].search.no_results }}
{% endcapture %}
-
-
diff --git a/_includes/search-results.html b/_includes/search-results.html
deleted file mode 100644
index 07981ff..0000000
--- a/_includes/search-results.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
- {% include_cached trending-tags.html %}
-
-
-
-
diff --git a/_includes/sidebar.html b/_includes/sidebar.html
deleted file mode 100644
index 9fe0208..0000000
--- a/_includes/sidebar.html
+++ /dev/null
@@ -1,104 +0,0 @@
-
-
-
-
diff --git a/_includes/toc.html b/_includes/toc.html
deleted file mode 100644
index 1eb3dcd..0000000
--- a/_includes/toc.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% assign enable_toc = false %}
-{% if site.toc and page.toc %}
- {% if page.content contains '
- {{- site.data.locales[include.lang].panel.toc -}}
-
-
-{% endif %}
diff --git a/_includes/topbar.html b/_includes/topbar.html
deleted file mode 100644
index 0092f69..0000000
--- a/_includes/topbar.html
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- {% if page.layout == 'home' %}
- {{- site.data.locales[include.lang].title | default: site.title -}}
- {% elsif page.collection == 'tabs' or page.layout == 'page' %}
- {%- capture tab_key -%}{{ page.url | split: '/' }}{%- endcapture -%}
- {{- site.data.locales[include.lang].tabs[tab_key] | default: page.title -}}
- {% else %}
- {{- site.data.locales[include.lang].layout[page.layout] | default: page.layout | capitalize -}}
- {% endif %}
-
-
-
-
-
-
-
- {{ site.data.locales[include.lang].search.cancel }}
-
-
diff --git a/_includes/trending-tags.html b/_includes/trending-tags.html
deleted file mode 100644
index 6b1d732..0000000
--- a/_includes/trending-tags.html
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-{% assign MAX = 10 %}
-
-{% assign size_list = '' | split: '' %}
-{% assign tag_list = '' | split: '' %}
-
-{% for tag in site.tags %}
- {% assign size = tag | last | size %}
- {% assign size_list = size_list | push: size %}
-
- {% assign tag_str = tag | first | append: '::' | append: size %}
- {% assign tag_list = tag_list | push: tag_str %}
-{% endfor %}
-
-{% assign size_list = size_list | sort | reverse %}
-
-{% assign tag_list = tag_list | sort_natural %}
-
-{% assign trending_tags = '' | split: '' %}
-
-{% for size in size_list limit: MAX %}
- {% for tag_str in tag_list %}
- {% assign tag = tag_str | split: '::' %}
- {% assign tag_name = tag | first %}
- {% assign tag_size = tag | last | plus: 0 %}
- {% if tag_size == size %}
- {% unless trending_tags contains tag_name %}
- {% assign trending_tags = trending_tags | push: tag_name %}
- {% break %}
- {% endunless %}
- {% endif %}
- {% endfor %}
-{% endfor %}
-
-{% if trending_tags.size > 0 %}
-
-{% endif %}
diff --git a/_includes/update-list.html b/_includes/update-list.html
deleted file mode 100644
index 0ab7a45..0000000
--- a/_includes/update-list.html
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-{% assign MAX_SIZE = 5 %}
-
-{% assign all_list = '' | split: '' %}
-
-{% for post in site.posts %}
- {% if post.last_modified_at and post.last_modified_at != post.date %}
- {% capture elem %}
- {{- post.last_modified_at | date: "%Y%m%d%H%M%S" -}}::{{- forloop.index0 -}}
- {% endcapture %}
- {% assign all_list = all_list | push: elem %}
- {% endif %}
-{% endfor %}
-
-{% assign all_list = all_list | sort | reverse %}
-
-{% assign update_list = '' | split: '' %}
-
-{% for entry in all_list limit: MAX_SIZE %}
- {% assign update_list = update_list | push: entry %}
-{% endfor %}
-
-{% if update_list.size > 0 %}
-
- {{- site.data.locales[include.lang].panel.lastmod -}}
-
- {% for item in update_list %}
- {% assign index = item | split: '::' | last | plus: 0 %}
- {% assign post = site.posts[index] %}
- {% assign url = post.url | relative_url %}
- -
- {{ post.title }}
-
- {% endfor %}
-
-
-
-{% endif %}
diff --git a/_layouts/archives.html b/_layouts/archives.html
deleted file mode 100644
index 18e95f5..0000000
--- a/_layouts/archives.html
+++ /dev/null
@@ -1,36 +0,0 @@
----
-layout: page
-# The Archives of posts.
----
-
-{% include lang.html %}
-
-{% assign df_strftime_m = site.data.locales[lang].df.archives.strftime | default: '/ %m' %}
-{% assign df_dayjs_m = site.data.locales[lang].df.archives.dayjs | default: '/ MM' %}
-
-
-
-{% for post in site.posts %}
- {% capture cur_year %}{{ post.date | date: "%Y" }}{% endcapture %}
-
- {% if cur_year != last_year %}
- {% unless forloop.first %}{% endunless %}
- {{ cur_year }}
-
- {% assign last_year = cur_year %}
- {% endif %}
-
- -
- {% assign ts = post.date | date: '%s' %}
- {{ post.date | date: "%d" }}
-
- {{ post.date | date: df_strftime_m }}
-
- {{ post.title }}
-
-
- {% if forloop.last %}
{% endif %}
-
-{% endfor %}
-
-
diff --git a/_layouts/categories.html b/_layouts/categories.html
deleted file mode 100644
index 0515097..0000000
--- a/_layouts/categories.html
+++ /dev/null
@@ -1,138 +0,0 @@
----
-layout: page
-# All the Categories of posts
----
-
-{% include lang.html %}
-
-{% assign HEAD_PREFIX = 'h_' %}
-{% assign LIST_PREFIX = 'l_' %}
-
-{% assign group_index = 0 %}
-
-{% assign sort_categories = site.categories | sort %}
-
-{% for category in sort_categories %}
- {% assign category_name = category | first %}
- {% assign posts_of_category = category | last %}
- {% assign first_post = posts_of_category | first %}
-
- {% if category_name == first_post.categories[0] %}
- {% assign sub_categories = '' | split: '' %}
-
- {% for post in posts_of_category %}
- {% assign second_category = post.categories[1] %}
- {% if second_category %}
- {% unless sub_categories contains second_category %}
- {% assign sub_categories = sub_categories | push: second_category %}
- {% endunless %}
- {% endif %}
- {% endfor %}
-
- {% assign sub_categories = sub_categories | sort %}
- {% assign sub_categories_size = sub_categories | size %}
-
-
-
-
-
-
-
- {% if sub_categories_size > 0 %}
-
-
- {% for sub_category in sub_categories %}
- -
-
-
- {% capture _sub_ctg_url %}/categories/{{ sub_category | slugify | url_encode }}/{% endcapture %}
- {{ sub_category }}
-
- {% assign posts_size = site.categories[sub_category] | size %}
-
- {{ posts_size }}
-
- {% if posts_size > 1 %}
- {{
- site.data.locales[lang].categories.post_measure.plural
- | default: site.data.locales[lang].categories.post_measure
- }}
- {% else %}
- {{
- site.data.locales[lang].categories.post_measure.singular
- | default: site.data.locales[lang].categories.post_measure
- }}
- {% endif %}
-
-
- {% endfor %}
-
-
- {% endif %}
-
-
-
- {% assign group_index = group_index | plus: 1 %}
- {% endif %}
-{% endfor %}
diff --git a/_layouts/category.html b/_layouts/category.html
deleted file mode 100644
index 81ea070..0000000
--- a/_layouts/category.html
+++ /dev/null
@@ -1,24 +0,0 @@
----
-layout: page
-# The Category layout
----
-
-{% include lang.html %}
-
-
-
-
- {{ page.title }}
- {{ page.posts | size }}
-
-
-
- {% for post in page.posts %}
- -
- {{ post.title }}
-
- {% include datetime.html date=post.date wrap='span' class='text-muted small' lang=lang %}
-
- {% endfor %}
-
-
diff --git a/_layouts/compress.html b/_layouts/compress.html
deleted file mode 100644
index bb34487..0000000
--- a/_layouts/compress.html
+++ /dev/null
@@ -1,10 +0,0 @@
----
-# Jekyll layout that compresses HTML
-# v3.1.0
-# http://jch.penibelst.de/
-# © 2014–2015 Anatol Broder
-# MIT License
----
-
-{% capture _LINE_FEED %}
-{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "" %}{% endif %}{% unless _pre_before contains "" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " ; ; ;" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} Step Bytes raw {{ content | size }}{% if _profile_endings %} endings {{ _profile_endings }}{% endif %}{% if _profile_startings %} startings {{ _profile_startings }}{% endif %}{% if _profile_comments %} comments {{ _profile_comments }}{% endif %}{% if _profile_collapse %} collapse {{ _profile_collapse }}{% endif %}{% if _profile_clippings %} clippings {{ _profile_clippings }}{% endif %}
{% endif %}{% endif %}
diff --git a/_layouts/default.html b/_layouts/default.html
deleted file mode 100644
index 0047570..0000000
--- a/_layouts/default.html
+++ /dev/null
@@ -1,76 +0,0 @@
----
-layout: compress
-# Default layout
----
-
-
-
-{% include origin-type.html %}
-
-{% include lang.html %}
-
-{% capture prefer_mode %}
- {% if site.theme_mode %}
- data-mode="{{ site.theme_mode }}"
- {% endif %}
-{% endcapture %}
-
-
-
- {% include head.html %}
-
-
- {% include sidebar.html lang=lang %}
-
-
-
- {% include topbar.html lang=lang %}
- {{ content }}
- {% include_cached search-results.html lang=lang %}
-
-
-
- {% include_cached footer.html lang=lang %}
-
-
-
-
-
- {% if site.pwa.enabled %}
-
-
-
-
-
- {{ site.data.locales[lang].notification.update_found }}
-
-
-
- {% endif %}
-
- {% include js-selector.html %}
-
- {% if page.mermaid %}
- {% include mermaid.html %}
- {% endif %}
-
- {% include_cached search-loader.html %}
-
-
diff --git a/_layouts/home.html b/_layouts/home.html
deleted file mode 100644
index fa2f58e..0000000
--- a/_layouts/home.html
+++ /dev/null
@@ -1,119 +0,0 @@
----
-layout: page
-refactor: true
----
-
-{% include lang.html %}
-
-{% assign pinned = site.posts | where: 'pin', 'true' %}
-{% assign default = site.posts | where_exp: 'item', 'item.pin != true and item.hidden != true' %}
-
-{% assign posts = '' | split: '' %}
-
-
-
-{% assign offset = paginator.page | minus: 1 | times: paginator.per_page %}
-{% assign pinned_num = pinned.size | minus: offset %}
-
-{% if pinned_num > 0 %}
- {% for i in (offset..pinned.size) limit: pinned_num %}
- {% assign posts = posts | push: pinned[i] %}
- {% endfor %}
-{% else %}
- {% assign pinned_num = 0 %}
-{% endif %}
-
-
-
-{% assign default_beg = offset | minus: pinned.size %}
-
-{% if default_beg < 0 %}
- {% assign default_beg = 0 %}
-{% endif %}
-
-{% assign default_num = paginator.posts | size | minus: pinned_num %}
-{% assign default_end = default_beg | plus: default_num | minus: 1 %}
-
-{% if default_num > 0 %}
- {% for i in (default_beg..default_end) %}
- {% assign posts = posts | push: default[i] %}
- {% endfor %}
-{% endif %}
-
-{% if paginator.total_pages > 1 %}
- {% assign has_paginator = true %}
-{% endif %}
-
-
-
-
-{% if has_paginator %}
- {% include post-paginator.html %}
-{% endif %}
diff --git a/_layouts/page.html b/_layouts/page.html
deleted file mode 100644
index 9899308..0000000
--- a/_layouts/page.html
+++ /dev/null
@@ -1,64 +0,0 @@
----
-layout: default
----
-
-{% include lang.html %}
-{% include origin-type.html %}
-
-
-
-
- {% capture padding %}
- {% unless page.layout == 'home' %}px-1{% endunless %}
- {% endcapture %}
-
-
- {% capture _content %}
- {% if layout.refactor or page.layout == 'page' %}
- {% include refactor-content.html content=content lang=lang %}
- {% else %}
- {{ content }}
- {% endif %}
- {% endcapture %}
-
- {% if page.layout == 'page' or page.collection == 'tabs' %}
- {% assign tab_key = page.title | downcase %}
- {% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
-
- {{ title }}
-
-
- {{ _content }}
-
- {% else %}
- {{ _content }}
- {% endif %}
-
-
-
-
-
-
-
- {% include_cached update-list.html lang=lang %}
- {% include_cached trending-tags.html lang=lang %}
-
-
- {% for _include in layout.panel_includes %}
- {% assign _include_path = _include | append: '.html' %}
- {% include {{ _include_path }} lang=lang %}
- {% endfor %}
-
-
-
-
-{% if layout.tail_includes %}
-
-
- {% for _include in layout.tail_includes %}
- {% assign _include_path = _include | append: '.html' %}
- {% include {{ _include_path }} lang=lang %}
- {% endfor %}
-
-
-{% endif %}
diff --git a/_layouts/post.html b/_layouts/post.html
index ff28f10..5f2f41b 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -11,83 +11,86 @@ tail_includes:
{% include lang.html %}
-{{ page.title }}
+
+ {{ page.title }}
-
Comments powered by Disqus.
-