summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2021-10-03 00:10:58 -0500
committerKarl Hallsby <karl@hallsby.com>2021-10-03 02:16:53 -0500
commita10ad0a99ba6e44a35253c3bcaff80c90e99348e (patch)
tree005e05a70fb1fe24a5a7c44dc1d2d14c9e1d88ed
parentb9b34a65fbe55ce78d353ce2b7eb51f6884bd272 (diff)
Revert ALL jekyll-text-theme configuration files
I am changing the theme of the site, and need to revert these changes to make everything work. Revert "Add jekyll-text-theme YAML files" This reverts commit 61b34a5f260db45575d448d766ea29c0fb273ed3. Revert "Bring all of jekyll-text-theme _includes into site" This reverts commit c6bf5f7c895287d2028f6024265913b59784a154. Revert "Bring all of jekyll-text-theme assets to site" This reverts commit 7b69c2e5975f98da09d932ba6c70bdd71b1601a7. Remove jekyll text theme from Gemfile
-rw-r--r--Gemfile1
-rw-r--r--_data/authors.yml0
-rw-r--r--_data/licenses.yml16
-rw-r--r--_data/locale.yml147
-rw-r--r--_data/variables.yml64
-rw-r--r--_includes/analytics-providers/custom.html3
-rw-r--r--_includes/analytics-providers/google.html14
-rw-r--r--_includes/analytics.html7
-rw-r--r--_includes/article-footer.html55
-rw-r--r--_includes/article-header.html49
-rw-r--r--_includes/article-info.html96
-rw-r--r--_includes/article-list.html144
-rw-r--r--_includes/article-section-navigator.html54
-rw-r--r--_includes/article/footer/author-profile.html47
-rw-r--r--_includes/article/footer/custom.html3
-rw-r--r--_includes/article/footer/license.html14
-rw-r--r--_includes/article/footer/subscribe.html6
-rw-r--r--_includes/article/top/custom.html3
-rw-r--r--_includes/aside/toc.html1
-rw-r--r--_includes/comments-providers/custom.html3
-rw-r--r--_includes/comments-providers/disqus.html22
-rw-r--r--_includes/comments-providers/gitalk.html39
-rw-r--r--_includes/comments-providers/valine.html46
-rw-r--r--_includes/comments.html11
-rw-r--r--_includes/extensions/bilibili.html5
-rw-r--r--_includes/extensions/codepen.html4
-rw-r--r--_includes/extensions/netease-cloud-music.html4
-rw-r--r--_includes/extensions/slideshare.html6
-rw-r--r--_includes/extensions/soundcloud.html4
-rw-r--r--_includes/extensions/ted.html5
-rw-r--r--_includes/extensions/youtube.html4
-rw-r--r--_includes/footer.html37
-rw-r--r--_includes/head.html24
-rw-r--r--_includes/head/custom.html3
-rw-r--r--_includes/header.html44
-rw-r--r--_includes/main/bottom/custom.html3
-rw-r--r--_includes/main/top/custom.html3
-rw-r--r--_includes/markdown-enhancements.html17
-rw-r--r--_includes/markdown-enhancements/chart.html15
-rw-r--r--_includes/markdown-enhancements/mathjax.html17
-rw-r--r--_includes/markdown-enhancements/mermaid.html10
-rw-r--r--_includes/pageview-providers/custom/home.html3
-rw-r--r--_includes/pageview-providers/custom/post.html3
-rw-r--r--_includes/pageview-providers/leancloud/home.html35
-rw-r--r--_includes/pageview-providers/leancloud/leancloud.js72
-rw-r--r--_includes/pageview-providers/leancloud/post.html31
-rw-r--r--_includes/pageview.html29
-rw-r--r--_includes/paginator.html98
-rw-r--r--_includes/scripts/archieve.js135
-rw-r--r--_includes/scripts/article.js24
-rw-r--r--_includes/scripts/aside/affix.js26
-rw-r--r--_includes/scripts/aside/toc.js35
-rw-r--r--_includes/scripts/common.js7
-rw-r--r--_includes/scripts/components/lightbox.js49
-rw-r--r--_includes/scripts/components/search.js86
-rw-r--r--_includes/scripts/components/sidebar.js30
-rw-r--r--_includes/scripts/home.js3
-rw-r--r--_includes/scripts/lib/affix.js111
-rw-r--r--_includes/scripts/lib/gallery.js192
-rw-r--r--_includes/scripts/lib/lazyload.js143
-rw-r--r--_includes/scripts/lib/modal.js64
-rw-r--r--_includes/scripts/lib/scroll-to.js13
-rw-r--r--_includes/scripts/lib/swiper.js203
-rw-r--r--_includes/scripts/lib/throttle.js28
-rw-r--r--_includes/scripts/lib/toc.js107
-rw-r--r--_includes/scripts/page.js3
-rw-r--r--_includes/scripts/utils/imagesLoad.js28
-rw-r--r--_includes/scripts/utils/utils.js39
-rw-r--r--_includes/scripts/variables.html35
-rw-r--r--_includes/search-providers/custom/search.html3
-rw-r--r--_includes/search-providers/default/search-data.js14
-rw-r--r--_includes/search-providers/default/search.html18
-rw-r--r--_includes/search-providers/default/search.js112
-rw-r--r--_includes/search-providers/google-custom-search-engine/search.html21
-rw-r--r--_includes/search-providers/google-custom-search-engine/search.js33
-rw-r--r--_includes/search.html20
-rw-r--r--_includes/sharing-providers/addthis.html9
-rw-r--r--_includes/sharing-providers/addtoany.html10
-rw-r--r--_includes/sharing-providers/custom.html3
-rw-r--r--_includes/sharing.html7
-rw-r--r--_includes/sidebar/toc.html25
-rw-r--r--_includes/snippets/assign.html9
-rw-r--r--_includes/snippets/get-article-title.html11
-rw-r--r--_includes/snippets/get-lang.html6
-rw-r--r--_includes/snippets/get-locale-string.html12
-rw-r--r--_includes/snippets/get-nav-url.html8
-rw-r--r--_includes/snippets/get-sources.html2
-rw-r--r--_includes/snippets/get-string-from-locale-config.html7
-rw-r--r--_includes/snippets/is_collection.html6
-rw-r--r--_includes/snippets/page-url.html2
-rw-r--r--_includes/snippets/prepend-baseurl.html4
-rw-r--r--_includes/snippets/prepend-path.html1
-rw-r--r--_includes/svg/icon/social/behance.svg3
-rw-r--r--_includes/svg/icon/social/douban.svg5
-rw-r--r--_includes/svg/icon/social/facebook.svg3
-rw-r--r--_includes/svg/icon/social/flicker.svg5
-rw-r--r--_includes/svg/icon/social/github.svg3
-rw-r--r--_includes/svg/icon/social/googleplus.svg3
-rw-r--r--_includes/svg/icon/social/linkedin.svg3
-rw-r--r--_includes/svg/icon/social/mail.svg6
-rw-r--r--_includes/svg/icon/social/medium.svg3
-rw-r--r--_includes/svg/icon/social/npm.svg9
-rw-r--r--_includes/svg/icon/social/pinterest.svg3
-rw-r--r--_includes/svg/icon/social/qq.svg3
-rw-r--r--_includes/svg/icon/social/telegram.svg4
-rw-r--r--_includes/svg/icon/social/twitter.svg3
-rw-r--r--_includes/svg/icon/social/weibo.svg6
-rw-r--r--_includes/svg/icon/social/weixin.svg3
-rw-r--r--_includes/svg/icon/social/zhihu.svg3
-rw-r--r--_includes/tags.html52
-rw-r--r--_layouts/404.html13
-rw-r--r--_layouts/archive.html39
-rw-r--r--_layouts/article.html29
-rw-r--r--_layouts/articles.html89
-rw-r--r--_layouts/base.html25
-rw-r--r--_layouts/home.html42
-rw-r--r--_layouts/landing.html178
-rw-r--r--_layouts/none.html1
-rw-r--r--_layouts/page.html270
-rw-r--r--_sass/additional/_alert.scss29
-rw-r--r--_sass/additional/_photo-frame.scss17
-rw-r--r--_sass/additional/_tag.scss21
-rw-r--r--_sass/animate/_fade-in-down.scss10
-rw-r--r--_sass/animate/_fade-in-up.scss10
-rw-r--r--_sass/animate/_fade-in.scss8
-rw-r--r--_sass/common/_classes.scss24
-rw-r--r--_sass/common/_function.scss15
-rw-r--r--_sass/common/_print.scss20
-rw-r--r--_sass/common/_reset.scss174
-rw-r--r--_sass/common/_variables.scss150
-rw-r--r--_sass/common/classes/_animation.scss13
-rw-r--r--_sass/common/classes/_clearfix.scss19
-rw-r--r--_sass/common/classes/_clickable.scss159
-rw-r--r--_sass/common/classes/_display.scss13
-rw-r--r--_sass/common/classes/_flex.scss394
-rw-r--r--_sass/common/classes/_grid.scss80
-rw-r--r--_sass/common/classes/_horizontal-rules.scss14
-rw-r--r--_sass/common/classes/_link.scss12
-rw-r--r--_sass/common/classes/_media.scss17
-rw-r--r--_sass/common/classes/_overflow.scss26
-rw-r--r--_sass/common/classes/_pseudo.scss33
-rw-r--r--_sass/common/classes/_shadow.scss22
-rw-r--r--_sass/common/classes/_spacing.scss81
-rw-r--r--_sass/common/classes/_split-line.scss24
-rw-r--r--_sass/common/classes/_text.scss37
-rw-r--r--_sass/common/classes/_transform.scss4
-rw-r--r--_sass/common/classes/_transition.scss4
-rw-r--r--_sass/common/classes/_user-select.scss6
-rw-r--r--_sass/common/components/_button.scss163
-rw-r--r--_sass/common/components/_card.scss103
-rw-r--r--_sass/common/components/_gallery.scss21
-rw-r--r--_sass/common/components/_hero.scss70
-rw-r--r--_sass/common/components/_image.scss19
-rw-r--r--_sass/common/components/_item.scss100
-rw-r--r--_sass/common/components/_menu.scss67
-rw-r--r--_sass/common/components/_modal.scss39
-rw-r--r--_sass/common/components/_swiper.scss48
-rw-r--r--_sass/common/components/_toc.scss124
-rw-r--r--_sass/components/_article-content.scss221
-rw-r--r--_sass/components/_article-footer.scss17
-rw-r--r--_sass/components/_article-header.scss50
-rw-r--r--_sass/components/_article-info.scss25
-rw-r--r--_sass/components/_article-list.scss18
-rw-r--r--_sass/components/_author-links.scss43
-rw-r--r--_sass/components/_author-profile.scss26
-rw-r--r--_sass/components/_extensions.scss35
-rw-r--r--_sass/components/_footer.scss33
-rw-r--r--_sass/components/_header.scss123
-rw-r--r--_sass/components/_lightbox.scss7
-rw-r--r--_sass/components/_main.scss28
-rw-r--r--_sass/components/_search.scss186
-rw-r--r--_sass/components/_tags.scss24
-rw-r--r--_sass/custom.scss3
-rw-r--r--_sass/layout/_404.scss14
-rw-r--r--_sass/layout/_archive.scss5
-rw-r--r--_sass/layout/_article.scss29
-rw-r--r--_sass/layout/_articles.scss17
-rw-r--r--_sass/layout/_base.scss6
-rw-r--r--_sass/layout/_home.scss15
-rw-r--r--_sass/layout/_landing.scss23
-rw-r--r--_sass/layout/_page.scss165
-rw-r--r--_sass/skins/_chocolate.scss74
-rw-r--r--_sass/skins/_dark.scss74
-rw-r--r--_sass/skins/_default.scss74
-rw-r--r--_sass/skins/_forest.scss74
-rw-r--r--_sass/skins/_ocean.scss74
-rw-r--r--_sass/skins/_orange.scss74
-rw-r--r--_sass/skins/highlight/_default.scss0
-rw-r--r--_sass/skins/highlight/_tomorrow-night-blue.scss2
-rw-r--r--_sass/skins/highlight/_tomorrow-night-bright.scss2
-rw-r--r--_sass/skins/highlight/_tomorrow-night-eighties.scss2
-rw-r--r--_sass/skins/highlight/_tomorrow-night.scss2
-rw-r--r--_sass/skins/highlight/_tomorrow.scss2
-rw-r--r--_sass/skins/highlight/tomorrow/_default.scss10
-rw-r--r--_sass/skins/highlight/tomorrow/_highlight.scss74
-rw-r--r--_sass/skins/highlight/tomorrow/_night-blue.scss10
-rw-r--r--_sass/skins/highlight/tomorrow/_night-bright.scss10
-rw-r--r--_sass/skins/highlight/tomorrow/_night-eighties.scss10
-rw-r--r--_sass/skins/highlight/tomorrow/_night.scss10
-rw-r--r--assets/css/main.scss74
-rw-r--r--assets/images/logo/logo.svg8
-rw-r--r--assets/search.js3
202 files changed, 0 insertions, 7797 deletions
diff --git a/Gemfile b/Gemfile
index 89d3fd7..b3980be 100644
--- a/Gemfile
+++ b/Gemfile
@@ -10,7 +10,6 @@ source "https://rubygems.org"
gem "jekyll", "~> 4.1.1"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima"
-gem "jekyll-text-theme"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
diff --git a/_data/authors.yml b/_data/authors.yml
deleted file mode 100644
index e69de29..0000000
--- a/_data/authors.yml
+++ /dev/null
diff --git a/_data/licenses.yml b/_data/licenses.yml
deleted file mode 100644
index 6729af5..0000000
--- a/_data/licenses.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-CC-BY-4.0:
- name: Attribution 4.0 International
- url: https://creativecommons.org/licenses/by/4.0/
- image: https://i.creativecommons.org/l/by/4.0/88x31.png
-CC-BY-SA-4.0:
- name: Attribution-ShareAlike 4.0 International
- url: https://creativecommons.org/licenses/by-sa/4.0/
- image: https://i.creativecommons.org/l/by-sa/4.0/88x31.png
-CC-BY-NC-4.0:
- name: Attribution-NonCommercial 4.0 International
- url: https://creativecommons.org/licenses/by-nc/4.0/
- image: https://i.creativecommons.org/l/by-nc/4.0/88x31.png
-CC-BY-ND-4.0:
- name: Attribution-NoDerivatives 4.0 International
- url: https://creativecommons.org/licenses/by-nd/4.0/
- image: https://i.creativecommons.org/l/by-nd/4.0/88x31.png
diff --git a/_data/locale.yml b/_data/locale.yml
deleted file mode 100644
index 6adca98..0000000
--- a/_data/locale.yml
+++ /dev/null
@@ -1,147 +0,0 @@
-# @start locale config
-## => English
-########################
-en: &EN
- SUBSCRIBE : "Subscribe"
- READMORE : "Read more"
- SEARCH : "Search"
- CANCEL : "Cancel"
- VIEWS : "views"
- LAST_UPDATED : "Last updated"
- PREVIOUS : "PREVIOUS"
- NEXT : "NEXT"
- ARTICLE_DATE_FORMAT : "%b %d, %Y"
- ARTICLE_LIST_DATE_FORMAT: "%b %d"
- STATISTICS : "[POST_COUNT] post articles, [PAGE_COUNT] pages."
- LICENSE_ANNOUNCE : "This work is licensed under a [LICENSE] license."
- POST_ON_GITHUB : "Edit on Github"
- FOLLOW_ME : "Follow me on [NAME]."
- FOLLOW_US : "Follow us on [NAME]."
- EMAIL_ME : "Send me an Email."
- EMAIL_US : "Send us an Email."
- COPYRIGHT_DATES : "2020"
-
-en-GB:
- <<: *EN
-en-US:
- <<: *EN
-en-CA:
- <<: *EN
-en-AU:
- <<: *EN
-
-## => Simplified Chinese
-########################
-zh-Hans: &ZH_HANS
- SUBSCRIBE : "订阅"
- READMORE : "阅读更多"
- SEARCH : "搜索"
- CANCEL : "取消"
- VIEWS : "阅读"
- LAST_UPDATED : "更新于"
- PREVIOUS : "上篇"
- NEXT : "下篇"
- ARTICLE_DATE_FORMAT : "%Y年 %m月%d日"
- ARTICLE_LIST_DATE_FORMAT: "%m月%d日"
- STATISTICS : "共计 [POST_COUNT] 篇文章,[PAGE_COUNT] 页。"
- LICENSE_ANNOUNCE : "本文遵守 [LICENSE] 许可协议。"
- POST_ON_GITHUB : "在 Github 上修改"
- FOLLOW_ME : "在 [NAME] 上关注我。"
- FOLLOW_US : "在 [NAME] 上关注我们。"
- EMAIL_ME : "给我发邮件。"
- EMAIL_US : "给我们发邮件。"
- COPYRIGHT_DATES : "2020"
-
-zh:
- <<: *ZH_HANS
-zh-CN:
- <<: *ZH_HANS
-zh-SG:
- <<: *ZH_HANS
-
-## => Traditional Chinese
-########################
-zh-Hant: &ZH_HANT
- SUBSCRIBE : "訂閱"
- READMORE : "閱讀更多"
- SEARCH : "搜索"
- CANCEL : "取消"
- VIEWS : "閱讀"
- LAST_UPDATED : "更新於"
- PREVIOUS : "上篇"
- NEXT : "下篇"
- ARTICLE_DATE_FORMAT : "%Y年 %m月%d日"
- ARTICLE_LIST_DATE_FORMAT: "%m月%d日"
- STATISTICS : "共計 [POST_COUNT] 篇文章,[PAGE_COUNT] 頁。"
- LICENSE_ANNOUNCE : "本文遵守 [LICENSE] 許可協議。"
- POST_ON_GITHUB : "在 Github 上修改"
- FOLLOW_ME : "在 [NAME] 上關注我。"
- FOLLOW_US : "在 [NAME] 上關注我們。"
- EMAIL_ME : "給我發郵件。"
- EMAIL_US : "給我們發郵件。"
- COPYRIGHT_DATES : "2020"
-
-zh-TW:
- <<: *ZH_HANT
-zh-HK:
- <<: *ZH_HANT
-
-## => Korean
-########################
-ko: &KO
- SUBSCRIBE : "구독하기"
- READMORE : "더보기"
- SEARCH : "검색"
- CANCEL : "취소"
- VIEWS : "조회"
- LAST_UPDATED : "마지막 수정"
- PREVIOUS : "이전"
- NEXT : "다음"
- ARTICLE_DATE_FORMAT : "%Y년 %m월 %d일"
- ARTICLE_LIST_DATE_FORMAT: "%m월 %d일"
- STATISTICS : "전체 글 [POST_COUNT]개, [PAGE_COUNT] 페이지"
- LICENSE_ANNOUNCE : "이 글의 저작권은 [LICENSE] 라이센스를 따릅니다."
- POST_ON_GITHUB : "Github에서 확인하기"
- FOLLOW_ME : "[NAME]에서 팔로우하기"
- FOLLOW_US : "[NAME]에서 팔로우하기"
- EMAIL_ME : "이메일 보내기"
- EMAIL_US : "이메일 보내기"
- COPYRIGHT_DATES : "2020"
-
-ko-KR:
- <<: *KO
-
-## => French
-########################
-fr: &FR
- SUBSCRIBE : "S'abonner"
- READMORE : "Plus"
- SEARCH : "Recherche"
- CANCEL : "Annuler"
- VIEWS : "vues"
- LAST_UPDATED : "Dernière modification"
- PREVIOUS : "PRÉCÉDENT"
- NEXT : "SUIVANT"
- ARTICLE_DATE_FORMAT : "%d %b, %Y"
- ARTICLE_LIST_DATE_FORMAT: "%d %b"
- STATISTICS : "[POST_COUNT] articles, [PAGE_COUNT] pages."
- LICENSE_ANNOUNCE : "Ce travail est sous licence [LICENSE]."
- POST_ON_GITHUB : "Modifier sur Github"
- FOLLOW_ME : "Suivez-moi sur [NAME]."
- FOLLOW_US : "Suivez-nous sur [NAME]."
- EMAIL_ME : "Envoyez-moi un courriel."
- EMAIL_US : "Envoyez-nous un courriel"
- COPYRIGHT_DATES : "2020"
- DONATE : "Faites un don de [NAME]."
-
-fr-BE:
- <<: *FR
-fr-CA:
- <<: *FR
-fr-CH:
- <<: *FR
-fr-FR:
- <<: *FR
-fr-LU:
- <<: *FR
-# @end locale config
diff --git a/_data/variables.yml b/_data/variables.yml
deleted file mode 100644
index 15fdb04..0000000
--- a/_data/variables.yml
+++ /dev/null
@@ -1,64 +0,0 @@
-default:
- text_skin: default
- highlight_theme: default
- lang: en
- paths:
- root: /
- home: /
- archive: /archive.html
- rss: /feed.xml
- mathjax: false
- mathjax_autoNumber: false
- mermaid: false
- chart: false
- toc:
- selectors: 'h1,h2,h3'
- sources: bootcdn
-
- page:
- mode: normal
- type: webpage
- article_header:
- align: left
- theme: light
- articles:
- show_cover: true
- show_excerpt: false
- show_readmore: false
- show_info: false
- show_title: true
- show_edit_on_github: false
- show_date: true
- show_tags: true
- show_author_profile: false
- show_subscribe: false
- full_width: false
- sharing: false
- comment: true
- license: false
- pageview: false
- search: default
-
-sources:
- bootcdn:
- font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css'
- jquery: 'https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js'
- leancloud_js_sdk: '//cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js'
- chart: 'https://cdn.bootcss.com/Chart.js/2.7.2/Chart.bundle.min.js'
- gitalk:
- js: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.js'
- css: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.css'
- valine: 'https://unpkg.com/valine/dist/Valine.min.js' # bootcdn not available
- mathjax: 'https://cdn.bootcss.com/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML'
- mermaid: 'https://cdn.bootcss.com/mermaid/8.0.0-rc.8/mermaid.min.js'
- unpkg:
- font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css'
- jquery: 'https://unpkg.com/jquery@3.3.1/dist/jquery.min.js'
- leancloud_js_sdk: '//cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js'
- chart: 'https://unpkg.com/chart.js@2.7.2/dist/Chart.min.js'
- gitalk:
- js: 'https://unpkg.com/gitalk@1.2.2/dist/gitalk.min.js'
- css: 'https://unpkg.com/gitalk@1.2.2/dist/gitalk.css'
- valine: 'https//unpkg.com/valine/dist/Valine.min.js'
- mathjax: 'https://unpkg.com/mathjax@2.7.4/unpacked/MathJax.js?config=TeX-MML-AM_CHTML'
- mermaid: 'https://unpkg.com/mermaid@8.0.0-rc.8/dist/mermaid.min.js'
diff --git a/_includes/analytics-providers/custom.html b/_includes/analytics-providers/custom.html
deleted file mode 100644
index 58448f7..0000000
--- a/_includes/analytics-providers/custom.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom analytics snippet -->
-
-<!-- end custom analytics snippet -->
diff --git a/_includes/analytics-providers/google.html b/_includes/analytics-providers/google.html
deleted file mode 100644
index 5fbd17d..0000000
--- a/_includes/analytics-providers/google.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{%- if site.analytics.google.tracking_id -%}
- <!-- Global site tag (gtag.js) - Google Analytics -->
- <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics.google.tracking_id }}"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
-
- gtag('config', '{{ site.analytics.google.tracking_id }}');
- {% if site.analytics.google.anonymize_ip == true %}
- gtag('config', '{{ site.analytics.google.tracking_id }}', { 'anonymize_ip': true });
- {% endif %}
- </script>
-{%- endif -%}
diff --git a/_includes/analytics.html b/_includes/analytics.html
deleted file mode 100644
index 46ba91d..0000000
--- a/_includes/analytics.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{%- if jekyll.environment != 'development' -%}
- {%- if site.analytics.provider == 'google' -%}
- {%- include analytics-providers/google.html -%}
- {%- elsif site.analytics.provider == 'custom' -%}
- {%- include analytics-providers/custom.html -%}
- {%- endif -%}
-{%- endif -%}
diff --git a/_includes/article-footer.html b/_includes/article-footer.html
deleted file mode 100644
index 33c3742..0000000
--- a/_includes/article-footer.html
+++ /dev/null
@@ -1,55 +0,0 @@
-{%- 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 -%}
-
-<footer class="article__footer">
- {%- if page.modify_date -%}
- {%- include snippets/get-locale-string.html key='ARTICLE_DATE_FORMAT' -%}
- {%- assign _locale_date_format = __return -%}
-
- {%- include snippets/get-locale-string.html key='LAST_UPDATED' -%}
- {%- assign _locale_last_update = __return -%}
- <span>{{ _locale_last_update }}
- <time itemprop="dateModified" datetime="{{ page.modify_date | date_to_xmlschema }}">{{ page.modify_date | date: _locale_date_format }}</time>
- </span>
- {%- elsif page.date -%}
- <meta itemprop="dateModified" content="{{ page.date | date_to_xmlschema }}">
- {%- endif -%}
-
- {%- include article/footer/custom.html -%}
-
- {%- if _show_author_profile -%}
- {%- if page.author -%}
- {%- assign _author = site.data.authors[page.author] -%}
- {%- else -%}
- {%- assign _author = site.author -%}
- {%- endif -%}
- {%- include article/footer/author-profile.html author=_author -%}
- {%- endif -%}
-
- {%- if _show_subscribe -%}
- <div class="article__subscribe">{%- include article/footer/subscribe.html -%}</div>
- {%- endif -%}
-
- {%- if _license != false -%}
- {%- assign _data_license = site.data.licenses-%}
- {%- if site.license -%}
- {%- assign _license_data = _data_license[site.license] -%}
- {%- endif -%}
- {%- if _license != true -%}
- {%- assign _license_data = _data_license[_license] -%}
- {%- endif -%}
- <div class="article__license">{%- include article/footer/license.html license=_license_data -%}</div>
- {%- endif -%}
-</footer>
diff --git a/_includes/article-header.html b/_includes/article-header.html
deleted file mode 100644
index 748b24c..0000000
--- a/_includes/article-header.html
+++ /dev/null
@@ -1,49 +0,0 @@
-{%- include snippets/get-article-title.html article=include.article-%}
-{%- assign _article_title = __return -%}
-
-{%- if include.html != false -%}
-
- {%- include snippets/assign.html
- target=site.data.variables.default.page.show_title
- source0=layout.show_title source1=include.article.show_title -%}
- {%- assign _show_title = __return -%}
-
- {%- include snippets/assign.html
- target=site.data.variables.default.page.show_edit_on_github
- source0=layout.show_edit_on_github source1=include.article.show_edit_on_github -%}
- {%- assign _show_edit_on_github = __return -%}
-
- {%- if _show_title or _show_edit_on_github -%}
- <div class="article__header">
- {%- if _show_title -%}
- <header><h1>{{ _article_title }}</h1></header>
- {%- endif -%}
- {%- if _show_edit_on_github -%}
- {%- if site.repository and site.repository_tree -%}
- {%- include snippets/is_collection.html page=include.article -%}
- {%- assign _is_article_collection = __return -%}
- {%- include snippets/get-locale-string.html key='POST_ON_GITHUB' -%}
- {%- assign _locale_post_on_github = __return -%}
- {%- if _is_article_collection -%}
- {%- include snippets/prepend-path.html path=include.article.path prepend_path=site.collections_dir -%}
- {%- assign _article_path = __return -%}
- {%- else -%}
- {%- assign _article_path = include.article.path -%}
- {%- endif -%}
- {%- assign _github_path = site.repository | append: '/tree/' | append: site.repository_tree | append: '/' | append: _article_path | replace:'//','/' -%}
- <span class="split-space">&nbsp;</span>
- <a class="edit-on-github"
- title="{{ _locale_post_on_github }}"
- href="https://github.com/{{ _github_path }}">
- <i class="far fa-edit"></i></a>
- {%- endif -%}
- {%- endif -%}
- </div>
- {%- else -%}
- <header style="display:none;"><h1>{{ _article_title }}</h1></header>
- {%- endif -%}
-{%- endif -%}
-
-{%- if include.semantic != false -%}
- <meta itemprop="headline" content="{{ _article_title }}">
-{%- endif -%}
diff --git a/_includes/article-info.html b/_includes/article-info.html
deleted file mode 100644
index c97fac9..0000000
--- a/_includes/article-info.html
+++ /dev/null
@@ -1,96 +0,0 @@
-{%- assign _author = site.data.authors[include.article.author] | default: site.author -%}
-
-{%- if include.html != false -%}
-
- {%- include snippets/assign.html
- target=site.data.variables.default.page.show_date
- source0=layout.show_date source1=include.article.show_date -%}
- {%- assign _show_date = __return -%}
- {%- if _show_date and include.article.date -%}
- {%- assign _show_date = true -%}
- {%- else -%}
- {%- assign _show_date = false -%}
- {%- endif -%}
-
- {%- include snippets/assign.html
- target=site.data.variables.default.page.show_tags
- source0=layout.show_tags source1=include.article.show_tags -%}
- {%- assign _show_tags = __return -%}
- {%- if _show_tags and include.article.tags[0] -%}
- {%- assign _show_tags = true -%}
- {%- else -%}
- {%- assign _show_tags = false -%}
- {%- endif -%}
-
- {%- assign _show_author = include.article.author -%}
-
- {%- include snippets/assign.html target=site.data.variables.default.page.pageview
- source0=layout.pageview source1=page.pageview -%}
- {%- assign _pageview = __return -%}
- {%- if _pageview or include.show_pageview -%}
- {%- assign _pageview = true -%}
- {%- else -%}
- {%- assign _pageview = false -%}
- {%- endif -%}
-
- {%- assign _paths_archive = site.paths.archive | default: site.data.variables.default.paths.archive -%}
-
- {%- if _show_tags or _show_author or _show_date or _pageview -%}
- <div class="article__info clearfix">
- {%- if _show_tags -%}
-
- <ul class="left-col menu">
- {%- assign _tag_path = _paths_archive | append: '?tag=' -%}
- {%- include snippets/prepend-baseurl.html path=_tag_path -%}
-
- {%- for _tag in include.article.tags -%}
- {%- assign _tag_path = __return -%}
- {%- assign _tag_encode = _tag | strip | url_encode } -%}
- <li>
- <a class="button button--secondary button--pill button--sm"
- href="{{ _tag_path | append: _tag_encode | replace: '//', '/' }}">{{ _tag }}</a>
- </li>
- {%- endfor -%}
- </ul>
- {%- endif -%}
-
- {%- if _show_author or _show_date or _pageview -%}
- <ul class="right-col menu">
- {%- if _show_author -%}
- <li><i class="fas fa-user"></i> <span>{{ _author.name }}</span></li>
- {%- endif -%}
-
- {%- if _show_date -%}
- <li>
- {%- include snippets/get-locale-string.html key='ARTICLE_DATE_FORMAT' -%}
- <i class="far fa-calendar-alt"></i> <span>{{ include.article.date | date: __return }}</span>
- </li>
- {%- endif -%}
-
- {%- if _pageview -%}
- {%- if site.pageview.provider -%}
- {%- include snippets/get-locale-string.html key='VIEWS' -%}
- {%- assign _locale_views = __return -%}
- <li><i class="far fa-eye"></i> <span class="js-pageview" data-page-key="{{ include.article.key }}">0</span> {{ _locale_views }}</li>
- {%- endif -%}
- {%- endif -%}
- </ul>
- {%- endif -%}
-
- </div>
- {%- endif -%}
-{%- endif -%}
-
-
-{%- if include.semantic != false -%}
- {%- if _author -%}
- <meta itemprop="author" content="{{ _author.name }}"/>
- {%- endif -%}
- {%- if include.article.date -%}
- <meta itemprop="datePublished" content="{{ include.article.date | date_to_xmlschema }}">
- {%- endif -%}
- {%- if include.article.tags[0] -%}
- {%- assign _keywords = include.article.tags | join: ',' %}
- <meta itemprop="keywords" content="{{ _keywords }}">
- {%- endif -%}
-{%- endif -%}
diff --git a/_includes/article-list.html b/_includes/article-list.html
deleted file mode 100644
index dfe0c85..0000000
--- a/_includes/article-list.html
+++ /dev/null
@@ -1,144 +0,0 @@
-{%- assign _excerpt_truncate = include.excerpt_truncate | default: 350 -%}
-
-{%- assign _excerpt_type = include.excerpt_type -%}
-
-{%- include snippets/get-locale-string.html key='READMORE' -%}
-{%- assign _locale_readmore = __return -%}
-
-{%- assign _sorted_list = include.articles -%}
-{%- if include.group_by == 'year' -%}
- {%- assign _sorted_list = _sorted_list | sort: 'date' -%}
-{%- endif -%}
-{%- if include.reverse -%}
- {%- assign _sorted_list = _sorted_list | reverse -%}
-{%- endif -%}
-
-{%- if include.type == 'item' -%}
-<div class="article-list items items--divided">
-{%- elsif include.type == 'brief' -%}
-<div class="article-list items">
-{%- elsif include.type == 'grid' -%}
- {%- if include.size == 'sm' -%}
- <div class="article-list grid grid--sm grid--p-3">
- {%- else -%}
- <div class="article-list grid grid--p-3">
- {%- endif -%}
-{%- endif -%}
-
- {%- for _article in _sorted_list -%}
-
- {%- include snippets/prepend-baseurl.html path=_article.url -%}
- {%- assign _article_url = __return -%}
-
- {%- if _article.cover -%}
- {%- include snippets/get-nav-url.html path=_article.cover -%}
- {%- assign _article_cover = __return -%}
- {%- endif -%}
-
- {%- if include.type == 'item' -%}
- {%- if include.article_type == 'BlogPosting' -%}
- <article class="item" itemscope itemtype="http://schema.org/BlogPosting">
- {%- else -%}
- <article class="item">
- {%- endif -%}
- {%- if _article.cover and include.show_cover-%}
- {%- include snippets/get-nav-url.html path=_article.cover -%}
- {%- assign _article_cover = __return -%}
- <div class="item__image">
- {%- if include.cover_size == 'lg' -%}
- <img class="image image--lg" src="{{ _article_cover }}" />
- {%- elsif include.cover_size == 'sm' -%}
- <img class="image image--sm" src="{{ _article_cover }}" />
- {%- else -%}
- <img class="image" src="{{ _article_cover }}" />
- {%- endif -%}
- </div>
- {%- endif -%}
- <div class="item__content">
- <header><a href="{{ _article_url }}"><h2 itemprop="headline" class="item__header">{{ _article.title }}</h2></a></header>
- <div class="item__description">
- {%- if _article.excerpt and include.show_excerpt -%}
- <div class="article__content" itemprop="description articleBody">
- {%- if _excerpt_type == 'html' -%}
- {{ _article.excerpt }}
- {%- else -%}
- {{ _article.excerpt | strip_html | strip | truncate: _excerpt_truncate }}
- {%- endif -%}
- </div>
- {%- endif -%}
- {%- if include.show_readmore -%}
- <p><a href="{{ _article_url }}">{{ _locale_readmore }}</a></p>
- {%- endif -%}
- </div>
- {%- if include.show_info -%}
- {%- include snippets/assign.html target=site.data.variables.default.page.pageview
- source0=_article.pageview -%}
- {%- assign _show_pageview = __return -%}
- {%- include article-info.html article=_article show_pageview=_show_pageview -%}
- {%- endif -%}
- </div>
- </article>
-
-
- {%- elsif include.type == 'brief' -%}
- {%- assign _tags = '' -%}
- {%- for _tag in _article.tags -%}
- {%- assign _tag_encode = _tag | strip | url_encode -%}
- {%- if forloop.last -%}
- {%- assign _tags = _tags | append: _tag_encode -%}
- {%- else -%}
- {%- assign _tags = _tags | append: _tag_encode | append: ',' -%}
- {%- endif -%}
- {%- endfor -%}
- {%- if include.group_by == 'year' -%}
- {%- assign _currentdate = _article.date | date: '%Y' -%}
- {%- if _currentdate != _date -%}
- {%- unless forloop.first -%}</ul></section>{%- endunless -%}
- <section><h2 class="article-list__group-header">{{ _currentdate }}</h2><ul class="items">
- {%- assign _date = _currentdate -%}
- {%- endif -%}
- {%- endif -%}
- {%- include snippets/get-locale-string.html key='ARTICLE_LIST_DATE_FORMAT' -%}
- <li class="item" itemscope itemtype="http://schema.org/BlogPosting" data-tags="{{ _tags }}">
- <div class="item__content">
- {%- if include.show_info -%}
- <span class="item__meta">{{ _article.date | date: __return }}</span>
- {%- endif -%}
- <a itemprop="headline" class="item__header" href="{{ _article_url }}">{{ _article.title }}</a></div>
- </li>
-
- {%- elsif include.type == 'grid' -%}
- {%- if include.size == 'sm' -%}
- <div class="cell cell--12 cell--md-4 cell--lg-3">
- <div class="card card--flat">
- {%- if _article.cover -%}
- <div class="card__image">
- <img class="image" src="{{ _article_cover }}" />
- <div class="overlay overlay--bottom">
- <header>
- <a href="{{ _article_url }}"><h2 class="card__header">{{ _article.title }}</h2></a>
- </header>
- </div>
- </div>
- {%- endif -%}
- </div>
- </div>
- {%- else -%}
-
- <div class="cell cell--12 cell--md-6 cell--lg-4">
- <div class="card card--flat">
- {%- if _article.cover -%}
- <div class="card__image"><img src="{{ _article_cover }}" /></div>
- {%- endif -%}
- <div class="card__content">
- <header>
- <a href="{{ _article_url }}"><h2 class="card__header">{{ _article.title }}</h2></a>
- </header>
- </div>
- </div>
- </div>
- {%- endif -%}
- {%- endif -%}
- {%- endfor -%}
-
-</div>
diff --git a/_includes/article-section-navigator.html b/_includes/article-section-navigator.html
deleted file mode 100644
index a88aaf9..0000000
--- a/_includes/article-section-navigator.html
+++ /dev/null
@@ -1,54 +0,0 @@
-{%- if page.sidebar.nav -%}
- {%- assign _sidebar_nav = site.data.navigation[page.sidebar.nav] -%}
- {%- if _sidebar_nav -%}
- {%- assign _find_cur = false -%}
- {%- assign _find_next = false -%}
-
- {%- for _item in _sidebar_nav -%}
- {%- if _find_next -%} {%- break -%} {%- endif -%}
- {%- if _item.children -%}
-
- {%- for _child in _item.children -%}
- {%- include snippets/get-nav-url.html path=_child.url -%}
- {%- assign _nav_url = __return -%}
- {%- include snippets/get-nav-url.html path=page.url -%}
- {%- assign _page_url = __return -%}
-
- {%- if _nav_url == _page_url -%}
- {%- assign _find_cur = true -%}
- {%- elsif _find_cur and _find_next != true -%}
- {%- assign _find_next = true -%}
- {%- assign _next = _child -%}
- {%- break -%}
- {%- else -%}
- {%- assign _previous = _child -%}
- {%- endif -%}
- {%- endfor -%}
-
- {%- endif -%}
- {%- endfor -%}
- {%- endif -%}
-
-{%- else -%}
- {%- assign _previous = page.previous -%}
- {%- assign _next = page.next -%}
-{%- endif -%}
-
-{%- if _next or _previous -%}
- <div class="article__section-navigator clearfix">
- {%- if _previous -%}
- {%- include snippets/prepend-baseurl.html path=_previous.url -%}
- {%- assign _href = __return -%}
- {%- include snippets/get-locale-string.html key='PREVIOUS' -%}
- {%- assign _locale_previous = __return -%}
- <div class="previous"><span>{{ _locale_previous }}</span><a href="{{ _href }}">{{ _previous.title }}</a></div>
- {%- endif -%}
- {%- if _next -%}
- {%- include snippets/prepend-baseurl.html path=_next.url -%}
- {%- assign _href = __return -%}
- {%- include snippets/get-locale-string.html key='NEXT' -%}
- {%- assign _locale_next = __return -%}
- <div class="next"><span>{{ _locale_next }}</span><a href="{{ _href }}">{{ _next.title }}</a></div>
- {%- endif -%}
- </div>
-{%- endif -%}
diff --git a/_includes/article/footer/author-profile.html b/_includes/article/footer/author-profile.html
deleted file mode 100644
index 8b0d72d..0000000
--- a/_includes/article/footer/author-profile.html
+++ /dev/null
@@ -1,47 +0,0 @@
-{%- assign _author = include.author -%}
-
-{%- if _author.type == 'organization' -%}
- {%- assign _author_itemtype = 'http://schema.org/Organization' -%}
-{%- else -%}
- {%- assign _author_itemtype = 'http://schema.org/Person' -%}
-{%- endif -%}
-
-<div itemscope itemtype="{{ _author_itemtype }}" class="author-profile card card--flat item">
- {%- if _author.avatar -%}
- {%- if _author.url -%}
- <a href="{{ _author.url }}" class="item__image">
- {%- endif -%}
- {%- include snippets/get-nav-url.html path=_author.avatar -%}
- {%- assign _author_avatar = __return -%}
- <img class="author-profile__avatar" itemprop="image" src="{{ _author_avatar }}" />
- {%- if _author.url -%}
- </a>
- {%- endif -%}
- {%- endif -%}
-
-
- <div class="item__content">
-
- {%- if _author.name -%}
- <meta itemprop="name" content="{{ _author.name }}">
- <p class="author-profile__name">
- {%- if _author.url -%}
- <meta itemprop="url" content="{{ _author.url }}">
- <a href="{{ _author.url }}">
- {%- endif -%}
- {{ _author.name }}
- {%- if _author.url -%}
- </a>
- {%- endif -%}
- </p>
- {%- endif -%}
-
- {%- if _author.bio -%}
- <p itemprop="description">{{ _author.bio }}</p>
- {%- endif -%}
- <div class="author-profile__links">
- {%- include author-links.html author=_author -%}
- </div>
-
- </div>
-</div>
diff --git a/_includes/article/footer/custom.html b/_includes/article/footer/custom.html
deleted file mode 100644
index edcd06d..0000000
--- a/_includes/article/footer/custom.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom article footer snippet -->
-
-<!-- end custom article footer snippet -->
diff --git a/_includes/article/footer/license.html b/_includes/article/footer/license.html
deleted file mode 100644
index a2c1535..0000000
--- a/_includes/article/footer/license.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{%- include snippets/get-locale-string.html key='LICENSE_ANNOUNCE' -%}
-{%- assign _license_announce = __return -%}
-
-{%- if include.license -%}
-
- {%-assign _license_name = '<a itemprop="license" rel="license" href="[URL]">[NAME]</a>' | replace: "[URL]", include.license.url | replace: "[NAME]", include.license.name -%}
- <div class="license">
- <p>{{ _license_announce | replace: "[LICENSE]", _license_name }}
- <a rel="license" href="{{ include.license.url }}">
- <img alt="{{ include.license.name }}" src="{{ include.license.image }}" />
- </a>
- </p>
- </div>
-{%- endif -%}
diff --git a/_includes/article/footer/subscribe.html b/_includes/article/footer/subscribe.html
deleted file mode 100644
index cb9a169..0000000
--- a/_includes/article/footer/subscribe.html
+++ /dev/null
@@ -1,6 +0,0 @@
-{%- 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/get-locale-string.html key='SUBSCRIBE' -%}
-{%- assign _locale_nav_subscribe = __return -%}
-<div class="subscribe"><i class="fas fa-rss"></i> <a type="application/rss+xml" href="{{ _paths_rss }}">{{ _locale_nav_subscribe }}</a></div>
diff --git a/_includes/article/top/custom.html b/_includes/article/top/custom.html
deleted file mode 100644
index 12f393d..0000000
--- a/_includes/article/top/custom.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom article top snippet -->
-
-<!-- end custom article top snippet -->
diff --git a/_includes/aside/toc.html b/_includes/aside/toc.html
deleted file mode 100644
index 1d19e6a..0000000
--- a/_includes/aside/toc.html
+++ /dev/null
@@ -1 +0,0 @@
-<div class="toc-aside js-toc-root"></div>
diff --git a/_includes/comments-providers/custom.html b/_includes/comments-providers/custom.html
deleted file mode 100644
index 600b9f7..0000000
--- a/_includes/comments-providers/custom.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom comments snippet -->
-
-<!-- end custom comments snippet -->
diff --git a/_includes/comments-providers/disqus.html b/_includes/comments-providers/disqus.html
deleted file mode 100644
index 4022306..0000000
--- a/_includes/comments-providers/disqus.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{%- if page.key and
- site.comments.disqus.shortname -%}
-
- <div id="disqus_thread"></div>
- <script>
- /**
- * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
- * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
- var disqus_config = function () {
- this.page.url = '{%- include snippets/page-url.html -%}';
- this.page.identifier = '{{ page.key }}';
- };
- (function() { // DON'T EDIT BELOW THIS LINE
- var d = document, s = d.createElement('script');
- s.src = 'https://{{ site.comments.disqus.shortname }}.disqus.com/embed.js';
- s.setAttribute('data-timestamp', +new Date());
- (d.head || d.body).appendChild(s);
- })();
- </script>
- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
-
-{%- endif -%}
diff --git a/_includes/comments-providers/gitalk.html b/_includes/comments-providers/gitalk.html
deleted file mode 100644
index f7f5c67..0000000
--- a/_includes/comments-providers/gitalk.html
+++ /dev/null
@@ -1,39 +0,0 @@
-{%- if page.key and
- site.comments.gitalk.clientID and
- site.comments.gitalk.clientSecret and
- site.comments.gitalk.repository and
- site.comments.gitalk.owner and
- site.comments.gitalk.admin -%}
-
- <!-- fix text color in the input textarea of gitalk -->
- <style type="text/css">
- .gitalk-wrapper .gt-header-textarea {
- color: #333 !important;
- }
- </style>
-
- {%- include snippets/get-sources.html -%}
- {%- assign _sources = __return -%}
- <div class="gitalk-wrapper" id="js-gitalk-container"></div>
- {%- assign _admin = '' -%}
- {%- for _admin_id in site.comments.gitalk.admin -%}
- {%- assign _admin = _admin | append: ", '" | append: _admin_id | append: "'" -%}
- {%- endfor -%}
- {%- assign _last = _admin | size | minus: 1 -%}
- {%- assign _admin = _admin | slice: 2, _last -%}
- <script>
- window.Lazyload.css('{{ _sources.gitalk.css }}');
- window.Lazyload.js('{{ _sources.gitalk.js }}', function() {
- var gitalk = new Gitalk({
- clientID: '{{ site.comments.gitalk.clientID }}',
- clientSecret: '{{ site.comments.gitalk.clientSecret }}',
- repo: '{{ site.comments.gitalk.repository }}',
- owner: '{{ site.comments.gitalk.owner }}',
- admin: [{{ _admin }}],
- id: '{{ page.key }}'
- });
- gitalk.render('js-gitalk-container');
- });
- </script>
-
-{%- endif -%}
diff --git a/_includes/comments-providers/valine.html b/_includes/comments-providers/valine.html
deleted file mode 100644
index 68a4274..0000000
--- a/_includes/comments-providers/valine.html
+++ /dev/null
@@ -1,46 +0,0 @@
-{%- include snippets/get-sources.html -%}
-{%- assign _sources = __return -%}
-
-{%- assign _VALINE_APP_ID = site.comments.valine.app_id -%}
-{%- assign _VALINE_APP_KEY = site.comments.valine.app_key -%}
-{%- assign _VALINE_PLACEHOLDER = site.comments.valine.placeholder -%}
-{%- assign _VALINE_VISITOR = site.comments.valine.visitor -%}
-{%- assign _VALINE_META = site.comments.valine.meta -%}
-
-
-{%- if _VALINE_APP_ID and
- _VALINE_APP_KEY -%}
-
-<div id="vcomments"></div>
-
-{%- if _VALINE_VISITOR -%}
-<span id="{{page.url}}" class="leancloud-visitors" data-flag-title={{page.title}}>
-</span>
-{%- endif -%}
-
-<script>
- window.Lazyload.js(['{{ _sources.leancloud_js_sdk}}', '{{ _sources.valine }}'], function() {
- var _config = {
- el: '#vcomments',
- appId: '{{ _VALINE_APP_ID }}',
- appKey: '{{ _VALINE_APP_KEY }}',
- verify: true,
- };
- {%- if _VALINE_PLACEHOLDER -%}
- _config.placeholder = '{{ _VALINE_PLACEHOLDER }}';
- {%- endif -%}
- {%- assign _page_lang_slice = page.lang | slice: 0, 2 -%}
- {%- if _page_lang_slice != 'zh' -%}
- _config.lang = 'en';
- {%- endif -%}
- {%- if _VALINE_VISITOR -%}
- _config.visitor = 'true';
- {%- endif -%}
- {%- if _VALINE_META -%}
- _config.meta = {{ _VALINE_META}};
- {%- endif -%}
- new Valine(_config);
- });
-</script>
-
-{%- endif -%} \ No newline at end of file
diff --git a/_includes/comments.html b/_includes/comments.html
deleted file mode 100644
index 8029395..0000000
--- a/_includes/comments.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{%- if jekyll.environment != 'development' -%}
- {%- if site.comments.provider == 'disqus' -%}
- {%- include comments-providers/disqus.html -%}
- {%- elsif site.comments.provider == 'gitalk' -%}
- {%- include comments-providers/gitalk.html -%}
- {%- elsif site.comments.provider == 'valine' -%}
- {%- include comments-providers/valine.html -%}
- {%- elsif site.comments.provider == 'custom' -%}
- {%- include comments-providers/custom.html -%}
- {%- endif -%}
-{%- endif -%}
diff --git a/_includes/extensions/bilibili.html b/_includes/extensions/bilibili.html
deleted file mode 100644
index 26f4fa4..0000000
--- a/_includes/extensions/bilibili.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<div class="extensions extensions--video">
- <iframe src="//player.bilibili.com/player.html?aid={{ include.id }}&page=1"
- frameborder="no" scrolling="no" allowfullscreen="true">
- </iframe>
-</div>
diff --git a/_includes/extensions/codepen.html b/_includes/extensions/codepen.html
deleted file mode 100644
index 2240dcf..0000000
--- a/_includes/extensions/codepen.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<div class="extensions extensions--demo">
-<iframe src='//codepen.io/{{ include.user }}/embed/{{ include.hash }}/?theme-id=0&default-tab={{ include.default_tab | default: result }}'
- frameborder="0" scrolling="no" allowfullscreen></iframe>
-</div>
diff --git a/_includes/extensions/netease-cloud-music.html b/_includes/extensions/netease-cloud-music.html
deleted file mode 100644
index be0b3b1..0000000
--- a/_includes/extensions/netease-cloud-music.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<iframe class="extensions extensions--audio" width="330" height="86"
- src="//music.163.com/outchain/player?type=2&id={{ include.id }}&auto=1&height=66"
- frameborder="no" border="0" marginwidth="0" marginheight="0">
-</iframe>
diff --git a/_includes/extensions/slideshare.html b/_includes/extensions/slideshare.html
deleted file mode 100644
index 310806b..0000000
--- a/_includes/extensions/slideshare.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<div class="extensions extensions--slide">
- <iframe src="//www.slideshare.net/slideshow/embed_code/key/{{ include.id }}"
- width="595" height="485" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"
- style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" allowfullscreen>
- </iframe>
-</div>
diff --git a/_includes/extensions/soundcloud.html b/_includes/extensions/soundcloud.html
deleted file mode 100644
index b4e086b..0000000
--- a/_includes/extensions/soundcloud.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<iframe class="extensions extensions--audio" width="100%" height="166"
- src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/{{ include.id }}&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true"
- scrolling="no" frameborder="no" allow="autoplay">
-</iframe> \ No newline at end of file
diff --git a/_includes/extensions/ted.html b/_includes/extensions/ted.html
deleted file mode 100644
index 1ffc9f4..0000000
--- a/_includes/extensions/ted.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<div class="extensions extensions--video">
- <iframe src="https://embed.ted.com/talks/{{ include.id }}"
- frameborder="0" scrolling="no" allowfullscreen>
- </iframe>
-</div>
diff --git a/_includes/extensions/youtube.html b/_includes/extensions/youtube.html
deleted file mode 100644
index 6f9c2c8..0000000
--- a/_includes/extensions/youtube.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<div class="extensions extensions--video">
- <iframe src="https://www.youtube.com/embed/{{ include.id }}?rel=0&showinfo=0"
- frameborder="0" scrolling="no" allowfullscreen></iframe>
-</div>
diff --git a/_includes/footer.html b/_includes/footer.html
deleted file mode 100644
index 0a4eb29..0000000
--- a/_includes/footer.html
+++ /dev/null
@@ -1,37 +0,0 @@
-
-<footer class="footer py-4 js-page-footer">
- <div class="main">
-
- {%- assign _site_author = site.author -%}
- {%- if _site_author.type == 'organization' -%}
- {%- assign _site_author_itemtype = 'http://schema.org/Organization' -%}
- {%- else -%}
- {%- assign _site_author_itemtype = 'http://schema.org/Person' -%}
- {%- endif -%}
-
- <div itemscope itemtype="{{ _site_author_itemtype }}">
- <meta itemprop="name" content="{{ _site_author.name }}">
- {%- assign _site_author_url = _site_author.url | default: '/'-%}
- {%- include snippets/get-nav-url.html path=_site_author_url -%}
- {%- assign _site_author_url = __return -%}
- <meta itemprop="url" content="{{ _site_author_url }}">
- {%- if _site_author.bio -%}
- <meta itemprop="description" content="{{ _site_author.bio }}">
- {%- endif -%}
- <div class="footer__author-links">
- {%- include author-links.html author=_site_author -%}
- </div>
- </div>
- {%- include snippets/get-locale-string.html key='COPYRIGHT_DATES' -%}
- {%- assign _locale_copyright_dates = __return -%}
- <div class="site-info mt-2">
- <div>
- {%- include snippets/get-locale-string.html key='COPYRIGHT_DATES' -%}
- {%- assign _locale_copyright_dates = __return -%}
- © {{ site.title }} {{ _locale_copyright_dates }},
- Powered by <a title="Jekyll is a simple, blog-aware, static site generator." href="http://jekyllrb.com/">Jekyll</a> & <a
- title="TeXt is a super customizable Jekyll theme." href="https://github.com/kitian616/jekyll-TeXt-theme">TeXt Theme</a>.
- </div>
- </div>
- </div>
-</footer>
diff --git a/_includes/head.html b/_includes/head.html
deleted file mode 100644
index 35a3b19..0000000
--- a/_includes/head.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge">
-<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
-
-{%- include snippets/get-article-title.html article=page -%}
-<title>{%- if __return -%}{{ __return }} - {{ site.title }}{%- else -%}{{ site.title }}{%- endif -%}</title>
-
-<meta name="description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | strip | truncate: 160 }}{%- else -%}{{ site.description }}{%- endif -%}">
-<link rel="canonical" href="{%- include snippets/page-url.html -%}">
-
-{%- assign _paths_rss = site.paths.rss | default: site.data.variables.default.paths.rss -%}
-{%- include snippets/get-nav-url.html path=_paths_rss -%}
-<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ __return }}">
-
-{%- include head/favicon.html -%}
-
-{%- include snippets/prepend-baseurl.html path='/assets/css/main.css' -%}
-<link rel="stylesheet" href="{{ __return }}">
-
-{%- include snippets/get-sources.html -%}
-{%- assign _sources = __return -%}
-<link rel="stylesheet" href="{{ _sources.font_awesome }}" >
-
-{%- include head/custom.html -%}
diff --git a/_includes/head/custom.html b/_includes/head/custom.html
deleted file mode 100644
index 33b1508..0000000
--- a/_includes/head/custom.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom head snippets -->
-
-<!-- end custom head snippets -->
diff --git a/_includes/header.html b/_includes/header.html
deleted file mode 100644
index c79d399..0000000
--- a/_includes/header.html
+++ /dev/null
@@ -1,44 +0,0 @@
-{%- if include.theme == 'dark' -%}
- <header class="header header--dark" {%- if include.background -%} style="background: {{ include.background }};" {%- endif -%}>
-{%- elsif include.theme == 'light' -%}
- <header class="header header--light" {%- if include.background -%} style="background: {{ include.background }};" {%- endif -%}>
-{%- else -%}
- <header class="header" {%- if include.background -%} style="background: {{ include.background }};" {%- endif -%}>
-{%- endif -%}
- <div class="main">
- <div class="header__title">
- <div class="header__brand">
- {%- include svg/logo.svg -%}
- {%- assign _paths_root = site.paths.root | default: site.data.variables.default.paths.root -%}
- {%- include snippets/get-nav-url.html path=_paths_root -%}
- {%- if site.title -%}
- <a title="{%- if site.description -%}{{ site.description }}{%- endif -%}" href="{{ __return }}">{{ site.title }}</a>
- {%- endif -%}
- </div>
- {%- if site.search.provider -%}
- <button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button>
- {%- endif -%}
- </div>
- {%- if site.data.navigation.header -%}
- <nav class="navigation">
- <ul>
- {%- for _item in site.data.navigation.header -%}
- {%- include snippets/get-nav-url.html path=_item.url -%}
- {%- assign _nav_url = __return -%}
- {%- include snippets/get-nav-url.html path=page.url -%}
- {%- assign _page_url = __return -%}
- {%- include snippets/get-string-from-locale-config.html locale=_item.titles -%}
- {%- if _nav_url == _page_url or page.nav_key and _item.key and page.nav_key == _item.key -%}
- <li class="navigation__item navigation__item--active"><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
- {%- else -%}
- <li class="navigation__item"><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
- {%- endif -%}
- {%- endfor -%}
- {%- if site.search.provider -%}
- <li><button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button></li>
- {%- endif -%}
- </ul>
- </nav>
- {%- endif -%}
- </div>
- </header>
diff --git a/_includes/main/bottom/custom.html b/_includes/main/bottom/custom.html
deleted file mode 100644
index b19da2f..0000000
--- a/_includes/main/bottom/custom.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom main bottom snippet -->
-
-<!-- end custom main bottom snippet -->
diff --git a/_includes/main/top/custom.html b/_includes/main/top/custom.html
deleted file mode 100644
index 0bf5951..0000000
--- a/_includes/main/top/custom.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom main top snippet -->
-
-<!-- end custom main top snippet -->
diff --git a/_includes/markdown-enhancements.html b/_includes/markdown-enhancements.html
deleted file mode 100644
index fe701b4..0000000
--- a/_includes/markdown-enhancements.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{%- include snippets/assign.html target=site.data.variables.default.chart
- source0=site.chart source1=page.chart -%}
-{%- if __return == true -%}
- {%- include markdown-enhancements/chart.html -%}
-{%- endif -%}
-
-{%- include snippets/assign.html target=site.data.variables.default.mathjax
- source0=site.mathjax source1=page.mathjax -%}
-{%- if __return == true -%}
- {%- include markdown-enhancements/mathjax.html -%}
-{%- endif -%}
-
-{%- include snippets/assign.html target=site.data.variables.default.mermaid
- source0=site.mermaid source1=page.mermaid -%}
-{%- if __return == true -%}
- {%- include markdown-enhancements/mermaid.html -%}
-{%- endif -%}
diff --git a/_includes/markdown-enhancements/chart.html b/_includes/markdown-enhancements/chart.html
deleted file mode 100644
index f1c476d..0000000
--- a/_includes/markdown-enhancements/chart.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{%- include snippets/get-sources.html -%}
-{%- assign _sources = __return -%}
-<script>
- window.Lazyload.js(['{{ _sources.jquery }}', '{{ _sources.chart }}'], function() {
- var $canvas = null, $this = null, _ctx = null, _text = '';
- $('.language-chart').each(function(){
- $this = $(this);
- $canvas = $('<canvas></canvas>');
- _text = $this.text();
- $this.text('').append($canvas);
- _ctx = $canvas.get(0).getContext('2d');
- (_ctx && _text) && (new Chart(_ctx, JSON.parse(_text)) && $this.attr('data-processed', true));
- });
- });
-</script>
diff --git a/_includes/markdown-enhancements/mathjax.html b/_includes/markdown-enhancements/mathjax.html
deleted file mode 100644
index 9500faa..0000000
--- a/_includes/markdown-enhancements/mathjax.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{%- include snippets/get-sources.html -%}
-{%- assign _sources = __return -%}
-
-{%- include snippets/assign.html target=site.data.variables.default.mathjax_autoNumber
- source0=site.mathjax_autoNumber source1=page.mathjax_autoNumber -%}
-{%- assign _mathjax_autoNumber = __return -%}
-
-<script type="text/x-mathjax-config">
- var _config = { tex2jax: {
- inlineMath: [['$','$'], ['\\(','\\)']]
- }};
- {%- if _mathjax_autoNumber == true -%}
- _config.TeX = { equationNumbers: { autoNumber: "all" } };
- {%- endif -%}
- MathJax.Hub.Config(_config);
-</script>
-<script type="text/javascript" src="{{ _sources.mathjax }}" async></script>
diff --git a/_includes/markdown-enhancements/mermaid.html b/_includes/markdown-enhancements/mermaid.html
deleted file mode 100644
index 64e4dac..0000000
--- a/_includes/markdown-enhancements/mermaid.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{%- include snippets/get-sources.html -%}
-{%- assign _sources = __return -%}
-<script>
- window.Lazyload.js('{{ _sources.mermaid }}', function() {
- mermaid.initialize({
- startOnLoad: true
- });
- mermaid.init(undefined, '.language-mermaid');
- });
-</script>
diff --git a/_includes/pageview-providers/custom/home.html b/_includes/pageview-providers/custom/home.html
deleted file mode 100644
index 7fabc80..0000000
--- a/_includes/pageview-providers/custom/home.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom pageview snippet (for Home layout) -->
-
-<!-- end custom pageview snippet (for Home layout) -->
diff --git a/_includes/pageview-providers/custom/post.html b/_includes/pageview-providers/custom/post.html
deleted file mode 100644
index c9d0f04..0000000
--- a/_includes/pageview-providers/custom/post.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom pageview snippet (for the post) -->
-
-<!-- end custom pageview snippet (for the post) --> \ No newline at end of file
diff --git a/_includes/pageview-providers/leancloud/home.html b/_includes/pageview-providers/leancloud/home.html
deleted file mode 100644
index 5dc99b7..0000000
--- a/_includes/pageview-providers/leancloud/home.html
+++ /dev/null
@@ -1,35 +0,0 @@
-{%- include snippets/get-sources.html -%}
-{%- assign _sources = __return -%}
-
-{%- assign _LEANCLOUD_APP_ID = site.pageview.leancloud.app_id -%}
-{%- assign _LEANCLOUD_APP_KEY = site.pageview.leancloud.app_key -%}
-{%- assign _LEANCLOUD_APP_CLASS = site.pageview.leancloud.app_class -%}
-
-{%- if _LEANCLOUD_APP_ID and
- _LEANCLOUD_APP_KEY and
- _LEANCLOUD_APP_CLASS -%}
-
- <script>
- {%- include pageview-providers/leancloud/leancloud.js -%}
- </script>
- <script>
- window.Lazyload.js(['{{ _sources.jquery }}', '{{ _sources.leancloud_js_sdk}}'], function() {
- var pageview = window.pageview(AV, {
- appId: '{{ _LEANCLOUD_APP_ID }}',
- appKey: '{{ _LEANCLOUD_APP_KEY }}',
- appClass: '{{ _LEANCLOUD_APP_CLASS }}'
- });
- $('.js-pageview').each(function() {
- var $this = $(this);
- var key = $this.attr('data-page-key');
- pageview.get(key, function(view) {
- $this.attr('itemprop', 'userInteractionCount').attr('content', view).text(view);
- });
- });
- });
- </script>
-
-{%- endif -%}
-
-
-
diff --git a/_includes/pageview-providers/leancloud/leancloud.js b/_includes/pageview-providers/leancloud/leancloud.js
deleted file mode 100644
index 32e3ba8..0000000
--- a/_includes/pageview-providers/leancloud/leancloud.js
+++ /dev/null
@@ -1,72 +0,0 @@
-(function() {
- function errorHandler(error, callback) {
- if (error) {
- callback && callback(error);
- throw error;
- }
- }
-
- function pageview(_AV, options) {
- var AV = _AV;
- var appId, appKey, appClass;
- appId = options.appId;
- appKey = options.appKey;
- appClass = options.appClass;
- AV.init({
- serverURLs: 'https://avoscloud.com',
- appId: appId,
- appKey: appKey
- });
- return {
- get: get,
- increase: increase
- };
-
- function searchKey(key) {
- var query = new AV.Query(appClass);
- query.equalTo('key', key);
- return query.first();
- }
-
- function insert(key, title) {
- var Blog = AV.Object.extend(appClass);
- var blog = new Blog();
- blog.set('title', title);
- blog.set('key', key);
- blog.set('views', 0);
- return blog.save();
- }
-
- function increment(result) {
- result.increment('views', 1);
- return result.save(null, {
- fetchWhenSave: true
- });
- }
-
- function get(key, callback) {
- searchKey(key).then(function(result) {
- if (result) {
- callback && callback(result.attributes.views);
- }
- }, errorHandler);
- }
-
- function increase(key, title, callback) {
- searchKey(key).then(function(result) {
- if (result) {
- increment(result).then(function(result) {
- callback && callback(result.attributes.views);
- });
- } else {
- insert(key, title).then(function(result) {
- increment(result).then(function(result) {
- callback && callback(result.attributes.views);
- });
- }, errorHandler);
- }
- }, errorHandler);
- }
- }
- window.pageview = pageview;
-})();
diff --git a/_includes/pageview-providers/leancloud/post.html b/_includes/pageview-providers/leancloud/post.html
deleted file mode 100644
index ebd7510..0000000
--- a/_includes/pageview-providers/leancloud/post.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{%- include snippets/get-sources.html -%}
-{%- assign _sources = __return -%}
-
-{%- assign _LEANCLOUD_APP_ID = site.pageview.leancloud.app_id -%}
-{%- assign _LEANCLOUD_APP_KEY = site.pageview.leancloud.app_key -%}
-{%- assign _LEANCLOUD_APP_CLASS = site.pageview.leancloud.app_class -%}
-
-{%- if page.key and
- _LEANCLOUD_APP_ID and
- _LEANCLOUD_APP_KEY and
- _LEANCLOUD_APP_CLASS -%}
-
- <script>
- {%- include pageview-providers/leancloud/leancloud.js -%}
- </script>
- <script>
- window.Lazyload.js(['{{ _sources.jquery }}', '{{ _sources.leancloud_js_sdk}}'], function() {
- var pageview = window.pageview(AV, {
- appId: '{{ _LEANCLOUD_APP_ID }}',
- appKey: '{{ _LEANCLOUD_APP_KEY }}',
- appClass: '{{ _LEANCLOUD_APP_CLASS }}'
- });
- var key = '{{ page.key }}';
- var title = {{ page.title | jsonify }};
- pageview.increase(key, title, function(view) {
- $("[data-page-key='{{ page.key }}']").text(view);
- });
- });
- </script>
-
-{%- endif -%} \ No newline at end of file
diff --git a/_includes/pageview.html b/_includes/pageview.html
deleted file mode 100644
index bb31b15..0000000
--- a/_includes/pageview.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{%- include snippets/assign.html target=site.data.variables.default.pageview source0=page.pageview -%}
-{%- assign _pageview = __return -%}
-
-
-{%- if page.layout == "home" -%}
-
- {%- if jekyll.environment != "development" -%}
- {%- if site.pageview.provider == 'leancloud' -%}
- {%- include pageview-providers/leancloud/home.html -%}
- {%- elsif site.pageview.provider == 'custom' -%}
- {%- include pageview-providers/custom/home.html -%}
- {%- endif -%}
- {%- endif -%}
-
-
-{%- elsif page.layout == "article" -%}
- {%- if _pageview -%}
-
- {%- if jekyll.environment != "development" and
- jekyll.environment != "beta" -%}
- {%- if site.pageview.provider == 'leancloud' -%}
- {%- include pageview-providers/leancloud/post.html -%}
- {%- elsif site.pageview.provider == 'custom' -%}
- {%- include pageview-providers/custom/post.html -%}
- {%- endif -%}
- {%- endif -%}
-
- {%- endif -%}
-{%- endif -%}
diff --git a/_includes/paginator.html b/_includes/paginator.html
deleted file mode 100644
index 5956481..0000000
--- a/_includes/paginator.html
+++ /dev/null
@@ -1,98 +0,0 @@
-{%- if paginator.total_pages > 1 -%}
- <div class="pagination">
-
- {%- include snippets/get-locale-string.html key='STATISTICS' -%}
- {%- assign _locale_statistics = __return -%}
-
- {%- assign _post_count = site.posts | size -%}
- {%- assign _page_count = paginator.total_pages -%}
- <p>{{ _locale_statistics | replace: '[POST_COUNT]', _post_count | replace: '[PAGE_COUNT]', _page_count }}</p>
- <div class="pagination__menu">
- <ul class="menu menu--nowrap">
- {%- assign _max_show = 5 -%}
- {%- assign _max_show_modulo_two = _max_show | modulo: 2 -%}
- {%- assign _length = paginator.total_pages -%}
- {%- assign _length_mimus_one = _length | minus: 1 -%}
- {%- assign _cur = paginator.page -%}
- {%- assign _extra = _max_show | minus: 3 -%}
- {%- assign _extra_half = _extra | divided_by: 2 -%}
-
- {%- if _max_show > 4 and _max_show_modulo_two == 1 and paginator.total_pages > _max_show -%}
- {%- assign _condition0 = _extra | divided_by: 2 | plus: 1 -%}
- {%- assign _condition1 = _length | minus: _extra_half -%}
- {%- if _cur <= _condition0 -%}
- {%- assign _n0 = 2 -%}
- {%- assign _n1 = _extra | plus: 2 -%}
- {%- elsif _cur >= _condition1 -%}
- {%- assign _n0 = _length | minus: _extra | minus: 1 -%}
- {%- assign _n1 = _length | minus: 1 -%}
- {%- else -%}
- {%- assign _n0 = _cur | minus: _extra_half -%}
- {%- assign _n1 = _cur | plus: _extra_half -%}
- {%- endif -%}
- {%- endif -%}
-
- {%- if paginator.previous_page -%}
- {%- include snippets/prepend-baseurl.html path=paginator.previous_page_path -%}
- {%- assign _href = __return -%}
- <li><a class="button button--secondary button--circle" href="{{ _href }}">
- <i class="fas fa-angle-left"></i>
- </a></li>
- {%- else -%}
- <li><div class="button button--secondary button--circle disabled">
- <i class="fas fa-angle-left"></i>
- </div></li>
- {%- endif -%}
-
- {%- for page in (1.._length) -%}
- {%- if page == _cur -%}
- <li>
- <div class="button button--primary button--circle focus"><span>{{ page }}</span></div>
- </li>
-
- {%- elsif page == 1 -%}
- {%- assign _home_path = site.paths.home | default: site.data.variables.default.paths.home -%}
- {%- include snippets/prepend-baseurl.html path=_home_path -%}
- {%- assign _href = __return -%}
- <li>
- <a class="button button--secondary button--circle" href="{{ _href }}"><span>{{ page }}</span></a>
- </li>
-
- {%- else -%}
- {%- if _n0 and _n1 -%}
- {%- if page > 1 and page < _n0 -%}
- {%- if page == 2 -%}<li><span class="pagination__omit"><i class="fas fa-ellipsis-h"></i></span></li>{%- endif -%}
- {%- elsif page > _n1 and page < _length -%}
- {%- if page == _length_mimus_one -%}<li><span class="pagination__omit"><i class="fas fa-ellipsis-h"></i></span></li>{%- endif -%}
- {%- else -%}
- {%- include snippets/prepend-baseurl.html path=site.paginate_path -%}
- {%- assign _href = __return -%}
- <li>
- <a class="button button--secondary button--circle" href="{{ _href | replace: ':num', page }}"><span>{{ page }}</span></a>
- </li>
- {%- endif -%}
- {%- else -%}
- {%- include snippets/prepend-baseurl.html path=site.paginate_path -%}
- {%- assign _href = __return -%}
- <li>
- <a class="button button--secondary button--circle" href="{{ _href | replace: ':num', page }}"><span>{{ page }}</span></a>
- </li>
- {%- endif -%}
- {%- endif -%}
- {%- endfor -%}
-
- {%- if paginator.next_page -%}
- {%- include snippets/prepend-baseurl.html path=paginator.next_page_path -%}
- {%- assign _href = __return -%}
- <li><a class="button button--secondary button--circle" href="{{ _href }}">
- <i class="fas fa-angle-right"></i>
- </a></li>
- {%- else -%}
- <li><div class="button button--secondary button--circle disabled">
- <i class="fas fa-angle-right"></i>
- </div></li>
- {%- endif -%}
- </ul>
- </div>
- </div>
-{%- endif -%}
diff --git a/_includes/scripts/archieve.js b/_includes/scripts/archieve.js
deleted file mode 100644
index 96549b5..0000000
--- a/_includes/scripts/archieve.js
+++ /dev/null
@@ -1,135 +0,0 @@
-(function() {
- var SOURCES = window.TEXT_VARIABLES.sources;
- function queryString() {
- // This function is anonymous, is executed immediately and
- // the return value is assigned to QueryString!
- var i = 0, queryObj = {}, pair;
- var queryStr = window.location.search.substring(1);
- var queryArr = queryStr.split('&');
- for (i = 0; i < queryArr.length; i++) {
- pair = queryArr[i].split('=');
- // If first entry with this name
- if (typeof queryObj[pair[0]] === 'undefined') {
- queryObj[pair[0]] = pair[1];
- // If second entry with this name
- } else if (typeof queryObj[pair[0]] === 'string') {
- queryObj[pair[0]] = [queryObj[pair[0]], pair[1]];
- // If third or later entry with this name
- } else {
- queryObj[pair[0]].push(pair[1]);
- }
- }
- return queryObj;
- }
-
- var setUrlQuery = (function() {
- var baseUrl = window.location.href.split('?')[0];
- return function(query) {
- if (typeof query === 'string') {
- window.history.replaceState(null, '', baseUrl + query);
- } else {
- window.history.replaceState(null, '', baseUrl);
- }
- };
- })();
-
- window.Lazyload.js(SOURCES.jquery, function() {
- var $tags = $('.js-tags');
- var $articleTags = $tags.find('button');
- var $tagShowAll = $tags.find('.tag-button--all');
- var $result = $('.js-result');
- var $sections = $result.find('section');
- var sectionArticles = [];
- var $lastFocusButton = null;
- var sectionTopArticleIndex = [];
- var hasInit = false;
-
- $sections.each(function() {
- sectionArticles.push($(this).find('.item'));
- });
-
- function init() {
- var i, index = 0;
- for (i = 0; i < $sections.length; i++) {
- sectionTopArticleIndex.push(index);
- index += $sections.eq(i).find('.item').length;
- }
- sectionTopArticleIndex.push(index);
- }
-
- function searchButtonsByTag(_tag/*raw tag*/) {
- if (!_tag) {
- return $tagShowAll;
- }
- var _buttons = $articleTags.filter('[data-encode="' + _tag + '"]');
- if (_buttons.length === 0) {
- return $tagShowAll;
- }
- return _buttons;
- }
- function buttonFocus(target) {
- if (target) {
- target.addClass('focus');
- $lastFocusButton && !$lastFocusButton.is(target) && $lastFocusButton.removeClass('focus');
- $lastFocusButton = target;
- }
- }
-
- function tagSelect (tag/*raw tag*/, target) {
- var result = {}, $articles;
- var i, j, k, _tag;
-
- for (i = 0; i < sectionArticles.length; i++) {
- $articles = sectionArticles[i];
- for (j = 0; j < $articles.length; j++) {
- if (tag === '' || tag === undefined) {
- result[i] || (result[i] = {});
- result[i][j] = true;
- } else {
- var tags = $articles.eq(j).data('tags').split(',');
- for (k = 0; k < tags.length; k++) {
- if (tags[k] === tag) {
- result[i] || (result[i] = {});
- result[i][j] = true; break;
- }
- }
- }
- }
- }
-
- for (i = 0; i < sectionArticles.length; i++) {
- result[i] && $sections.eq(i).removeClass('d-none');
- result[i] || $sections.eq(i).addClass('d-none');
- for (j = 0; j < sectionArticles[i].length; j++) {
- if (result[i] && result[i][j]) {
- sectionArticles[i].eq(j).removeClass('d-none');
- } else {
- sectionArticles[i].eq(j).addClass('d-none');
- }
- }
- }
-
- hasInit || ($result.removeClass('d-none'), hasInit = true);
-
-
- if (target) {
- buttonFocus(target);
- _tag = target.attr('data-encode');
- if (_tag === '' || typeof _tag !== 'string') {
- setUrlQuery();
- } else {
- setUrlQuery('?tag=' + _tag);
- }
- } else {
- buttonFocus(searchButtonsByTag(tag));
- }
- }
-
- var query = queryString(), _tag = query.tag;
- init(); tagSelect(_tag);
- $tags.on('click', 'button', function() {
- tagSelect($(this).data('encode'), $(this));
- });
-
- });
-})();
diff --git a/_includes/scripts/article.js b/_includes/scripts/article.js
deleted file mode 100644
index 9b18ef5..0000000
--- a/_includes/scripts/article.js
+++ /dev/null
@@ -1,24 +0,0 @@
-(function() {
- var SOURCES = window.TEXT_VARIABLES.sources;
- window.Lazyload.js(SOURCES.jquery, function() {
- $(function() {
- var $this ,$scroll;
- var $articleContent = $('.js-article-content');
- var hasSidebar = $('.js-page-root').hasClass('layout--page--sidebar');
- var scroll = hasSidebar ? '.js-page-main' : 'html, body';
- $scroll = $(scroll);
-
- $articleContent.find('.highlight').each(function() {
- $this = $(this);
- $this.attr('data-lang', $this.find('code').attr('data-lang'));
- });
- $articleContent.find('h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]').each(function() {
- $this = $(this);
- $this.append($('<a class="anchor d-print-none" aria-hidden="true"></a>').html('<i class="fas fa-anchor"></i>'));
- });
- $articleContent.on('click', '.anchor', function() {
- $scroll.scrollToAnchor('#' + $(this).parent().attr('id'), 400);
- });
- });
- });
-})();
diff --git a/_includes/scripts/aside/affix.js b/_includes/scripts/aside/affix.js
deleted file mode 100644
index 1db3b8e..0000000
--- a/_includes/scripts/aside/affix.js
+++ /dev/null
@@ -1,26 +0,0 @@
-(function() {
- var SOURCES = window.TEXT_VARIABLES.sources;
- window.Lazyload.js(SOURCES.jquery, function() {
- var $window = $(window), $pageFooter = $('.js-page-footer');
- var $pageAside = $('.js-page-aside');
- var affix;
- var tocDisabled = false;
- var hasSidebar = $('.js-page-root').hasClass('layout--page--sidebar');
-
- affix = $pageAside.affix({
- offsetBottom: $pageFooter.outerHeight(),
- scrollTarget: hasSidebar ? '.js-page-main' : null,
- scroller: hasSidebar ? '.js-page-main' : null,
- scroll: hasSidebar ? $('.js-page-main').children() : null,
- disabled: tocDisabled
- });
-
- $window.on('resize', window.throttle(function() {
- affix && affix.setOptions({
- disabled: tocDisabled
- });
- }, 100));
-
- window.pageAsideAffix = affix;
- });
-})();
diff --git a/_includes/scripts/aside/toc.js b/_includes/scripts/aside/toc.js
deleted file mode 100644
index a19ea95..0000000
--- a/_includes/scripts/aside/toc.js
+++ /dev/null
@@ -1,35 +0,0 @@
-(function() {
- var SOURCES = window.TEXT_VARIABLES.sources;
- var TOC_SELECTOR = window.TEXT_VARIABLES.site.toc.selectors;
- window.Lazyload.js(SOURCES.jquery, function() {
- var $window = $(window);
- var $articleContent = $('.js-article-content');
- var $tocRoot = $('.js-toc-root'), $col2 = $('.js-col-aside');
- var toc;
- var tocDisabled = false;
- var hasSidebar = $('.js-page-root').hasClass('layout--page--sidebar');
- var hasToc = $articleContent.find(TOC_SELECTOR).length > 0;
-
- function disabled() {
- return $col2.css('display') === 'none' || !hasToc;
- }
-
- tocDisabled = disabled();
-
- toc = $tocRoot.toc({
- selectors: TOC_SELECTOR,
- container: $articleContent,
- scrollTarget: hasSidebar ? '.js-page-main' : null,
- scroller: hasSidebar ? '.js-page-main' : null,
- disabled: tocDisabled
- });
-
- $window.on('resize', window.throttle(function() {
- tocDisabled = disabled();
- toc && toc.setOptions({
- disabled: tocDisabled
- });
- }, 100));
-
- });
-})();
diff --git a/_includes/scripts/common.js b/_includes/scripts/common.js
deleted file mode 100644
index 09400a2..0000000
--- a/_includes/scripts/common.js
+++ /dev/null
@@ -1,7 +0,0 @@
-(function () {
- var $root = document.getElementsByClassName('root')[0];
- if (window.hasEvent('touchstart')) {
- $root.dataset.isTouch = true;
- document.addEventListener('touchstart', function(){}, false);
- }
-})();
diff --git a/_includes/scripts/components/lightbox.js b/_includes/scripts/components/lightbox.js
deleted file mode 100644
index 51689c2..0000000
--- a/_includes/scripts/components/lightbox.js
+++ /dev/null
@@ -1,49 +0,0 @@
-{%- include scripts/utils/imagesLoad.js -%}
-(function () {
- var SOURCES = window.TEXT_VARIABLES.sources;
- window.Lazyload.js(SOURCES.jquery, function() {
- var $pageGalleryModal = $('.js-page-gallery-modal');
- var $images = $('.page__content').find('img:not(.lightbox-ignore)');
- window.imagesLoad($images).then(function() {
- /* global Gallery */
- var pageGalleryModal = $pageGalleryModal.modal({ onChange: handleModalChange });
- var gallery = null;
- var modalVisible = false;
- var i, items = [], image, item;
- if($images && $images.length > 0) {
- for (i = 0; i < $images.length; i++) {
- image = $images.eq(i);
- if (image.get(0).naturalWidth > 800) {
- items.push({ src: image.attr('src'), w: image.get(0).naturalWidth, h: image.get(0).naturalHeight, $el: image});
- }
- }
- }
-
- if(items.length > 0) {
- gallery = new Gallery('.gallery', items);
- gallery.setOptions({ disabled: !modalVisible });
- gallery.init();
- for (i = 0; i < items.length; i++) {
- item = items[i];
- item.$el && (item.$el.addClass('popup-image'), item.$el.on('click', (function() {
- var index = i;
- return function() {
- pageGalleryModal.show();
- gallery.setOptions({ initialSlide: index });
- gallery.refresh(true, { animation: false });
- };
- })()));
- }
- }
-
- function handleModalChange(visible) {
- modalVisible = visible;
- gallery && gallery.setOptions({ disabled: !modalVisible });
- }
-
- $pageGalleryModal.on('click', function() {
- pageGalleryModal.hide();
- });
- });
- });
-})();
diff --git a/_includes/scripts/components/search.js b/_includes/scripts/components/search.js
deleted file mode 100644
index e1c8c27..0000000
--- a/_includes/scripts/components/search.js
+++ /dev/null
@@ -1,86 +0,0 @@
-
-(function () {
- var SOURCES = window.TEXT_VARIABLES.sources;
- window.Lazyload.js(SOURCES.jquery, function() {
- // search panel
- var search = (window.search || (window.search = {}));
- var useDefaultSearchBox = window.useDefaultSearchBox === undefined ?
- true : window.useDefaultSearchBox ;
-
- var $searchModal = $('.js-page-search-modal');
- var $searchToggle = $('.js-search-toggle');
- var searchModal = $searchModal.modal({ onChange: handleModalChange, hideWhenWindowScroll: true });
- var modalVisible = false;
- search.searchModal = searchModal;
-
- var $searchBox = null;
- var $searchInput = null;
- var $searchClear = null;
-
- function getModalVisible() {
- return modalVisible;
- }
- search.getModalVisible = getModalVisible;
-
- function handleModalChange(visible) {
- modalVisible = visible;
- if (visible) {
- search.onShow && search.onShow();
- useDefaultSearchBox && $searchInput[0] && $searchInput[0].focus();
- } else {
- search.onShow && search.onHide();
- useDefaultSearchBox && $searchInput[0] && $searchInput[0].blur();
- setTimeout(function() {
- useDefaultSearchBox && ($searchInput.val(''), $searchBox.removeClass('not-empty'));
- search.clear && search.clear();
- window.pageAsideAffix && window.pageAsideAffix.refresh();
- }, 400);
- }
- }
-
- $searchToggle.on('click', function() {
- modalVisible ? searchModal.hide() : searchModal.show();
- });
- // Char Code: 83 S, 191 /
- $(window).on('keyup', function(e) {
- if (!modalVisible && !window.isFormElement(e.target || e.srcElement) && (e.which === 83 || e.which === 191)) {
- modalVisible || searchModal.show();
- }
- });
-
- if (useDefaultSearchBox) {
- $searchBox = $('.js-search-box');
- $searchInput = $searchBox.children('input');
- $searchClear = $searchBox.children('.js-icon-clear');
- search.getSearchInput = function() {
- return $searchInput.get(0);
- };
- search.getVal = function() {
- return $searchInput.val();
- };
- search.setVal = function(val) {
- $searchInput.val(val);
- };
-
- $searchInput.on('focus', function() {
- $(this).addClass('focus');
- });
- $searchInput.on('blur', function() {
- $(this).removeClass('focus');
- });
- $searchInput.on('input', window.throttle(function() {
- var val = $(this).val();
- if (val === '' || typeof val !== 'string') {
- search.clear && search.clear();
- } else {
- $searchBox.addClass('not-empty');
- search.onInputNotEmpty && search.onInputNotEmpty(val);
- }
- }, 400));
- $searchClear.on('click', function() {
- $searchInput.val(''); $searchBox.removeClass('not-empty');
- search.clear && search.clear();
- });
- }
- });
-})();
diff --git a/_includes/scripts/components/sidebar.js b/_includes/scripts/components/sidebar.js
deleted file mode 100644
index 92c5591..0000000
--- a/_includes/scripts/components/sidebar.js
+++ /dev/null
@@ -1,30 +0,0 @@
-(function() {
- var SOURCES = window.TEXT_VARIABLES.sources;
-
- window.Lazyload.js(SOURCES.jquery, function() {
- var $pageMask = $('.js-page-mask');
- var $pageRoot = $('.js-page-root');
- var $sidebarShow = $('.js-sidebar-show');
- var $sidebarHide = $('.js-sidebar-hide');
-
- function freeze(e) {
- if (e.target === $pageMask[0]) {
- e.preventDefault();
- }
- }
- function stopBodyScrolling(bool) {
- if (bool === true) {
- window.addEventListener('touchmove', freeze, { passive: false });
- } else {
- window.removeEventListener('touchmove', freeze, { passive: false });
- }
- }
-
- $sidebarShow.on('click', function() {
- stopBodyScrolling(true); $pageRoot.addClass('show-sidebar');
- });
- $sidebarHide.on('click', function() {
- stopBodyScrolling(false); $pageRoot.removeClass('show-sidebar');
- });
- });
-})();
diff --git a/_includes/scripts/home.js b/_includes/scripts/home.js
deleted file mode 100644
index 91d05b9..0000000
--- a/_includes/scripts/home.js
+++ /dev/null
@@ -1,3 +0,0 @@
-/*(function () {
-
-})();*/
diff --git a/_includes/scripts/lib/affix.js b/_includes/scripts/lib/affix.js
deleted file mode 100644
index 779442f..0000000
--- a/_includes/scripts/lib/affix.js
+++ /dev/null
@@ -1,111 +0,0 @@
-(function() {
- var SOURCES = window.TEXT_VARIABLES.sources;
- window.Lazyload.js(SOURCES.jquery, function() {
- function affix(options) {
- var $root = this, $window = $(window), $scrollTarget, $scroll,
- offsetBottom = 0, scrollTarget = window, scroll = window.document, disabled = false, isOverallScroller = true,
- rootTop, rootLeft, rootHeight, scrollBottom, rootBottomTop,
- hasInit = false, curState;
-
- function setOptions(options) {
- var _options = options || {};
- _options.offsetBottom && (offsetBottom = _options.offsetBottom);
- _options.scrollTarget && (scrollTarget = _options.scrollTarget);
- _options.scroll && (scroll = _options.scroll);
- _options.disabled !== undefined && (disabled = _options.disabled);
- $scrollTarget = $(scrollTarget);
- isOverallScroller = window.isOverallScroller($scrollTarget[0]);
- $scroll = $(scroll);
- }
- function preCalc() {
- top();
- rootHeight = $root.outerHeight();
- rootTop = $root.offset().top + (isOverallScroller ? 0 : $scrollTarget.scrollTop());
- rootLeft = $root.offset().left;
- }
- function calc(needPreCalc) {
- needPreCalc && preCalc();
- scrollBottom = $scroll.outerHeight() - offsetBottom - rootHeight;
- rootBottomTop = scrollBottom - rootTop;
- }
- function top() {
- if (curState !== 'top') {
- $root.removeClass('fixed').css({
- left: 0,
- top: 0
- });
- curState = 'top';
- }
- }
- function fixed() {
- if (curState !== 'fixed') {
- $root.addClass('fixed').css({
- left: rootLeft + 'px',
- top: 0
- });
- curState = 'fixed';
- }
- }
- function bottom() {
- if (curState !== 'bottom') {
- $root.removeClass('fixed').css({
- left: 0,
- top: rootBottomTop + 'px'
- });
- curState = 'bottom';
- }
- }
- function setState() {
- var scrollTop = $scrollTarget.scrollTop();
- if (scrollTop >= rootTop && scrollTop <= scrollBottom) {
- fixed();
- } else if (scrollTop < rootTop) {
- top();
- } else {
- bottom();
- }
- }
- function init() {
- if(!hasInit) {
- var interval, timeout;
- calc(true); setState();
- // run calc every 100 millisecond
- interval = setInterval(function() {
- calc();
- }, 100);
- timeout = setTimeout(function() {
- clearInterval(interval);
- }, 45000);
- window.pageLoad.then(function() {
- setTimeout(function() {
- clearInterval(interval);
- clearTimeout(timeout);
- }, 3000);
- });
- $scrollTarget.on('scroll', function() {
- disabled || setState();
- });
- $window.on('resize', function() {
- disabled || (calc(true), setState());
- });
- hasInit = true;
- }
- }
-
- setOptions(options);
- if (!disabled) {
- init();
- }
- $window.on('resize', window.throttle(function() {
- init();
- }, 200));
- return {
- setOptions: setOptions,
- refresh: function() {
- calc(true, { animation: false }); setState();
- }
- };
- }
- $.fn.affix = affix;
- });
-})();
diff --git a/_includes/scripts/lib/gallery.js b/_includes/scripts/lib/gallery.js
deleted file mode 100644
index 1793f04..0000000
--- a/_includes/scripts/lib/gallery.js
+++ /dev/null
@@ -1,192 +0,0 @@
-(function() {
- {%- include scripts/lib/swiper.js -%}
- var SOURCES = window.TEXT_VARIABLES.sources;
- window.Lazyload.js(SOURCES.jquery, function() {
- var template =
- '<div class="swiper gallery__swiper">' +
- '<div class="swiper__wrapper">' +
- '</div>' +
- '<div class="swiper__button swiper__button--prev fas fa-chevron-left"></div>' +
- '<div class="swiper__button swiper__button--next fas fa-chevron-right"></div>' +
- '</div>';
- function setState($item, zoom, translate) {
- $item.css('transform', 'scale(' + zoom + ') translate(' + translate.x + 'px,' + translate.y + 'px)');
- }
- function Gallery(root, items) {
- this.$root = $(root);
- this.$swiper = null;
- this.$swiperWrapper = null;
- this.$activeItem = null;
- this.$items = [];
- this.contentWidth = 0;
- this.contentHeight = 0;
- this.swiper = null;
- this.items = items;
- this.disabled = false;
- this.curIndex = 0;
- this.touchCenter = null;
- this.lastTouchCenter = null;
- this.zoomRect = null;
- this.lastZoomRect = null;
- this.lastTranslate = null;
- this.translate = null;
- this.lastZoom = 1;
- this.preZoom = 1;
- this.zoom = 1;
- }
- Gallery.prototype.init = function() {
- var i, item, items = this.items, size, self = this, touchstartFingerCount = 0;
- this.$root.append(template);
- this.$swiper = this.$root.find('.gallery__swiper');
- this.$swiperWrapper = this.$root.find('.swiper__wrapper');
- this.contentWidth = this.$swiperWrapper && this.$swiperWrapper.width();
- this.contentHeight = this.$swiperWrapper && this.$swiperWrapper.height();
- for (i = 0; i < items.length; i++) {
- item = items[i];
- size = this._calculateImageSize(item.w, item.h);
- this.$items.push($(
- '<div class="swiper__slide">' +
- '<div class="gallery-item">' +
- '<div class="gallery-item__content">' +
- '<img src="' + item.src + '" style="width:' + size.w + 'px;height:' + size.h + 'px"/>' +
- '</div>' +
- '</div>' +
- '</div>'
- ));
- }
- this.$swiperWrapper && this.$swiperWrapper.append(this.$items);
- this.swiper = this.$swiper && this.$swiper.swiper({
- onChangeEnd: function() {
- self._handleChangeEnd.apply(self, Array.prototype.slice.call(arguments));
- }
- });
- $(window).on('resize', function() {
- if (self.disabled) { return; }
- self._resizeImageSize();
- });
- // Char Code: 37 ⬅, 39 ➡
- $(window).on('keyup', function(e) {
- if (window.isFormElement(e.target || e.srcElement) || self.disabled) { return; }
- if (e.which === 37) {
- self.swiper && self.swiper.previous();
- } else if (e.which === 39) {
- self.swiper && self.swiper.next();
- }
- });
- function getRect(touch0, touch1) {
- return {
- o: {
- x: (touch0.pageX + touch1.pageX) / 2,
- y: (touch0.pageY + touch1.pageY) / 2
- },
- w: Math.abs(touch0.pageX - touch1.pageX),
- h: Math.abs(touch0.pageY - touch1.pageY)
- };
- }
- function getTouches(e) {
- return e.touches || e;
- }
- function getTouchesCount(e) {
- if (e.touches) {
- return e.touches.length;
- } else {
- return 1;
- }
- }
- this.$swiperWrapper.on('touchstart', function(e) {
- var touch0, touch1, rect;
- touchstartFingerCount = getTouchesCount(e);
- if (touchstartFingerCount > 1) {
- touch0 = e.touches[0];
- touch1 = e.touches[1];
- rect = getRect(touch0, touch1);
- self.lastZoomRect = { w: rect.w, h: rect.h };
- self.lastTouchCenter = rect.o;
- } else {
- var touch = getTouches(e)[0];
- self.lastTouchCenter = { x: touch.pageX, y: touch.pageY };
- }
- });
- this.$swiperWrapper.on('touchmove', function(e) {
- if (touchstartFingerCount === getTouchesCount(e)) {
- if (touchstartFingerCount > 1) {
- var touch0 = e.touches[0];
- var touch1 = e.touches[1];
- var rect = getRect(touch0, touch1);
- self.zoomRect = { w: rect.w, h: rect.h };
- self.touchCenter = rect.o;
- self._zoom(); self._translate();
- setState(self.$activeItem, self.zoom, self.translate);
- } else {
- var touch = getTouches(e)[0];
- self.touchCenter = { x: touch.pageX, y: touch.pageY };
- self._translate();
- setState(self.$activeItem, self.zoom, self.translate);
- }
- }
- });
- this.$swiperWrapper.on('touchend', function(e) {
- self.lastZoom = self.zoom;
- self.lastTranslate = self.translate;
- touchstartFingerCount = 0;
- });
- this.$root.on('touchmove', function(e) {
- if (self.disabled) { return; }
- e.preventDefault();
- });
- };
-
- Gallery.prototype._translate = function() {
- this.translate = this.touchCenter && this.lastTouchCenter && this.lastTranslate ? {
- x: (this.touchCenter.x - this.lastTouchCenter.x) / this.zoom + this.lastTranslate.x,
- y: (this.touchCenter.y - this.lastTouchCenter.y) / this.zoom + this.lastTranslate.y
- } : { x: 0, y: 0 };
- }
- Gallery.prototype._zoom = function() {
- this.zoom = (this.zoomRect.w + this.zoomRect.h) / (this.lastZoomRect.w + this.lastZoomRect.h) * this.lastZoom;
- this.zoom > 1 ? this.$activeItem.addClass('zoom') : this.$activeItem.removeClass('zoom');
- this.preZoom = this.zoom;
- }
-
- Gallery.prototype._calculateImageSize = function(w, h) {
- var scale = 1;
- if (this.contentWidth > 0 && this.contentHeight > 0 && w > 0 && h > 0) {
- scale = Math.min(
- Math.min(w, this.contentWidth) / w,
- Math.min(h, this.contentHeight) / h);
- }
- return { w: Math.floor(w * scale), h: Math.floor(h * scale) };
- };
-
- Gallery.prototype._resizeImageSize = function() {
- var i, $item, $items = this.$items, item, size;
- this.contentWidth = this.$swiperWrapper && this.$swiperWrapper.width();
- this.contentHeight = this.$swiperWrapper && this.$swiperWrapper.height();
- if ($items.length < 1) { return; }
- for (i = 0; i < $items.length; i++) {
- item = this.items[i], $item = $items[i];
- size = this._calculateImageSize(item.w, item.h);
- item.width = size.w; item.height = size.h;
- $item && $item.find('img').css({ width: size.w, height: size.h });
- }
- };
- Gallery.prototype._handleChangeEnd = function(index, $dom, preIndex, $preDom) {
- this.curIndex = index;
- this.lastZoomRect = null; this.lastZoomRect = null;
- this.lastTranslate = this.translate = { x: 0, y:0 };
- this.lastZoom = this.preZoom = this.zoom = 1;
- this.$activeItem = $dom.find('.gallery-item__content');
- setState($preDom.find('.gallery-item__content'), this.zoom, this.translate);
- };
-
- Gallery.prototype.refresh = function() {
- this.swiper && this.swiper.refresh();
- this._resizeImageSize();
- };
- Gallery.prototype.setOptions = function(options) {
- this.disabled = options.disabled;
- this.swiper && this.swiper.setOptions(options);
- };
- window.Gallery = Gallery;
- });
-})(); \ No newline at end of file
diff --git a/_includes/scripts/lib/lazyload.js b/_includes/scripts/lib/lazyload.js
deleted file mode 100644
index 9911535..0000000
--- a/_includes/scripts/lib/lazyload.js
+++ /dev/null
@@ -1,143 +0,0 @@
-(function() {
- var Set = (function() {
- var add = function(item) {
- var i, data = this._data;
- for (i = 0; i < data.length; i++) {
- if (data[i] === item) {
- return;
- }
- }
- this.size ++;
- data.push(item);
- return data;
- };
-
- var Set = function(data) {
- this.size = 0;
- this._data = [];
- var i;
- if (data.length > 0) {
- for (i = 0; i < data.length; i++) {
- add.call(this, data[i]);
- }
- }
- };
- Set.prototype.add = add;
- Set.prototype.get = function(index) { return this._data[index]; };
- Set.prototype.has = function(item) {
- var i, data = this._data;
- for (i = 0; i < data.length; i++) {
- if (this.get(i) === item) {
- return true;
- }
- }
- return false;
- };
- Set.prototype.is = function(map) {
- if (map._data.length !== this._data.length) { return false; }
- var i, j, flag, tData = this._data, mData = map._data;
- for (i = 0; i < tData.length; i++) {
- for (flag = false, j = 0; j < mData.length; j++) {
- if (tData[i] === mData[j]) {
- flag = true;
- break;
- }
- }
- if (!flag) { return false; }
- }
- return true;
- };
- Set.prototype.values = function() {
- return this._data;
- };
- return Set;
- })();
-
- window.Lazyload = (function(doc) {
- var queue = {js: [], css: []}, sources = {js: {}, css: {}}, context = this;
- var createNode = function(name, attrs) {
- var node = doc.createElement(name), attr;
- for (attr in attrs) {
- if (attrs.hasOwnProperty(attr)) {
- node.setAttribute(attr, attrs[attr]);
- }
- }
- return node;
- };
- var end = function(type, url) {
- var s, q, qi, cbs, i, j, cur, val, flag;
- if (type === 'js' || type ==='css') {
- s = sources[type], q = queue[type];
- s[url] = true;
- for (i = 0; i < q.length; i++) {
- cur = q[i];
- if (cur.urls.has(url)) {
- qi = cur, val = qi.urls.values();
- qi && (cbs = qi.callbacks);
- for (flag = true, j = 0; j < val.length; j++) {
- cur = val[j];
- if (!s[cur]) {
- flag = false;
- }
- }
- if (flag && cbs && cbs.length > 0) {
- for (j = 0; j < cbs.length; j++) {
- cbs[j].call(context);
- }
- qi.load = true;
- }
- }
- }
- }
- };
- var load = function(type, urls, callback) {
- var s, q, qi, node, i, cur,
- _urls = typeof urls === 'string' ? new Set([urls]) : new Set(urls), val, url;
- if (type === 'js' || type ==='css') {
- s = sources[type], q = queue[type];
- for (i = 0; i < q.length; i++) {
- cur = q[i];
- if (_urls.is(cur.urls)) {
- qi = cur;
- break;
- }
- }
- val = _urls.values();
- if (qi) {
- callback && (qi.load || qi.callbacks.push(callback));
- callback && (qi.load && callback());
- } else {
- q.push({
- urls: _urls,
- callbacks: callback ? [callback] : [],
- load: false
- });
- for (i = 0; i < val.length; i++) {
- node = null, url = val[i];
- if (s[url] === undefined) {
- (type === 'js' ) && (node = createNode('script', { src: url }));
- (type === 'css') && (node = createNode('link', { rel: 'stylesheet', href: url }));
- if (node) {
- node.onload = (function(type, url) {
- return function() {
- end(type, url);
- };
- })(type, url);
- (doc.head || doc.body).appendChild(node);
- s[url] = false;
- }
- }
- }
- }
- }
- };
- return {
- js: function(url, callback) {
- load('js', url, callback);
- },
- css: function(url, callback) {
- load('css', url, callback);
- }
- };
- })(this.document);
-})();
diff --git a/_includes/scripts/lib/modal.js b/_includes/scripts/lib/modal.js
deleted file mode 100644
index cb5d188..0000000
--- a/_includes/scripts/lib/modal.js
+++ /dev/null
@@ -1,64 +0,0 @@
-(function() {
- var SOURCES = window.TEXT_VARIABLES.sources;
- window.Lazyload.js(SOURCES.jquery, function() {
- var $body = $('body'), $window = $(window);
- var $pageRoot = $('.js-page-root'), $pageMain = $('.js-page-main');
- var activeCount = 0;
- function modal(options) {
- var $root = this, visible, onChange, hideWhenWindowScroll = false;
- var scrollTop;
- function setOptions(options) {
- var _options = options || {};
- visible = _options.initialVisible === undefined ? false : show;
- onChange = _options.onChange;
- hideWhenWindowScroll = _options.hideWhenWindowScroll;
- }
- function init() {
- setState(visible);
- }
- function setState(isShow) {
- if (isShow === visible) {
- return;
- }
- visible = isShow;
- if (visible) {
- activeCount++;
- scrollTop = $(window).scrollTop() || $pageMain.scrollTop();
- $root.addClass('modal--show');
- $pageMain.scrollTop(scrollTop);
- activeCount === 1 && ($pageRoot.addClass('show-modal'), $body.addClass('of-hidden'));
- hideWhenWindowScroll && window.hasEvent('touchstart') && $window.on('scroll', hide);
- $window.on('keyup', handleKeyup);
- } else {
- activeCount > 0 && activeCount--;
- $root.removeClass('modal--show');
- $window.scrollTop(scrollTop);
- activeCount === 0 && ($pageRoot.removeClass('show-modal'), $body.removeClass('of-hidden'));
- hideWhenWindowScroll && window.hasEvent('touchstart') && $window.off('scroll', hide);
- $window.off('keyup', handleKeyup);
- }
- onChange && onChange(visible);
- }
- function show() {
- setState(true);
- }
- function hide() {
- setState(false);
- }
- function handleKeyup(e) {
- // Char Code: 27 ESC
- if (e.which === 27) {
- hide();
- }
- }
- setOptions(options);
- init();
- return {
- show: show,
- hide: hide,
- $el: $root
- };
- }
- $.fn.modal = modal;
- });
-})();
diff --git a/_includes/scripts/lib/scroll-to.js b/_includes/scripts/lib/scroll-to.js
deleted file mode 100644
index e5a0ea2..0000000
--- a/_includes/scripts/lib/scroll-to.js
+++ /dev/null
@@ -1,13 +0,0 @@
-(function() {
- var SOURCES = window.TEXT_VARIABLES.sources;
- window.Lazyload.js(SOURCES.jquery, function() {
- function scrollToAnchor(anchor, duration, callback) {
- var $root = this;
- $root.animate({ scrollTop: $(anchor).position().top }, duration, function() {
- window.history.replaceState(null, '', window.location.href.split('#')[0] + anchor);
- callback && callback();
- });
- }
- $.fn.scrollToAnchor = scrollToAnchor;
- });
-})();
diff --git a/_includes/scripts/lib/swiper.js b/_includes/scripts/lib/swiper.js
deleted file mode 100644
index 3d06419..0000000
--- a/_includes/scripts/lib/swiper.js
+++ /dev/null
@@ -1,203 +0,0 @@
-(function() {
- var SOURCES = window.TEXT_VARIABLES.sources;
- window.Lazyload.js(SOURCES.jquery, function() {
- function swiper(options) {
- var $window = $(window), $root = this, $swiperWrapper, $swiperSlides, $swiperButtonPrev, $swiperButtonNext,
- initialSlide, animation, onChange, onChangeEnd,
- rootWidth, count, preIndex, curIndex, translateX, CRITICAL_ANGLE = Math.PI / 3;
-
- function setOptions(options) {
- var _options = options || {};
- initialSlide = _options.initialSlide || 0;
- animation = _options.animation === undefined && true;
- onChange = onChange || _options.onChange;
- onChangeEnd = onChangeEnd || _options.onChangeEnd;
- }
-
- function init() {
- $swiperWrapper = $root.find('.swiper__wrapper');
- $swiperSlides = $root.find('.swiper__slide');
- $swiperButtonPrev = $root.find('.swiper__button--prev');
- $swiperButtonNext = $root.find('.swiper__button--next');
- animation && $swiperWrapper.addClass('swiper__wrapper--animation');
- calc(true);
- }
-
- function preCalc() {
- rootWidth = $root.width();
- count = $swiperWrapper.children('.swiper__slide').length;
- if (count < 2) {
- $swiperButtonPrev.addClass('d-none');
- $swiperButtonNext.addClass('d-none');
- }
- curIndex = initialSlide || 0;
- translateX = getTranslateXFromCurIndex();
- }
-
- var calc = (function() {
- var preAnimation, $swiperSlide, $preSwiperSlide;
- return function (needPreCalc, params) {
- needPreCalc && preCalc();
- var _animation = (params && params.animation !== undefined) ? params.animation : animation;
- if (preAnimation === undefined || preAnimation !== _animation) {
- preAnimation = _animation ? $swiperWrapper.addClass('swiper__wrapper--animation') :
- $swiperWrapper.removeClass('swiper__wrapper--animation');
- }
- if (preIndex !== curIndex) {
- ($preSwiperSlide = $swiperSlides.eq(preIndex)).removeClass('active');
- ($swiperSlide = $swiperSlides.eq(curIndex)).addClass('active');
- onChange && onChange(curIndex, $swiperSlides.eq(curIndex), $swiperSlide, $preSwiperSlide);
- if (onChangeEnd) {
- if (_animation) {
- setTimeout(function() {
- onChangeEnd(curIndex, $swiperSlides.eq(curIndex), $swiperSlide, $preSwiperSlide);
- }, 400);
- } else {
- onChangeEnd(curIndex, $swiperSlides.eq(curIndex), $swiperSlide, $preSwiperSlide);
- }
- }
- preIndex = curIndex;
- }
- $swiperWrapper.css('transform', 'translate(' + translateX + 'px, 0)');
- if (count > 1) {
- if (curIndex <= 0) {
- $swiperButtonPrev.addClass('disabled');
- } else {
- $swiperButtonPrev.removeClass('disabled');
- }
- if (curIndex >= count - 1) {
- $swiperButtonNext.addClass('disabled');
- } else {
- $swiperButtonNext.removeClass('disabled');
- }
- }
- };
- })();
-
- function getTranslateXFromCurIndex() {
- return curIndex <= 0 ? 0 : - rootWidth * curIndex;
- }
-
- function moveToIndex(index ,params) {
- preIndex = curIndex;
- curIndex = index;
- translateX = getTranslateXFromCurIndex();
- calc(false, params);
- }
-
- function move(type) {
- var nextIndex = curIndex, unstableTranslateX;
- if (type === 'prev') {
- nextIndex > 0 && nextIndex--;
- } else if (type === 'next') {
- nextIndex < count - 1 && nextIndex++;
- }
- if (type === 'cur') {
- moveToIndex(curIndex, { animation: true });
- return;
- }
- unstableTranslateX = translateX % rootWidth !== 0;
- if (nextIndex !== curIndex || unstableTranslateX) {
- unstableTranslateX ? moveToIndex(nextIndex, { animation: true }) : moveToIndex(nextIndex);
- }
- }
-
- setOptions(options);
- init();
- preIndex = curIndex;
-
- $swiperButtonPrev.on('click', function(e) {
- e.stopPropagation();
- move('prev');
- });
- $swiperButtonNext.on('click', function(e) {
- e.stopPropagation();
- move('next');
- });
- $window.on('resize', function() {
- calc(true, { animation: false });
- });
-
- (function() {
- var pageX, pageY, velocityX, preTranslateX = translateX, timeStamp, touching;
- function handleTouchstart(e) {
- var point = e.touches ? e.touches[0] : e;
- pageX = point.pageX;
- pageY = point.pageY;
- velocityX = 0;
- preTranslateX = translateX;
- }
- function handleTouchmove(e) {
- if (e.touches && e.touches.length > 1) {
- return;
- }
- var point = e.touches ? e.touches[0] : e;
- var deltaX = point.pageX - pageX;
- var deltaY = point.pageY - pageY;
- velocityX = deltaX / (e.timeStamp - timeStamp);
- timeStamp = e.timeStamp;
- if (e.cancelable && Math.abs(Math.atan(deltaY / deltaX)) < CRITICAL_ANGLE) {
- touching = true;
- translateX += deltaX;
- calc(false, { animation: false });
- }
- pageX = point.pageX;
- pageY = point.pageY;
- }
- function handleTouchend() {
- touching = false;
- var deltaX = translateX - preTranslateX;
- var distance = deltaX + velocityX * rootWidth;
- if (Math.abs(distance) > rootWidth / 2) {
- distance > 0 ? move('prev') : move('next');
- } else {
- move('cur');
- }
- }
- $swiperWrapper.on('touchstart', handleTouchstart);
- $swiperWrapper.on('touchmove', handleTouchmove);
- $swiperWrapper.on('touchend', handleTouchend);
- $swiperWrapper.on('touchcancel', handleTouchend);
-
- (function() {
- var pressing = false, moved = false;
- $swiperWrapper.on('mousedown', function(e) {
- pressing = true; handleTouchstart(e);
- });
- $swiperWrapper.on('mousemove', function(e) {
- pressing && (e.preventDefault(), moved = true, handleTouchmove(e));
- });
- $swiperWrapper.on('mouseup', function(e) {
- pressing && (pressing = false, handleTouchend(e));
- });
- $swiperWrapper.on('mouseleave', function(e) {
- pressing && (pressing = false, handleTouchend(e));
- });
- $swiperWrapper.on('click', function(e) {
- moved && (e.stopPropagation(), moved = false);
- });
- })();
-
- $root.on('touchmove', function(e) {
- if (e.cancelable & touching) {
- e.preventDefault();
- }
- });
- })();
-
- return {
- setOptions: setOptions,
- previous: function(){
- move('prev');
- },
- next: function(){
- move('next');
- },
- refresh: function() {
- calc(true, { animation: false });
- }
- };
- }
- $.fn.swiper = swiper;
- });
-})();
diff --git a/_includes/scripts/lib/throttle.js b/_includes/scripts/lib/throttle.js
deleted file mode 100644
index 2add23c..0000000
--- a/_includes/scripts/lib/throttle.js
+++ /dev/null
@@ -1,28 +0,0 @@
-(function() {
- window.throttle = function(func, wait) {
- var args, result, thisArg, timeoutId, lastCalled = 0;
-
- function trailingCall() {
- lastCalled = new Date;
- timeoutId = null;
- result = func.apply(thisArg, args);
- }
- return function() {
- var now = new Date,
- remaining = wait - (now - lastCalled);
-
- args = arguments;
- thisArg = this;
-
- if (remaining <= 0) {
- clearTimeout(timeoutId);
- timeoutId = null;
- lastCalled = now;
- result = func.apply(thisArg, args);
- } else if (!timeoutId) {
- timeoutId = setTimeout(trailingCall, remaining);
- }
- return result;
- };
- };
-})();
diff --git a/_includes/scripts/lib/toc.js b/_includes/scripts/lib/toc.js
deleted file mode 100644
index fb43857..0000000
--- a/_includes/scripts/lib/toc.js
+++ /dev/null
@@ -1,107 +0,0 @@
-(function() {
- var SOURCES = window.TEXT_VARIABLES.sources;
- window.Lazyload.js(SOURCES.jquery, function() {
- function toc(options) {
- var $root = this, $window = $(window), $scrollTarget, $scroller, $tocUl = $('<ul class="toc toc--ellipsis"></ul>'), $tocLi, $headings, $activeLast, $activeCur,
- selectors = 'h1,h2,h3', container = 'body', scrollTarget = window, scroller = 'html, body', disabled = false,
- headingsPos, scrolling = false, hasRendered = false, hasInit = false;
-
- function setOptions(options) {
- var _options = options || {};
- _options.selectors && (selectors = _options.selectors);
- _options.container && (container = _options.container);
- _options.scrollTarget && (scrollTarget = _options.scrollTarget);
- _options.scroller && (scroller = _options.scroller);
- _options.disabled !== undefined && (disabled = _options.disabled);
- $headings = $(container).find(selectors).filter('[id]');
- $scrollTarget = $(scrollTarget);
- $scroller = $(scroller);
- }
- function calc() {
- headingsPos = [];
- $headings.each(function() {
- headingsPos.push(Math.floor($(this).position().top));
- });
- }
- function setState(element, disabled) {
- var scrollTop = $scrollTarget.scrollTop(), i;
- if (disabled || !headingsPos || headingsPos.length < 1) { return; }
- if (element) {
- $activeCur = element;
- } else {
- for (i = 0; i < headingsPos.length; i++) {
- if (scrollTop >= headingsPos[i]) {
- $activeCur = $tocLi.eq(i);
- } else {
- $activeCur || ($activeCur = $tocLi.eq(i));
- break;
- }
- }
- }
- $activeLast && $activeLast.removeClass('active');
- ($activeLast = $activeCur).addClass('active');
- }
- function render() {
- if(!hasRendered) {
- $root.append($tocUl);
- $headings.each(function() {
- var $this = $(this);
- $tocUl.append($('<li></li>').addClass('toc-' + $this.prop('tagName').toLowerCase())
- .append($('<a></a>').text($this.text()).attr('href', '#' + $this.prop('id'))));
- });
- $tocLi = $tocUl.children('li');
- $tocUl.on('click', 'a', function(e) {
- e.preventDefault();
- var $this = $(this);
- scrolling = true;
- setState($this.parent());
- $scroller.scrollToAnchor($this.attr('href'), 400, function() {
- scrolling = false;
- });
- });
- }
- hasRendered = true;
- }
- function init() {
- var interval, timeout;
- if(!hasInit) {
- render(); calc(); setState(null, scrolling);
- // run calc every 100 millisecond
- interval = setInterval(function() {
- calc();
- }, 100);
- timeout = setTimeout(function() {
- clearInterval(interval);
- }, 45000);
- window.pageLoad.then(function() {
- setTimeout(function() {
- clearInterval(interval);
- clearTimeout(timeout);
- }, 3000);
- });
- $scrollTarget.on('scroll', function() {
- disabled || setState(null, scrolling);
- });
- $window.on('resize', window.throttle(function() {
- if (!disabled) {
- render(); calc(); setState(null, scrolling);
- }
- }, 100));
- }
- hasInit = true;
- }
-
- setOptions(options);
- if (!disabled) {
- init();
- }
- $window.on('resize', window.throttle(function() {
- init();
- }, 200));
- return {
- setOptions: setOptions
- };
- }
- $.fn.toc = toc;
- });
-})();
diff --git a/_includes/scripts/page.js b/_includes/scripts/page.js
deleted file mode 100644
index 91d05b9..0000000
--- a/_includes/scripts/page.js
+++ /dev/null
@@ -1,3 +0,0 @@
-/*(function () {
-
-})();*/
diff --git a/_includes/scripts/utils/imagesLoad.js b/_includes/scripts/utils/imagesLoad.js
deleted file mode 100644
index 63a6bdf..0000000
--- a/_includes/scripts/utils/imagesLoad.js
+++ /dev/null
@@ -1,28 +0,0 @@
-(function() {
- window.imagesLoad = function(images) {
- images = images || document.getElementsByTagName('img');
- var imagesCount = images.length, loadedCount = 0, image;
- var i, j, loaded = false, cbs = [];
- imagesCount < 1 && (loaded = true);
- for (i = 0; i < imagesCount; i++) {
- image = images[i];
- image.complete ? handleImageLoad() : image.addEventListener('load', handleImageLoad);
- }
- function handleImageLoad() {
- loadedCount++;
- if (loadedCount === imagesCount) {
- loaded = true;
- if (cbs.length > 0) {
- for (j = 0; j < cbs.length; j++) {
- cbs[j]();
- }
- }
- }
- }
- return {
- then: function(cb) {
- cb && (loaded ? cb() : (cbs.push(cb)));
- }
- };
- };
-})();
diff --git a/_includes/scripts/utils/utils.js b/_includes/scripts/utils/utils.js
deleted file mode 100644
index e7bce45..0000000
--- a/_includes/scripts/utils/utils.js
+++ /dev/null
@@ -1,39 +0,0 @@
-(function() {
- window.isArray = function(val) {
- return Object.prototype.toString.call(val) === '[object Array]';
- };
- window.isString = function(val) {
- return typeof val === 'string';
- };
-
- window.hasEvent = function(event) {
- return 'on'.concat(event) in window.document;
- };
-
- window.isOverallScroller = function(node) {
- return node === document.documentElement || node === document.body || node === window;
- };
-
- window.isFormElement = function(node) {
- var tagName = node.tagName;
- return tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA';
- };
-
- window.pageLoad = (function () {
- var loaded = false, cbs = [];
- window.addEventListener('load', function () {
- var i;
- loaded = true;
- if (cbs.length > 0) {
- for (i = 0; i < cbs.length; i++) {
- cbs[i]();
- }
- }
- });
- return {
- then: function(cb) {
- cb && (loaded ? cb() : (cbs.push(cb)));
- }
- };
- })();
-})();
diff --git a/_includes/scripts/variables.html b/_includes/scripts/variables.html
deleted file mode 100644
index 5bd1770..0000000
--- a/_includes/scripts/variables.html
+++ /dev/null
@@ -1,35 +0,0 @@
-{%- include snippets/get-sources.html -%}
-{%- assign _sources = __return -%}
-
-{%- include snippets/get-nav-url.html path="/assets/search.js" -%}
-{%- assign _paths_search_js = __return -%}
-
-<script>
- (function() {
- var TEXT_VARIABLES = {
- version: '2.2.6',
- sources: {
- font_awesome: '{{ _sources.font_awesome }}',
- jquery: '{{ _sources.jquery }}',
- leancloud_js_sdk: '{{ _sources.leancloud_js_sdk }}',
- chart: '{{ _sources.chart }}',
- gitalk: {
- js: '{{ _sources.gitalk.js }}',
- css: '{{ _sources.gitalk.css }}'
- },
- valine: '{{ _sources.valine }}',
- mathjax: '{{ _sources.mathjax }}',
- mermaid: '{{ _sources.mermaid }}'
- },
- site: {
- toc: {
- selectors: '{{ site.toc.selectors | default: site.data.variables.default.toc.selectors }}'
- }
- },
- paths: {
- search_js: '{{ _paths_search_js }}'
- }
- };
- window.TEXT_VARIABLES = TEXT_VARIABLES;
- })();
-</script>
diff --git a/_includes/search-providers/custom/search.html b/_includes/search-providers/custom/search.html
deleted file mode 100644
index 1d7eba3..0000000
--- a/_includes/search-providers/custom/search.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom search snippet -->
-
-<!-- end custom search snippet -->
diff --git a/_includes/search-providers/default/search-data.js b/_includes/search-providers/default/search-data.js
deleted file mode 100644
index f20e0c5..0000000
--- a/_includes/search-providers/default/search-data.js
+++ /dev/null
@@ -1,14 +0,0 @@
-window.TEXT_SEARCH_DATA={
- {%- for _collection in site.collections -%}
- {%- unless forloop.first -%},{%- endunless -%}
- '{{ _collection.label }}':[
- {%- for _article in _collection.docs -%}
- {%- unless forloop.first -%},{%- endunless -%}
- {'title':{{ _article.title | jsonify }},
- {%- include snippets/prepend-baseurl.html path=_article.url -%}
- {%- assign _url = __return -%}
- 'url':{{ _url | jsonify }}}
- {%- endfor -%}
- ]
- {%- endfor -%}
-};
diff --git a/_includes/search-providers/default/search.html b/_includes/search-providers/default/search.html
deleted file mode 100644
index a21512c..0000000
--- a/_includes/search-providers/default/search.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<div class="search search--dark">
- <div class="main">
- <div class="search__header">{{ _locale_search }}</div>
- <div class="search-bar">
- <div class="search-box js-search-box">
- <div class="search-box__icon-search"><i class="fas fa-search"></i></div>
- <input type="text" />
- <div class="search-box__icon-clear js-icon-clear">
- <a><i class="fas fa-times"></i></a>
- </div>
- </div>
- <button class="button button--theme-dark button--pill search__cancel js-search-toggle">
- {{ _locale_cancel }}</button>
- </div>
- <div class="search-result js-search-result"></div>
- </div>
-</div>
-<script>{%- include search-providers/default/search.js -%}</script>
diff --git a/_includes/search-providers/default/search.js b/_includes/search-providers/default/search.js
deleted file mode 100644
index bf69c28..0000000
--- a/_includes/search-providers/default/search.js
+++ /dev/null
@@ -1,112 +0,0 @@
-var SOURCES = window.TEXT_VARIABLES.sources;
-var PAHTS = window.TEXT_VARIABLES.paths;
-window.Lazyload.js([SOURCES.jquery, PAHTS.search_js], function() {
- var search = (window.search || (window.search = {}));
- var searchData = window.TEXT_SEARCH_DATA || {};
-
- function memorize(f) {
- var cache = {};
- return function () {
- var key = Array.prototype.join.call(arguments, ',');
- if (key in cache) return cache[key];
- else return cache[key] = f.apply(this, arguments);
- };
- }
-
- /// search
- function searchByQuery(query) {
- var i, j, key, keys, cur, _title, result = {};
- keys = Object.keys(searchData);
- for (i = 0; i < keys.length; i++) {
- key = keys[i];
- for (j = 0; j < searchData[key].length; j++) {
- cur = searchData[key][j], _title = cur.title;
- if ((result[key] === undefined || result[key] && result[key].length < 4 )
- && _title.toLowerCase().indexOf(query.toLowerCase()) >= 0) {
- if (result[key] === undefined) {
- result[key] = [];
- }
- result[key].push(cur);
- }
- }
- }
- return result;
- }
-
- var renderHeader = memorize(function(header) {
- return $('<p class="search-result__header">' + header + '</p>');
- });
-
- var renderItem = function(index, title, url) {
- return $('<li class="search-result__item" data-index="' + index + '"><a class="button" href="' + url + '">' + title + '</a></li>');
- };
-
- function render(data) {
- if (!data) { return null; }
- var $root = $('<ul></ul>'), i, j, key, keys, cur, itemIndex = 0;
- keys = Object.keys(data);
- for (i = 0; i < keys.length; i++) {
- key = keys[i];
- $root.append(renderHeader(key));
- for (j = 0; j < data[key].length; j++) {
- cur = data[key][j];
- $root.append(renderItem(itemIndex++, cur.title, cur.url));
- }
- }
- return $root;
- }
-
- // search box
- var $result = $('.js-search-result'), $resultItems;
- var lastActiveIndex, activeIndex;
-
- function clear() {
- $result.html(null);
- $resultItems = $('.search-result__item'); activeIndex = 0;
- }
- function onInputNotEmpty(val) {
- $result.html(render(searchByQuery(val)));
- $resultItems = $('.search-result__item'); activeIndex = 0;
- $resultItems.eq(0).addClass('active');
- }
-
- search.clear = clear;
- search.onInputNotEmpty = onInputNotEmpty;
-
- function updateResultItems() {
- lastActiveIndex >= 0 && $resultItems.eq(lastActiveIndex).removeClass('active');
- activeIndex >= 0 && $resultItems.eq(activeIndex).addClass('active');
- }
-
- function moveActiveIndex(direction) {
- var itemsCount = $resultItems ? $resultItems.length : 0;
- if (itemsCount > 1) {
- lastActiveIndex = activeIndex;
- if (direction === 'up') {
- activeIndex = (activeIndex - 1 + itemsCount) % itemsCount;
- } else if (direction === 'down') {
- activeIndex = (activeIndex + 1 + itemsCount) % itemsCount;
- }
- updateResultItems();
- }
- }
-
- // Char Code: 13 Enter, 37 ⬅, 38 ⬆, 39 ➡, 40 ⬇
- $(window).on('keyup', function(e) {
- var modalVisible = search.getModalVisible && search.getModalVisible();
- if (modalVisible) {
- if (e.which === 38) {
- modalVisible && moveActiveIndex('up');
- } else if (e.which === 40) {
- modalVisible && moveActiveIndex('down');
- } else if (e.which === 13) {
- modalVisible && $resultItems && activeIndex >= 0 && $resultItems.eq(activeIndex).children('a')[0].click();
- }
- }
- });
-
- $result.on('mouseover', '.search-result__item > a', function() {
- var itemIndex = $(this).parent().data('index');
- itemIndex >= 0 && (lastActiveIndex = activeIndex, activeIndex = itemIndex, updateResultItems());
- });
-});
diff --git a/_includes/search-providers/google-custom-search-engine/search.html b/_includes/search-providers/google-custom-search-engine/search.html
deleted file mode 100644
index cf132ab..0000000
--- a/_includes/search-providers/google-custom-search-engine/search.html
+++ /dev/null
@@ -1,21 +0,0 @@
-{%- if site.search.google.custom_search_engine_id -%}
- <div class="search search--dark search--google-custom-search-engine">
- <div class="main">
- <div class="content js-gcse">
- <!-- <gcse:search enableAutoComplete="true" gname="search-box"></gcse:search>
- <gcse:searchresults-only gname="results"></gcse:searchresults-only> -->
- </div>
- </div>
- </div>
- <script>
- var gcse = document.getElementsByClassName('js-gcse')[0];
- var gcseSearch = document.createElement('gcse:search');
- gcseSearch.setAttribute('enableAutoComplete', 'true');
- gcseSearch.setAttribute('gname', 'search-box');
- var gcseSearchresults = document.createElement('gcse:searchresults-only');
- gcseSearchresults.setAttribute('gname', 'results');
- gcse.appendChild(gcseSearch);
- gcse.appendChild(gcseSearchresults);
- </script>
- <script>{%- include search-providers/google-custom-search-engine/search.js -%}</script>
-{%- endif -%}
diff --git a/_includes/search-providers/google-custom-search-engine/search.js b/_includes/search-providers/google-custom-search-engine/search.js
deleted file mode 100644
index 09e5273..0000000
--- a/_includes/search-providers/google-custom-search-engine/search.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var SOURCES = window.TEXT_VARIABLES.sources;
-window.Lazyload.js(SOURCES.jquery, function() {
- /* global google */
- var search = (window.search || (window.search = {}));
- var searchBox, searchInput, clearIcon, searchModal;
-
- search.clear = function() {
- searchBox && searchBox.clearAllResults();
- };
- search.onShow = function() {
- searchInput && searchInput.focus();
- };
- search.onHide = function() {
- searchInput && searchInput.blur();
- };
-
- window.__gcse = {
- callback: function() {
- searchBox = google.search.cse.element.getElement('search-box');
- searchInput = document.getElementById('gsc-i-id1');
- clearIcon = document.getElementById('gs_cb50');
- searchModal = search.searchModal;
- searchModal && searchModal.$el && searchModal.$el.on('click', function(e) {
- (e.target === this || e.target === clearIcon || e.target.className === 'gs-title') && searchModal.hide();
- });
- }
- };
- var cx = '{{ site.search.google.custom_search_engine_id }}'; // Insert your own Custom Search Engine ID here
- var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
- gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
- '//cse.google.com/cse.js?cx=' + cx;
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
-});
diff --git a/_includes/search.html b/_includes/search.html
deleted file mode 100644
index 680dd35..0000000
--- a/_includes/search.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{%- include snippets/get-locale-string.html key='CANCEL' -%}
-{%- assign _locale_cancel = __return -%}
-{%- include snippets/get-locale-string.html key='SEARCH' -%}
-{%- assign _locale_search = __return -%}
-
-{%- if site.search.provider == 'google' -%}
- <script>window.useDefaultSearchBox = false;</script>
-{%- endif -%}
-
-{%- if site.search.provider -%}
- <script>{%- include scripts/components/search.js -%}</script>
-{%- endif -%}
-
-{%- if site.search.provider == 'default' -%}
- {%- include search-providers/default/search.html -%}
-{%- elsif site.search.provider == 'google' -%}
- {%- include search-providers/google-custom-search-engine/search.html -%}
-{%- elsif site.search.provider == 'custom' -%}
- {%- include search-providers/custom/search.html -%}
-{%- endif -%}
diff --git a/_includes/sharing-providers/addthis.html b/_includes/sharing-providers/addthis.html
deleted file mode 100644
index f2364d3..0000000
--- a/_includes/sharing-providers/addthis.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<!-- Addthis BEGIN -->
-{%- assign _SHARING_ADDTHIS_ID = site.sharing.addthis.id -%}
-
-{%- if _SHARING_ADDTHIS_ID -%}
- <script type="text/javascript"
- src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ _SHARING_ADDTHIS_ID }}"></script>
- <div class="addthis_inline_share_toolbox addthis_default_style"></div>
-{%- endif -%}
-<!-- Addthis END -->
diff --git a/_includes/sharing-providers/addtoany.html b/_includes/sharing-providers/addtoany.html
deleted file mode 100644
index a433a1b..0000000
--- a/_includes/sharing-providers/addtoany.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<!-- AddToAny BEGIN -->
-<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
-<a class="a2a_dd" href="https://www.addtoany.com/share"></a>
-<a class="a2a_button_facebook"></a>
-<a class="a2a_button_twitter"></a>
-<a class="a2a_button_google_plus"></a>
-<a class="a2a_button_linkedin"></a>
-</div>
-<script async src="https://static.addtoany.com/menu/page.js"></script>
-<!-- AddToAny END -->
diff --git a/_includes/sharing-providers/custom.html b/_includes/sharing-providers/custom.html
deleted file mode 100644
index d2b17d2..0000000
--- a/_includes/sharing-providers/custom.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom sharing snippet -->
-
-<!-- end custom sharing snippet -->
diff --git a/_includes/sharing.html b/_includes/sharing.html
deleted file mode 100644
index f585346..0000000
--- a/_includes/sharing.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{%- if site.sharing.provider == 'addtoany' -%}
- {%- include sharing-providers/addtoany.html -%}
-{%- elsif site.sharing.provider == 'addthis' -%}
- {%- include sharing-providers/addthis.html -%}
- {%- elsif site.sharing.provider == 'custom' -%}
- {%- include sharing-providers/custom.html -%}
-{%- endif -%}
diff --git a/_includes/sidebar/toc.html b/_includes/sidebar/toc.html
deleted file mode 100644
index 4e3469e..0000000
--- a/_includes/sidebar/toc.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{%- if page.sidebar.nav -%}
- <div class="sidebar-toc">
- {%- assign _sidebar_nav = site.data.navigation[page.sidebar.nav] -%}
- {%- if _sidebar_nav -%}
- <ul class="toc toc--navigator">
- {%- for _item in _sidebar_nav -%}
- <li class="toc-h1">{{ _item.title }}</li>
- {%- if _item.children -%}
- {%- for _child in _item.children -%}
- {%- include snippets/get-nav-url.html path=_child.url -%}
- {%- assign _nav_url = __return -%}
- {%- include snippets/get-nav-url.html path=page.url -%}
- {%- assign _page_url = __return -%}
- {%- if _nav_url == _page_url -%}
- <li class="toc-h2 active"><a href="{{ _nav_url }}">{{ _child.title }}</a></li>
- {%- else -%}
- <li class="toc-h2"><a href="{{ _nav_url }}">{{ _child.title }}</a></li>
- {%- endif -%}
- {%- endfor -%}
- {%- endif -%}
- {%- endfor -%}
- </ul>
- {%- endif -%}
- </div>
-{%- endif -%} \ No newline at end of file
diff --git a/_includes/snippets/assign.html b/_includes/snippets/assign.html
deleted file mode 100644
index c2691f5..0000000
--- a/_includes/snippets/assign.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{%- if include.source1 == nil -%}
- {%- if include.source0 == nil -%}
- {%- assign __return = include.target -%}
- {%- else -%}
- {%- assign __return = include.source0 -%}
- {%- endif -%}
-{%- else -%}
- {%- assign __return = include.source1 -%}
-{%- endif -%}
diff --git a/_includes/snippets/get-article-title.html b/_includes/snippets/get-article-title.html
deleted file mode 100644
index 395b793..0000000
--- a/_includes/snippets/get-article-title.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{%- assign _title = include.article.title | default: layout.title -%}
-{%- assign _titles = include.article.titles | default: layout.titles -%}
-
-{%- if _title -%}
- {%- assign __return = _title -%}
-{%- elsif _titles -%}
- {%- include snippets/get-string-from-locale-config.html locale=_titles -%}
- {%- assign __return = __return -%}
-{%- else -%}
- {%- assign __return = nil -%}
-{%- endif -%}
diff --git a/_includes/snippets/get-lang.html b/_includes/snippets/get-lang.html
deleted file mode 100644
index 028c52a..0000000
--- a/_includes/snippets/get-lang.html
+++ /dev/null
@@ -1,6 +0,0 @@
-{%- assign __return = site.data.variables.default.lang -%}
-{%- if page.lang -%}
- {%- assign __return = page.lang -%}
-{%- elsif site.lang -%}
- {%- assign __return = site.lang -%}
-{%- endif -%}
diff --git a/_includes/snippets/get-locale-string.html b/_includes/snippets/get-locale-string.html
deleted file mode 100644
index a7069ae..0000000
--- a/_includes/snippets/get-locale-string.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{%- include snippets/get-lang.html -%}
-{%- assign _lang = __return -%}
-{%- assign _local_lang = site.data.locale[_lang] -%}
-{%- assign _local_lang_en = site.data.locale.en -%}
-{%- if _local_lang == nil -%}
- {%- assign _local_lang = _local_lang_en -%}
-{%- endif -%}
-{%- if _local_lang[include.key] -%}
- {%- assign __return = _local_lang[include.key] -%}
-{%- else -%}
- {%- assign __return = _local_lang_en[include.key] -%}
-{%- endif -%}
diff --git a/_includes/snippets/get-nav-url.html b/_includes/snippets/get-nav-url.html
deleted file mode 100644
index 3b1b122..0000000
--- a/_includes/snippets/get-nav-url.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{%- assign _pre7 = include.path | slice: 0, 7 -%}
-{%- assign _pre8 = include.path | slice: 0, 8 -%}
-{%- if _pre7 == 'http://' or _pre8 == 'https://' -%}
- {%- assign __return = include.path -%}
-{%- else -%}
- {%- include snippets/prepend-baseurl.html path=include.path -%}
- {%- assign __return = __return -%}
-{%- endif -%}
diff --git a/_includes/snippets/get-sources.html b/_includes/snippets/get-sources.html
deleted file mode 100644
index 0de1cb5..0000000
--- a/_includes/snippets/get-sources.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{%- assign _sources = site.sources | default: site.data.variables.default.sources -%}
-{%- assign __return = site.data.variables.sources[_sources] -%}
diff --git a/_includes/snippets/get-string-from-locale-config.html b/_includes/snippets/get-string-from-locale-config.html
deleted file mode 100644
index 03325fa..0000000
--- a/_includes/snippets/get-string-from-locale-config.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{%- include snippets/get-lang.html -%}
-{%- assign _lang = __return -%}
-{%- if include.locale[_lang] -%}
- {%- assign __return = include.locale[_lang] -%}
-{%- else -%}
- {%- assign __return = include.locale.en -%}
-{%- endif -%}
diff --git a/_includes/snippets/is_collection.html b/_includes/snippets/is_collection.html
deleted file mode 100644
index 559a624..0000000
--- a/_includes/snippets/is_collection.html
+++ /dev/null
@@ -1,6 +0,0 @@
-{%- assign _page_path_first_char = include.page.path | slice: 0, 1 -%}
-{%- if _page_path_first_char == '_' -%}
- {%- assign __return = true -%}
-{%- else -%}
- {%- assign __return = false -%}
-{%- endif -%}
diff --git a/_includes/snippets/page-url.html b/_includes/snippets/page-url.html
deleted file mode 100644
index 3e9815d..0000000
--- a/_includes/snippets/page-url.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{%- include snippets/prepend-baseurl.html path=page.url -%}
-{{ __return | prepend: site.url }} \ No newline at end of file
diff --git a/_includes/snippets/prepend-baseurl.html b/_includes/snippets/prepend-baseurl.html
deleted file mode 100644
index d5d24ef..0000000
--- a/_includes/snippets/prepend-baseurl.html
+++ /dev/null
@@ -1,4 +0,0 @@
-{%- assign _include_path_replace_index = include.path | replace: 'index.html', '' -%}
-{%- include snippets/prepend-path.html
- path=_include_path_replace_index
- prepend_path=site.baseurl -%} \ No newline at end of file
diff --git a/_includes/snippets/prepend-path.html b/_includes/snippets/prepend-path.html
deleted file mode 100644
index 5f6e904..0000000
--- a/_includes/snippets/prepend-path.html
+++ /dev/null
@@ -1 +0,0 @@
-{%- assign __return = include.path | prepend: '/' | prepend: include.prepend_path | replace:'///','/' | replace:'//','/' -%}
diff --git a/_includes/svg/icon/social/behance.svg b/_includes/svg/icon/social/behance.svg
deleted file mode 100644
index bba499c..0000000
--- a/_includes/svg/icon/social/behance.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M1056.000001 193.714286l-292 0 0 70.857143 292 0 0-70.857143zm-144 243.428571q-51.428571 0-83.428571 30t-35.428571 81.428571l233.142857 0q-10.285714-111.428571-114.285714-111.428571zm9.142857 334.285714q36 0 69.714286-18.285714t43.428571-49.714286l126.285714 0q-57.142857 175.428571-244 175.428571-122.285714 0-194.571429-75.428571t-72.285714-198.285714q0-118.857143 74.571429-197.428571t192.285714-78.571429q78.857143 0 137.428571 38.857143t87.428571 102.285714 28.857143 141.714286q0 9.714286-1.142857 26.857143l-376 0q0 63.428571 32.857143 98t95.142857 34.571429zm-762.857143-28.571429l169.142857 0q117.142857 0 117.142857-95.428571 0-102.857143-113.714286-102.857143l-172.571429 0 0 198.285714zm0-306.857143l160.571429 0q44.571429 0 70.571429-20.857143t26-64.857143q0-82.285714-108.571429-82.285714l-148.571429 0 0 168zm-158.285714-290.857143l339.428571 0q49.714286 0 88.571429 8t72.285714 27.142857 51.428571 55.142857 18 88q0 103.428571-98.285714 150.285714 65.142857 18.285714 98.285714 65.714286t33.142857 116.571429q0 42.857143-14 78t-37.714286 59.142857-56.285714 40.571429-69.142857 24-76.571429 7.428571l-349.142857 0 0-720z" />
-</svg>
diff --git a/_includes/svg/icon/social/douban.svg b/_includes/svg/icon/social/douban.svg
deleted file mode 100644
index 42a07d5..0000000
--- a/_includes/svg/icon/social/douban.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M161.431 147.172l699.701 0 0 78.813-699.701 0 0-78.814z" />
- <path d="M800.298 616.311l0-308.108-578.031 0 0 308.108 578.031 0zM306.076 386.961l411.23 0 0 150.633-411.23 0 0-150.633z" />
- <path d="M675.281 793.89c25.15-38.487 48.885-83.129 70.879-133.81l-84.107-30.649c-21.885 60.046-47.337 114.974-76.324 164.459l-146.332 0c-24.225-64.156-51.607-119.031-82.313-164.459l-77.357 30.649c31.9 47.851 57.651 92.383 77.357 133.81l-215.414 0 0 77.957 739.278 0 0-77.957-205.67 0z" />
-</svg>
diff --git a/_includes/svg/icon/social/facebook.svg b/_includes/svg/icon/social/facebook.svg
deleted file mode 100644
index ba901bd..0000000
--- a/_includes/svg/icon/social/facebook.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M767.428571 6.857143l0 150.857143-89.714286 0q-49.142857 0-66.285714 20.571429t-17.142857 61.714286l0 108 167.428571 0-22.285714 169.142857-145.142857 0 0 433.714286-174.857143 0 0-433.714286-145.714286 0 0-169.142857 145.714286 0 0-124.571429q0-106.285714 59.428571-164.857143t158.285714-58.571429q84 0 130.285714 6.857143z" />
-</svg>
diff --git a/_includes/svg/icon/social/flicker.svg b/_includes/svg/icon/social/flicker.svg
deleted file mode 100644
index eaacc73..0000000
--- a/_includes/svg/icon/social/flicker.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M512 996.693333C245.76 996.693333 27.306667 778.24 27.306667 512 27.306667 245.76 245.76 27.306667 512 27.306667c266.24 0 484.693333 218.453333 484.693333 484.693333C996.693333 778.24 778.24 996.693333 512 996.693333zM512 78.506667C273.066667 78.506667 78.506667 273.066667 78.506667 512S273.066667 945.493333 512 945.493333 945.493333 750.933333 945.493333 512 750.933333 78.506667 512 78.506667z" />
- <path d="M655.36 512m-129.706667 0a3.8 3.8 0 1 0 259.413333 0 3.8 3.8 0 1 0-259.413333 0Z" />
- <path d="M368.64 512m-129.706667 0a3.8 3.8 0 1 0 259.413333 0 3.8 3.8 0 1 0-259.413333 0Z" />
-</svg>
diff --git a/_includes/svg/icon/social/github.svg b/_includes/svg/icon/social/github.svg
deleted file mode 100644
index c5439a9..0000000
--- a/_includes/svg/icon/social/github.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path class="svgpath" data-index="path_0" fill="#272636" d="M0 525.2c0 223.6 143.3 413.7 343 483.5 26.9 6.8 22.8-12.4 22.8-25.4l0-88.7c-155.3 18.2-161.5-84.6-172-101.7-21.1-36-70.8-45.2-56-62.3 35.4-18.2 71.4 4.6 113.1 66.3 30.2 44.7 89.1 37.2 119 29.7 6.5-26.9 20.5-50.9 39.7-69.6C248.8 728.2 181.7 630 181.7 513.2c0-56.6 18.7-108.7 55.3-150.7-23.3-69.3 2.2-128.5 5.6-137.3 66.5-6 135.5 47.6 140.9 51.8 37.8-10.2 80.9-15.6 129.1-15.6 48.5 0 91.8 5.6 129.8 15.9 12.9-9.8 77-55.8 138.8-50.2 3.3 8.8 28.2 66.7 6.3 135 37.1 42.1 56 94.6 56 151.4 0 117-67.5 215.3-228.8 243.7 26.9 26.6 43.6 63.4 43.6 104.2l0 128.8c0.9 10.3 0 20.5 17.2 20.5C878.1 942.4 1024 750.9 1024 525.3c0-282.9-229.3-512-512-512C229.1 13.2 0 242.3 0 525.2L0 525.2z" />
-</svg>
diff --git a/_includes/svg/icon/social/googleplus.svg b/_includes/svg/icon/social/googleplus.svg
deleted file mode 100644
index 69ab1e5..0000000
--- a/_includes/svg/icon/social/googleplus.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M621.31315 72.459289l-228.995461 0c-60.030212 0-135.601374 8.695033-198.98189 59.797921-47.839565 40.21184-71.180156 95.678106-71.180156 145.682987 0 84.786035 66.730821 170.671101 184.5369 170.671101 11.150968 0 23.341614-1.098008 35.619242-2.167363-5.574972 13.028735-11.122315 23.89113-11.122315 42.407855 0 33.68417 17.73799 54.338582 33.308617 73.894987-50.004881 3.264347-143.401014 8.695033-212.32785 50.005904-65.60416 38.046524-85.59547 93.483114-85.59547 132.624577 0 80.453357 77.794807 155.476027 239.019769 155.476027 191.20988 0 292.377-103.274108 292.377-205.451232 0-75.021647-44.402279-111.99984-93.367481-152.21168l-40.037878-30.447453c-12.219299-9.764388-28.887934-22.821775-28.887934-46.741557 0-23.890107 16.668635-39.142485 31.141254-53.269227 46.654576-35.879162 93.366458-73.925686 93.366458-154.37802 0-82.619696-53.357232-126.096906-78.951143-146.751319l68.926836 0L621.31315 72.459289zM523.497357 737.809909c0 67.367317-56.678884 117.373221-163.419953 117.373221-118.961392 0-195.687868-55.43659-195.687868-132.626623 0-77.18901 71.180156-103.274108 95.619778-111.969141 46.683229-15.223726 106.74107-17.419741 116.765377-17.419741 11.092639 0 16.638959 0 25.536606 1.098008C486.838436 652.994198 523.497357 682.316014 523.497357 737.809909zM434.608887 387.745045c-17.822924 17.36039-47.895847 30.447453-75.658144 30.447453-95.591125 0-138.980331-120.694873-138.980331-193.521528 0-28.281113 5.547343-57.631582 24.496927-80.453357 17.795295-21.75242 48.879244-35.879162 77.794807-35.879162 92.298126 0 140.078339 121.763205 140.078339 200.021569C462.341508 327.916425 460.116841 362.727255 434.608887 387.745045zM842.798567 238.016929 842.798567 127.57763l-55.464219 0 0 110.439298L676.402839 238.016929l0 55.234999 110.930485 0 0 110.438275 55.464219 0L842.797543 293.251927l110.929462 0 0-55.234999L842.798567 238.016929z" />
-</svg>
diff --git a/_includes/svg/icon/social/linkedin.svg b/_includes/svg/icon/social/linkedin.svg
deleted file mode 100644
index 3c26dbc..0000000
--- a/_includes/svg/icon/social/linkedin.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M260.096 155.648c0 27.307008-9.899008 50.516992-29.696 69.632-19.796992 19.115008-45.396992 28.672-76.8 28.672-30.036992 0-54.612992-9.556992-73.728-28.672-19.115008-19.115008-28.672-42.324992-28.672-69.632 0-28.672 9.556992-52.224 28.672-70.656 19.115008-18.432 44.372992-27.648 75.776-27.648 31.403008 0 56.32 9.216 74.752 27.648 18.432 18.432 28.331008 41.984 29.696 70.656 0 0 0 0 0 0m-202.752 808.96c0 0 0-632.832 0-632.832 0 0 196.608 0 196.608 0 0 0 0 632.832 0 632.832 0 0-196.608 0-196.608 0 0 0 0 0 0 0m313.344-430.08c0-58.708992-1.364992-126.292992-4.096-202.752 0 0 169.984 0 169.984 0 0 0 10.24 88.064 10.24 88.064 0 0 4.096 0 4.096 0 40.96-68.267008 105.812992-102.4 194.56-102.4 68.267008 0 123.220992 22.868992 164.864 68.608 41.643008 45.739008 62.464 113.664 62.464 203.776 0 0 0 374.784 0 374.784 0 0-196.608 0-196.608 0 0 0 0-350.208 0-350.208 0-91.476992-33.451008-137.216-100.352-137.216-47.787008 0-81.236992 24.576-100.352 73.728-4.096 8.192-6.144 24.576-6.144 49.152 0 0 0 364.544 0 364.544 0 0-198.656 0-198.656 0 0 0 0-430.08 0-430.08 0 0 0 0 0 0" />
-</svg>
diff --git a/_includes/svg/icon/social/mail.svg b/_includes/svg/icon/social/mail.svg
deleted file mode 100644
index a0d0751..0000000
--- a/_includes/svg/icon/social/mail.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M512.091 166.946c116.242 0 232.484-0.014 348.727 0.007 41.522 0.008 76.321 12.188 94.842 53.167 8.25 18.251 6.5 30.831-13.43 43.256-137.452 85.695-274.125 172.655-410.534 260.014-14.762 9.456-24.638 9.569-39.498 0.041C354.353 435.041 216.033 347.399 77.465 260.14c-12.701-8.002-16.368-15.572-12.01-29.962 9.882-32.627 30.845-52.873 63.868-59.66 13.656-2.806 27.953-3.4 41.966-3.431C284.888 166.83 398.492 166.943 512.091 166.946z" />
- <path d="M510.888 856.021c-117.998 0-235.996 0.134-353.993-0.067-47.671-0.083-79.295-22.331-91.17-61.206-4.28-14.027-2.127-22.232 10.858-30.356 108.193-67.725 215.807-136.366 324.233-203.713 7.275-4.519 21.51-4.25 29.378-0.171 22.589 11.713 44.026 25.859 64.999 40.383 11.823 8.191 21.091 8.623 33.117 0.325 20.993-14.484 43.689-26.52 64.549-41.176 12.159-8.539 20.73-7.176 32.785 0.537 106.04 67.844 212.318 135.315 319.158 201.894 16.481 10.272 18.065 21.564 12.577 37.407-12.35 35.666-45.183 55.999-92.491 56.081C746.889 856.149 628.886 856.021 510.888 856.021z" />
- <path d="M64.376 326.925c97.051 61.769 192.332 122.409 290.508 184.898-97.877 62.309-192.719 122.68-290.508 184.932C64.376 572.674 64.376 451.511 64.376 326.925z" />
- <path d="M959.665 327.168c0 124.369 0 244.164 0 369.253-97.913-62.322-192.914-122.792-290.001-184.589C766.993 449.854 861.628 389.595 959.665 327.168z" />
-</svg>
diff --git a/_includes/svg/icon/social/medium.svg b/_includes/svg/icon/social/medium.svg
deleted file mode 100644
index 2dfdd92..0000000
--- a/_includes/svg/icon/social/medium.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 0 1-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 0 1 6.8-17.2z"></path>
-</svg>
diff --git a/_includes/svg/icon/social/npm.svg b/_includes/svg/icon/social/npm.svg
deleted file mode 100644
index c382c30..0000000
--- a/_includes/svg/icon/social/npm.svg
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 48 48" version="1.1" width="24px" height="24px">
-<g id="surface1">
-<path style=" fill:#D50000;" d="M 0 15 L 48 15 L 48 32 L 24 32 L 24 35 L 13 35 L 13 32 L 0 32 Z "/>
-<path style=" fill:#FFFFFF;" d="M 3 29 L 8 29 L 8 21 L 11 21 L 11 29 L 13 29 L 13 18 L 3 18 Z "/>
-<path style=" fill:#FFFFFF;" d="M 16 18 L 16 32 L 21 32 L 21 29 L 26 29 L 26 18 Z M 24 26 L 21 26 L 21 21 L 24 21 Z "/>
-<path style=" fill:#FFFFFF;" d="M 29 18 L 29 29 L 34 29 L 34 21 L 37 21 L 37 29 L 40 29 L 40 21 L 43 21 L 43 29 L 45 29 L 45 18 Z "/>
-</g>
-</svg>
diff --git a/_includes/svg/icon/social/pinterest.svg b/_includes/svg/icon/social/pinterest.svg
deleted file mode 100644
index 68f400b..0000000
--- a/_includes/svg/icon/social/pinterest.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M444.56 671.968c-16.832 85.472-35.936 155.392-57.296 209.776S333.84 978.224 291.104 1008c-5.184-29.776-7.12-62.48-5.824-98.096 1.264-35.616 3.2-66.352 5.824-92.256 2.592-25.904 7.44-55.04 14.576-87.408 7.088-32.368 13.888-60.224 20.4-83.536 6.464-23.296 13.888-50.816 22.336-82.544 8.416-31.712 14.56-58.56 18.448-80.608-12.96-24.576-19.424-53.088-19.424-85.472 0-32.336 5.504-62.16 16.512-89.344 10.976-27.2 28.464-47.888 52.432-62.16 23.968-14.24 50.176-16.192 78.672-5.824 27.2 11.664 42.08 31.744 44.672 60.208 2.592 28.496-1.936 59.92-13.6 94.208-11.648 34.32-22.656 68.32-33.008 101.984-10.384 33.696-11.664 63.44-3.888 89.344 7.76 25.888 28.48 42.08 62.16 48.544 45.312 9.072 85.776-3.872 121.392-38.848 35.616-34.96 60.224-77.984 73.808-129.168 13.6-51.152 17.152-104.56 10.688-160.24-6.48-55.648-24.608-98.384-54.384-128.192-32.368-33.664-71.216-55.648-116.528-66.032-45.328-10.352-89.36-8.736-132.096 4.864-42.72 13.6-81.904 34.32-117.504 62.16-35.648 27.872-62.48 63.792-80.608 107.792-18.16 44.016-23.312 90.016-15.536 137.904 2.592 12.944 7.776 26.224 15.536 39.824 7.776 13.6 14.576 24.96 20.4 34 5.824 9.056 8.416 21.68 7.76 37.872-0.672 16.208-6.8 33.984-18.448 53.408-97.12-22-143.728-97.76-139.84-227.248 3.888-91.936 39.136-169.632 105.856-233.072 66.688-63.424 143.408-100.336 230.176-110.72 108.768-11.648 204.592 7.12 287.456 56.336 82.88 49.232 130.8 121.728 143.728 217.552 10.352 73.808 4.528 145.664-17.488 215.6-22 69.92-59.568 126.576-112.656 169.952-53.072 43.392-115.232 62.48-186.448 57.312-14.256-1.296-27.52-4.224-39.808-8.752-12.32-4.528-22.336-9.056-30.112-13.6-7.76-4.528-18.16-11.328-31.072-20.384C462.688 684.288 452.336 677.152 444.56 671.968z" />
-</svg> \ No newline at end of file
diff --git a/_includes/svg/icon/social/qq.svg b/_includes/svg/icon/social/qq.svg
deleted file mode 100644
index a305a5b..0000000
--- a/_includes/svg/icon/social/qq.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M116.434944 581.71392c-33.540096 78.963712-38.984704 154.297344-12.058624 168.370176 18.572288 9.696256 47.685632-12.382208 74.93632-52.909056 10.790912 44.156928 37.492736 84.13696 75.63264 116.209664-40.003584 14.768128-66.13504 38.8864-66.13504 66.23232 0 44.9536 70.709248 81.301504 157.9776 81.301504 78.715904 0 143.906816-29.538304 155.93984-68.371456 3.231744-0.049152 15.663104-0.049152 18.79552 0 12.0832 38.784 77.324288 68.371456 155.988992 68.371456 87.267328 0 157.9776-36.39808 157.9776-81.301504 0-27.296768-26.104832-51.464192-66.13504-66.23232 38.088704-32.12288 64.888832-72.052736 75.630592-116.209664 27.250688 40.526848 56.290304 62.605312 74.887168 52.909056 26.949632-14.072832 21.630976-89.455616-12.032-168.370176-26.354688-62.058496-62.109696-107.754496-89.45664-117.848064 0.398336-3.929088 0.595968-7.957504 0.595968-11.93472 0-23.967744-6.66112-46.145536-18.049024-64.195584 0.198656-1.39264 0.198656-2.834432 0.198656-4.227072 0-11.037696-2.635776-21.38112-7.113728-30.331904-6.908928-161.308672-111.930368-289.401856-281.86624-289.401856-170.036224 0-275.105792 128.093184-281.94304 289.401856-4.525056 9.00096-7.135232 19.34336-7.135232 30.331904 0 1.39264 0.099328 2.835456 0.149504 4.227072-11.287552 18.050048-17.95072 40.177664-17.95072 64.195584 0 3.97824 0.149504 7.955456 0.497664 11.93472C178.61632 473.959424 142.739456 519.706624 116.434944 581.71392z" />
-</svg>
diff --git a/_includes/svg/icon/social/telegram.svg b/_includes/svg/icon/social/telegram.svg
deleted file mode 100644
index 1fc8d78..0000000
--- a/_includes/svg/icon/social/telegram.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0"?>
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px" height="24px">
- <path style="line-height:normal;text-indent:0;text-align:start;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000;text-transform:none;block-progression:tb;isolation:auto;mix-blend-mode:normal" d="M 20.302734 2.984375 C 20.013769 2.996945 19.748583 3.080055 19.515625 3.171875 C 19.300407 3.256634 18.52754 3.5814726 17.296875 4.0976562 C 16.06621 4.61384 14.435476 5.2982348 12.697266 6.0292969 C 9.2208449 7.4914211 5.314238 9.1361259 3.3125 9.9785156 C 3.243759 10.007156 2.9645852 10.092621 2.65625 10.328125 C 2.3471996 10.564176 2.0039062 11.076462 2.0039062 11.636719 C 2.0039062 12.088671 2.2295201 12.548966 2.5019531 12.8125 C 2.7743861 13.076034 3.0504903 13.199244 3.28125 13.291016 C 3.9563403 13.559857 6.0424892 14.392968 6.9492188 14.755859 C 7.2668647 15.707799 8.0129251 17.950071 8.1875 18.501953 L 8.1855469 18.501953 C 8.3275588 18.951162 8.4659791 19.243913 8.6582031 19.488281 C 8.7543151 19.610465 8.8690398 19.721184 9.0097656 19.808594 C 9.0637596 19.842134 9.1235454 19.868148 9.1835938 19.892578 C 9.191962 19.896131 9.2005867 19.897012 9.2089844 19.900391 L 9.1855469 19.894531 C 9.2029579 19.901531 9.2185841 19.911859 9.2363281 19.917969 C 9.2652427 19.927926 9.2852873 19.927599 9.3242188 19.935547 C 9.4612233 19.977694 9.5979794 20.005859 9.7246094 20.005859 C 10.26822 20.005859 10.601562 19.710938 10.601562 19.710938 L 10.623047 19.695312 L 12.970703 17.708984 L 15.845703 20.367188 C 15.897113 20.439837 16.308174 20.998047 17.261719 20.998047 C 17.829844 20.998047 18.280978 20.718791 18.568359 20.423828 C 18.855741 20.128866 19.034757 19.82706 19.115234 19.417969 L 19.115234 19.414062 L 19.115234 19.412109 C 19.171124 19.121728 21.931641 5.265625 21.931641 5.265625 L 21.925781 5.2890625 C 22.01148 4.9067181 22.036735 4.5369631 21.935547 4.1601562 C 21.834358 3.7833495 21.561271 3.4156252 21.232422 3.2226562 C 20.903572 3.0296874 20.591699 2.9718046 20.302734 2.984375 z M 19.908203 5.1738281 C 19.799749 5.7182284 17.343164 18.059965 17.183594 18.878906 L 14.328125 16.240234 C 13.59209 15.559749 12.44438 15.535812 11.679688 16.181641 L 10.222656 17.414062 L 11 14.375 C 11 14.375 16.362547 8.9468594 16.685547 8.6308594 C 16.945547 8.3778594 17 8.2891719 17 8.2011719 C 17 8.0841719 16.939781 8 16.800781 8 C 16.675781 8 16.506016 8.1197812 16.416016 8.1757812 C 15.267511 8.8918132 10.350132 11.694224 7.96875 13.048828 C 7.8792978 12.995267 7.7913128 12.939666 7.6933594 12.900391 C 6.9119785 12.587666 5.4101276 11.985551 4.53125 11.634766 C 6.6055146 10.76177 10.161156 9.2658083 13.472656 7.8730469 C 15.210571 7.142109 16.840822 6.4570977 18.070312 5.9414062 C 19.108158 5.5060977 19.649538 5.2807035 19.908203 5.1738281 z M 17.152344 19.023438 C 17.152344 19.023438 17.154297 19.023438 17.154297 19.023438 C 17.154234 19.023761 17.152444 19.03095 17.152344 19.03125 C 17.154024 19.022709 17.151187 19.029588 17.152344 19.023438 z" font-weight="400" font-family="sans-serif" white-space="normal" overflow="visible"/>
-</svg>
diff --git a/_includes/svg/icon/social/twitter.svg b/_includes/svg/icon/social/twitter.svg
deleted file mode 100644
index b04f68d..0000000
--- a/_includes/svg/icon/social/twitter.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M1024.032 194.432c-37.664 16.704-78.176 28-120.672 33.088 43.36-26.016 76.672-67.168 92.384-116.224-40.608 24.064-85.568 41.568-133.408 50.976-38.336-40.832-92.928-66.336-153.344-66.336-116.032 0-210.08 94.048-210.08 210.08 0 16.48 1.856 32.512 5.44 47.872-174.592-8.768-329.408-92.416-433.024-219.52-18.08 31.04-28.448 67.104-28.448 105.632 0 72.896 37.088 137.184 93.472 174.88-34.432-1.088-66.816-10.528-95.168-26.272-0.032 0.864-0.032 1.76-0.032 2.656 0 101.792 72.416 186.688 168.512 205.984-17.632 4.8-36.192 7.36-55.36 7.36-13.536 0-26.688-1.312-39.52-3.776 26.72 83.456 104.32 144.192 196.256 145.888-71.904 56.352-162.496 89.92-260.928 89.92-16.96 0-33.664-0.992-50.112-2.944 92.96 59.616 203.392 94.4 322.048 94.4 386.432 0 597.728-320.128 597.728-597.76 0-9.12-0.192-18.176-0.608-27.168 41.056-29.632 76.672-66.624 104.832-108.736z" />
-</svg>
diff --git a/_includes/svg/icon/social/weibo.svg b/_includes/svg/icon/social/weibo.svg
deleted file mode 100644
index 2ccd8b1..0000000
--- a/_includes/svg/icon/social/weibo.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M769.226164 496.610234c-14.420098-4.330228-24.309277-7.266877-16.746482-26.214823 16.350218-41.133578 18.046881-76.626289 0.307181-101.939024-33.242099-47.500415-124.194284-44.928286-228.44638-1.280945 0-0.056317-32.73525 14.323848-24.371737-11.64523 16.042013-51.54906 13.626547-94.739726-11.332929-119.662341-56.566349-56.601163-206.976479 2.134908-335.954595 131.078209-96.594075 96.61353-152.681222 198.989775-152.681222 287.52035 0 169.337597 217.152361 272.292366 429.593589 272.292366 278.498445 0 463.752111-161.808592 463.752111-290.273715C893.345701 558.867622 827.968378 514.820945 769.226164 496.610234zM430.163922 866.063936c-169.51781 16.728051-315.851649-59.899262-326.864086-171.202185-11.010389-111.275277 117.530505-215.061482 287.031932-231.823323 169.537265-16.761841 315.876224 59.866496 326.86511 171.119247C728.190884 745.495411 599.705282 849.291856 430.163922 866.063936z" />
- <path d="M954.16753 186.714824c-67.256246-74.565105-166.457264-102.990607-258.020739-83.522502l-0.037886 0c-21.188318 4.535015-34.695065 25.37929-30.159026 46.527675 4.516584 21.166816 25.352668 34.691993 46.54201 30.174385 65.139769-13.832358 135.634727 6.400627 183.442323 59.368863 47.765615 52.96414 60.740938 125.206957 40.282686 188.537431l0.011263 0.012287c-6.666851 20.629249 4.617954 42.698153 25.271777 49.366027 20.570885 6.662755 42.687913-4.607714 49.362955-25.188838 0-0.037886 0-0.116729 0.011263-0.150519C1039.577146 362.756133 1021.443231 261.206205 954.16753 186.714824" />
- <path d="M850.886125 279.919669c-32.732179-36.315956-81.068126-50.108381-125.685136-40.621609-18.234261 3.885839-29.856965 21.833398-25.946551 40.085067 3.89915 18.173849 21.833398 29.851845 40.024654 25.893307l0 0.037886c21.809848-4.610786 45.459709 2.113405 61.461789 19.83365 16.018463 17.757107 20.323092 41.949655 13.45043 63.178931l0.035838 0c-5.715614 17.717174 3.983113 36.770584 21.717694 42.511796 17.7397 5.677728 36.76956-3.992328 42.493365-21.756603C892.458972 365.691759 883.686907 316.228458 850.886125 279.919669" />
- <path d="M447.103928 548.691741c-80.666743-20.985579-171.84317 19.215193-206.880229 90.291746-35.685212 72.492657-1.180599 152.963828 80.321676 179.268757 84.41947 27.224424 183.926645-14.492797 218.521364-92.744074C573.187374 649.021137 530.586496 570.268131 447.103928 548.691741zM385.506979 733.819463c-16.398343 26.160554-51.51015 37.623523-77.954335 25.54824-26.066352-11.868448-33.760211-42.248645-17.360844-67.757975 16.197652-25.400793 50.129884-36.716316 76.378497-25.711046C393.129162 677.216253 401.60838 707.401901 385.506979 733.819463zM439.522702 664.493841c-5.929616 10.131852-19.03498 15.010909-29.304039 10.785123-10.096014-4.15411-13.261002-15.495231-7.522862-25.454038 5.906066-9.908634 18.500485-14.747758 28.572948-10.750309C441.502995 642.817105 445.180975 654.283146 439.522702 664.493841z" />
-</svg>
diff --git a/_includes/svg/icon/social/weixin.svg b/_includes/svg/icon/social/weixin.svg
deleted file mode 100644
index c2ed41b..0000000
--- a/_includes/svg/icon/social/weixin.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M684.111464 364.088889c10.47478 0 20.949559 0.722399 31.424339 1.805996-28.173545-131.476543-168.680071-229.000353-329.052557-229.000353-179.15485 0-326.162963 122.085362-326.162963 277.401058 0 89.577425 48.761905 163.262081 130.392945 220.33157l-32.507937 98.246208L272.344268 675.442681c40.81552 7.946384 73.684656 16.253968 114.138977 16.253968 10.11358 0 20.22716-0.361199 30.340741-1.444797-6.501587-21.671958-10.11358-44.788713-10.11358-68.266667C406.710406 479.672663 529.156966 364.088889 684.111464 364.088889zM508.568607 275.595062c24.561552 0 40.81552 16.253968 40.81552 40.81552 0 24.561552-16.253968 40.81552-40.81552 40.81552-24.561552 0-49.123104-16.253968-49.123104-40.81552C459.806702 291.84903 484.368254 275.595062 508.568607 275.595062zM280.290653 357.226102c-24.561552 0-49.123104-16.253968-49.123104-40.81552 0-24.561552 24.561552-40.81552 49.123104-40.81552 24.561552 0 40.81552 16.253968 40.81552 40.81552C321.106173 340.610935 304.852205 357.226102 280.290653 357.226102z" p-id="792"></path><path d="M981.739683 618.373192c0-130.392945-130.392945-236.585538-277.039859-236.585538-155.315697 0-277.401058 106.192593-277.401058 236.585538 0 130.754145 122.085362 236.585538 277.401058 236.585538 32.507937 0 65.377072-8.307584 97.885009-16.253968l89.577425 49.123104-24.561552-81.631041C932.977778 757.073721 981.739683 691.696649 981.739683 618.373192zM614.761199 577.557672c-16.253968 0-32.507937-16.253968-32.507937-32.507937 0-16.253968 16.253968-32.507937 32.507937-32.507937 24.561552 0 40.81552 16.253968 40.81552 32.507937C655.57672 561.303704 639.322751 577.557672 614.761199 577.557672zM794.277249 577.557672c-16.253968 0-32.507937-16.253968-32.507937-32.507937 0-16.253968 16.253968-32.507937 32.507937-32.507937 24.561552 0 40.81552 16.253968 40.81552 32.507937C835.092769 561.303704 818.477601 577.557672 794.277249 577.557672z" />
-</svg>
diff --git a/_includes/svg/icon/social/zhihu.svg b/_includes/svg/icon/social/zhihu.svg
deleted file mode 100644
index 210fb2e..0000000
--- a/_includes/svg/icon/social/zhihu.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg fill="#000000" width="24px" height="24px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
- <path d="M351.791182 562.469462l192.945407 0c0-45.367257-21.3871-71.939449-21.3871-71.939449L355.897709 490.530013c3.977591-82.182744 7.541767-187.659007 8.816806-226.835262l159.282726 0c0 0-0.86367-67.402109-18.578124-67.402109s-279.979646 0-279.979646 0 16.850783-88.141456 39.318494-127.053698c0 0-83.60514-4.510734-112.121614 106.962104S81.344656 355.077018 76.80834 367.390461c-4.536316 12.313443 24.62791 5.832845 36.941354 0 12.313443-5.832845 68.050885-25.924439 84.252893-103.69571l86.570681 0c1.165546 49.28652 4.596691 200.335724 3.515057 226.835262L109.86113 490.530013c-25.275663 18.147312-33.701566 71.939449-33.701566 71.939449L279.868105 562.469462c-8.497535 56.255235-23.417339 128.763642-44.275389 167.210279-33.05279 60.921511-50.55235 116.65793-169.802314 212.576513 0 0-19.442818 14.257725 40.829917 9.073656 60.273758-5.185093 117.305683-20.739347 156.840094-99.807147 20.553105-41.107233 41.805128-93.250824 58.386782-146.138358l-0.055259 0.185218 167.855986 193.263655c0 0 22.035876-51.847855 5.832845-108.880803L371.045711 650.610918l-42.1244 31.157627-0.045025 0.151449c11.69946-41.020252 20.11206-81.5749 22.726607-116.858498C351.665315 564.212152 351.72876 563.345412 351.791182 562.469462z" p-id="907"></path><path d="M584.918753 182.033893l0 668.840094 70.318532 0 28.807093 80.512708 121.875768-80.512708 153.600307 0L959.520453 182.033893 584.918753 182.033893zM887.150192 778.934538l-79.837326 0-99.578949 65.782216-23.537066-65.782216-24.855084 0L659.341766 256.673847l227.807403 0L887.149169 778.934538z" />
-</svg>
diff --git a/_includes/tags.html b/_includes/tags.html
deleted file mode 100644
index 424804c..0000000
--- a/_includes/tags.html
+++ /dev/null
@@ -1,52 +0,0 @@
-{%- assign _tag_max_size = 1 -%}
-{%- assign _tag_min_size = 1 -%}
-{%- assign _tag_cur_size = 1 -%}
-{%- assign _tags = site.tags | sort -%}
-{%- for _tag in _tags -%}
- {%- assign _tag_cur_size = _tag[1].size -%}
- {%- if _tag_cur_size > _tag_max_size -%}
- {%- assign _tag_max_size = _tag_cur_size -%}
- {%- endif -%}
- {%- if _tag_cur_size < _tag_min_size -%}
- {%- assign _tag_min_size = _tag_cur_size -%}
- {%- endif -%}
-{%- endfor -%}
-{%- assign _tag_gap_size = _tag_max_size | minus: _tag_min_size | plus: 1 | divided_by: 4 -%}
-{%- if _tag_gap_size < 1 -%}
- {%- assign _tag_gap_size = 1 -%}
-{%- endif -%}
-<div class="site-tags js-tags">
- <ul class="menu">
- <li>
- <button type="button" class="button button--secondary button--pill tag-button tag-button--all" data-encode="">
- Show All<div class="tag-button__count">{{ site.posts | size }}</div>
- </button>
- </li>
- {%- for _tag in _tags -%}
- {%- assign _tag_cur_size = _tag[1].size -%}
- {%- assign _tag_min_1 = _tag_min_size -%}
- {%- assign _tag_max_1 = _tag_min_1 | plus: _tag_gap_size -%}
- {%- assign _tag_min_2 = _tag_max_1 -%}
- {%- assign _tag_max_2 = _tag_min_2 | plus: _tag_gap_size -%}
- {%- assign _tag_min_3 = _tag_max_2 -%}
- {%- assign _tag_max_3 = _tag_min_3 | plus: _tag_gap_size -%}
- {%- assign _tag_min_4 = _tag_max_3 -%}
- {%- assign _tag_max_4 = _tag_min_4 | plus: _tag_gap_size -%}
- {%- if _tag_cur_size >= _tag_min_1 and _tag_cur_size < _tag_max_1 -%}
- {%- assign _c_index = 1 -%}
- {%- elsif _tag_cur_size >= _tag_min_2 and _tag_cur_size < _tag_max_2 -%}
- {%- assign _c_index = 2 -%}
- {%- elsif _tag_cur_size >= _tag_min_3 and _tag_cur_size < _tag_max_3 -%}
- {%- assign _c_index = 3 -%}
- {%- elsif _tag_cur_size >= _tag_min_4 and _tag_cur_size < _tag_max_4 -%}
- {%- assign _c_index = 4 -%}
- {%- else -%}
- {%- assign _c_index = 4 -%}
- {%- endif -%}
- <li><button type="button" class="button button--pill tag-button tag-button-{{ _c_index }}" data-encode="{{ _tag[0] | strip | url_encode }}">
- <span>{{ _tag[0] | strip }}</span><div class="tag-button__count">{{ _tag[1].size }}</div>
- </button>
- </li>
- {%- endfor -%}
- </ul>
-</div>
diff --git a/_layouts/404.html b/_layouts/404.html
deleted file mode 100644
index 4dd94a6..0000000
--- a/_layouts/404.html
+++ /dev/null
@@ -1,13 +0,0 @@
----
-layout: page
-title: 404
-show_title: false
----
-<div class="layout--404">
- <div class="sign">
- <h1>404</h1>
- <p>Page not found :(</p>
- </div>
-</div>
-
-{{ content }}
diff --git a/_layouts/archive.html b/_layouts/archive.html
deleted file mode 100644
index 02412a6..0000000
--- a/_layouts/archive.html
+++ /dev/null
@@ -1,39 +0,0 @@
----
-layout: page
-titles:
- # @start locale config
- en : &EN Archive
- en-GB : *EN
- en-US : *EN
- en-CA : *EN
- en-AU : *EN
- zh-Hans : &ZH_HANS 归档
- zh : *ZH_HANS
- zh-CN : *ZH_HANS
- zh-SG : *ZH_HANS
- zh-Hant : &ZH_HANT 歸檔
- zh-TW : *ZH_HANT
- zh-HK : *ZH_HANT
- ko : &KO 아카이브
- ko-KR : *KO
- fr : &FR Archives
- fr-BE : *FR
- fr-CA : *FR
- fr-CH : *FR
- fr-FR : *FR
- fr-LU : *FR
- # @end locale config
----
-
-<div class="layout--archive js-all">
- {%- include tags.html -%}
- <div class="js-result layout--archive__result d-none">
- {%- include article-list.html articles=site.posts type='brief' show_info=true reverse=true group_by='year' -%}
- </div>
-</div>
-
-<script>
- {%- include scripts/archieve.js -%}
-</script>
-
-{{ content }}
diff --git a/_layouts/article.html b/_layouts/article.html
deleted file mode 100644
index 80f3b3c..0000000
--- a/_layouts/article.html
+++ /dev/null
@@ -1,29 +0,0 @@
----
-layout: page
-type: article
----
-
-{%- include snippets/assign.html
- target = site.data.variables.default.page.sharing
- source0=layout.sharing source1=page.sharing -%}
-{%- assign _sharing = __return -%}
-
-<div class="layout--article">
- {%- include article/top/custom.html -%}
-
- <div class="article__content" itemprop="articleBody">{{ content }}</div>
-
- {%- if _sharing -%}
- <section class="article__sharing d-print-none">{%- include sharing.html -%}</section>
- {%- endif -%}
-
- <div class="d-print-none">
- {%- include article-footer.html -%}
- {%- include article-section-navigator.html -%}
- </div>
-
-</div>
-
-<script>
- {%- include scripts/article.js -%}
-</script>
diff --git a/_layouts/articles.html b/_layouts/articles.html
deleted file mode 100644
index 00738a1..0000000
--- a/_layouts/articles.html
+++ /dev/null
@@ -1,89 +0,0 @@
----
-layout: page
----
-
-{%- assign _page_articles_data_source = page.articles.data_source | default: layout.articles.data_source -%}
-
-{%- if _page_articles_data_source -%}
-{%- assign _keys = _page_articles_data_source | split: '.' -%}
-{%- endif -%}
-
-{%- assign _articles = nil -%}
-{%- for _key in _keys -%}
- {%- if forloop.first -%}
- {%- case _key -%}
- {%- when 'site' -%}
- {%- assign _articles = site -%}
- {%- when 'page' -%}
- {%- assign _articles = page -%}
- {%- when 'layout' -%}
- {%- assign _articles = layout -%}
- {%- when 'paginator' -%}
- {%- assign _articles = paginator -%}
- {%- else -%}
- {%- assign _articles = site[_key] -%}
- {%- else -%}
- {%- endcase -%}
- {%- else -%}
- {%- assign _articles = _articles[_key] -%}
- {%- endif -%}
-{%- endfor -%}
-
-{%- assign _type = page.articles.type | default: layout.articles.type -%}
-
-{%- if _articles -%}
-
- <div class="layout--articles">
-
- {%- if _type == 'grid' -%}
- {%- if page.articles.size == 'sm' -%}
- {%- include article-list.html articles=_articles type='grid' size='sm' -%}
- {%- else -%}
- {%- include article-list.html articles=_articles type='grid' -%}
- {%- endif -%}
-
- {%- elsif _type == 'brief' -%}
- {%- include snippets/assign.html
- target=site.data.variables.default.page.articles.show_info
- source0=layout.articles.show_info source1=page.articles.show_info -%}
- {%- assign _show_info = __return -%}
-
- {%- include article-list.html articles=_articles type='brief' show_info=_show_info -%}
-
- {%- else -%}
- {%- include snippets/assign.html
- target=site.data.variables.default.page.articles.show_cover
- source0=layout.articles.show_cover source1=page.articles.show_cover -%}
- {%- assign _show_cover = __return -%}
-
- {%- include snippets/assign.html
- target=site.data.variables.default.page.articles.show_excerpt
- source0=layout.articles.show_excerpt source1=page.articles.show_excerpt -%}
- {%- assign _show_excerpt = __return -%}
-
- {%- include snippets/assign.html
- target=site.data.variables.default.page.articles.show_readmore
- source0=layout.articles.show_readmore source1=page.articles.show_readmore -%}
- {%- assign _show_readmore = __return -%}
-
- {%- include snippets/assign.html
- target=site.data.variables.default.page.articles.show_info
- source0=layout.articles.show_info source1=page.articles.show_info -%}
- {%- assign _show_info = __return -%}
-
- {%- assign _article_type = page.articles.article_type | default: layout.articles.article_type -%}
- {%- assign _cover_size = page.articles.cover_size | default: layout.articles.cover_size -%}
- {%- assign _excerpt_type = page.articles.excerpt_type | default: layout.articles.excerpt_type -%}
-
- {%- include article-list.html articles=_articles type='item'
- article_type=_article_type
- show_cover=_show_cover cover_size=_cover_size
- show_excerpt=_show_excerpt excerpt_type=_excerpt_type
- show_readmore=_show_readmore show_info=_show_info -%}
-
- {%- endif -%}
-
- </div>
-{%- endif -%}
-
-{{ content }}
diff --git a/_layouts/base.html b/_layouts/base.html
deleted file mode 100644
index 8a02572..0000000
--- a/_layouts/base.html
+++ /dev/null
@@ -1,25 +0,0 @@
----
-layout: none
----
-<!DOCTYPE html>
-{%- include snippets/get-lang.html -%}
-<html lang="{{ __return }}">
- <head>
- {%- include analytics.html -%}
- {%- include head.html -%}
- <script>
- {%- include scripts/utils/utils.js -%}
- {%- include scripts/lib/throttle.js -%}
- {%- include scripts/lib/lazyload.js -%}
- </script>
- {%- include scripts/variables.html -%}
- </head>
- <body>
- <div class="root" data-is-touch="false">
- {{ content }}
- </div>
- <script>
- {%- include scripts/common.js -%}
- </script>
- </body>
-</html>
diff --git a/_layouts/home.html b/_layouts/home.html
deleted file mode 100644
index e587d6f..0000000
--- a/_layouts/home.html
+++ /dev/null
@@ -1,42 +0,0 @@
----
-layout: articles
-titles:
- # @start locale config
- en : &EN Home
- en-GB : *EN
- en-US : *EN
- en-CA : *EN
- en-AU : *EN
- zh-Hans : &ZH_HANS 主页
- zh : *ZH_HANS
- zh-CN : *ZH_HANS
- zh-SG : *ZH_HANS
- zh-Hant : &ZH_HANT 主頁
- zh-TW : *ZH_HANT
- zh-HK : *ZH_HANT
- ko : &KO 홈
- ko-KR : *KO
- fr : &FR Accueil
- fr-BE : *FR
- fr-CA : *FR
- fr-CH : *FR
- fr-FR : *FR
- fr-LU : *FR
- # @end locale config
-show_title: false
-articles:
- data_source: paginator.posts
- article_type: BlogPosting
- show_cover: false
- show_excerpt: true
- show_readmore: true
- show_info: true
----
-<div class="layout--home">
- {%- include paginator.html -%}
-</div>
-<script>
- {%- include scripts/home.js -%}
-</script>
-
-{{ content }}
diff --git a/_layouts/landing.html b/_layouts/landing.html
deleted file mode 100644
index 306067b..0000000
--- a/_layouts/landing.html
+++ /dev/null
@@ -1,178 +0,0 @@
----
-layout: page
-header: false
-full_width: true
-article_header:
- type: overlay
- align: center
- height: 80vh
----
-<div class="layout--landing">
- <div class="heros">
- {%- for _section in page.data.sections -%}
- {%- include snippets/get-nav-url.html path=_section.background_image.src -%}
- {%- assign _url = __return -%}
- {%- if _section.theme == 'light' -%}
- <section class="hero hero--center hero--light" id="hero-{{ forloop.index }}"
- {%- elsif _section.theme == 'dark' -%}
- <section class="hero hero--center hero--dark" id="hero-{{ forloop.index }}"
- {%- else -%}
- <section class="hero hero--center" id="hero-{{ forloop.index }}"
- {%- endif -%}
- {%- if _section.background_color -%}
- style="background-image: url({{ _url }}); background-color: {{ _section.background_color }};">
- {%- else -%}
- style="background-image: url({{ _url }});">
- {%- endif -%}
-
- <div class="hero__content">
- <div class="mb-5">
-
- <h3>{{ _section.title }}</h3>
- {%- if _section.excerpt-%}
- <p>{{ _section.excerpt }}</p>
- {%- endif -%}
-
- {%- if _section.actions -%}
- <ul class="menu">
- {%- for _action in _section.actions -%}
- {%- include snippets/get-nav-url.html path=_action.url -%}
- {%- assign _url = __return -%}
- {%- assign _type = _action.type | default: 'outline-info' -%}
- <li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
- {%- endfor -%}
- </ul>
- {%- endif -%}
-
- </div>
-
- {%- if _section.children -%}
- {%- assign _size = _section.children | size -%}
- <div class="grid--container">
- <div class="grid grid--p-3">
-
- {%- for child in _section.children -%}
-
- {%- if _size >= 2 -%}
- {%- assign _cell_md_col = 6 -%}
- {%- else -%}
- {%- assign _cell_md_col = 12 | divided_by: _size -%}
- {%- endif -%}
-
- {%- if _size >= 4 -%}
- {%- assign _cell_lg_col = 3 -%}
- {%- else -%}
- {%- assign _cell_lg_col = 12 | divided_by: _size -%}
- {%- endif -%}
-
- <div class="cell cell--12 cell--md-{{ _cell_md_col }} cell--lg-{{ _cell_lg_col }} ">
-
- <div class="mb-5">
- <h4>{{ child.title }}</h4>
-
- {%- if child.excerpt-%}
- <p>{{ child.excerpt }}</p>
- {%- endif -%}
-
- {%- if child.actions -%}
- <ul class="menu">
- {%- for _action in child.actions -%}
- {%- include snippets/get-nav-url.html path=_action.url -%}
- {%- assign _url = __return -%}
- {%- assign _type = _action.type | default: 'outline-info' -%}
- <li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
- {%- endfor -%}
- </ul>
- {%- endif -%}
- </div>
-
- {%- if child.image and child.image.src -%}
-
- {%- if child.image.url -%}
- {%- include snippets/get-nav-url.html path=child.image.url -%}
- {%- assign _item_image_url = __return -%}
- {%- else -%}
- {%- assign _item_image_url = nil -%}
- {%- endif -%}
-
- {%- include snippets/get-nav-url.html path=child.image.src -%}
- {%- assign _item_image_src = __return -%}
-
- {%- if child.image.is_row -%}
- <div class="mb-5">
- {%- endif -%}
- <div class="mx-auto" style="{{ child.image.style }}">
- {%- if _item_image_url -%}
- <a href="{{ _item_image_url }}">
- {%- endif -%}
- <img src="{{ _item_image_src }}"/>
- {%- if _item_image_url -%}
- </a>
- {%- endif -%}
- </div>
- {%- if child.image.is_row -%}
- </div>
- {%- endif -%}
- {%- endif -%}
-
- {%- if child.content-%}
- <p>{{ child.content }}</p>
- {%- endif -%}
-
- </div>
- {%- endfor-%}
-
- </div>
- </div>
- {%- endif -%}
-
- {%- if _section.image.full_width == true -%}
- </div> {% comment %} end hero__content {% endcomment %}
- {%- endif -%}
-
- {%- if _section.image and _section.image.src -%}
-
- {%- if _section.image.url -%}
- {%- include snippets/get-nav-url.html path=_section.image.url -%}
- {%- assign _section_image_url = __return -%}
- {%- else -%}
- {%- assign _section_image_url = nil -%}
- {%- endif -%}
-
- {%- include snippets/get-nav-url.html path=_section.image.src -%}
- {%- assign _section_image_src = __return -%}
-
- {%- if _section.image.is_row -%}
- <div class="mb-5">
- {%- endif -%}
- <div class="mx-auto" style="{{ _section.image.style }}">
- {%- if _section_image_url -%}
- <a href="{{ _section_image_url }}">
- {%- endif -%}
- {%- if _section.image.full_width == true -%}
- <img class="hero__cover hero__cover--full-width" src="{{ _section_image_src }}"/>
- {%- else -%}
- <img class="hero__cover" src="{{ _section_image_src }}"/>
- {%- endif -%}
- {%- if _section_image_url -%}
- </a>
- {%- endif -%}
- </div>
- {%- if _section.image.is_row -%}
- </div>
- {%- endif -%}
- {%- endif -%}
-
- {%- if _section.image.full_width != true -%}
- </div> {% comment %} end hero__content {% endcomment %}
- {%- endif -%}
-
- {%- if _section.content-%}
- <p>{{ _section.content }}</p>
- {%- endif -%}
- </section>
- {%- endfor -%}
- </div>
-</div>
-
-{{ content }}
diff --git a/_layouts/none.html b/_layouts/none.html
deleted file mode 100644
index cddd070..0000000
--- a/_layouts/none.html
+++ /dev/null
@@ -1 +0,0 @@
-{{ content }}
diff --git a/_layouts/page.html b/_layouts/page.html
deleted file mode 100644
index de6b7b2..0000000
--- a/_layouts/page.html
+++ /dev/null
@@ -1,270 +0,0 @@
----
-layout: base
----
-{%- assign _page_mode = page.mode | default: layout.mode | default: site.data.variables.default.page.mode -%}
-{%- assign _page_type = page.type | default: layout.type | default: site.data.variables.default.page.type -%}
-{%- assign _article_header_type = page.article_header.type | default: layout.article_header.type -%}
-
-{%- include snippets/assign.html
- target=layout.header source0=page.header -%}
-{%- assign _header = __return -%}
-
-{%- include snippets/assign.html
- target=layout.footer source0=page.footer -%}
-{%- assign _footer = __return -%}
-
-{%- include snippets/assign.html
- target=layout.lightbox source0=page.lightbox -%}
-{%- assign _lightbox = __return -%}
-
-{%- include snippets/assign.html
- target = site.data.variables.default.page.full_width
- source0=layout.full_width source1=page.full_width -%}
-{%- assign _full_width = __return -%}
-
-{%- include snippets/assign.html
- target = site.data.variables.default.page.comment
- source0=layout.comment source1=page.comment -%}
-{%- assign _comment = __return -%}
-
-
-{%- assign _article_header_excerpt_truncate = include.excerpt_truncate | default: 200 -%}
-
-{%- if page.sidebar -%}
-<div class="layout--page layout--page--sidebar clearfix js-page-root">
- <div class="page__mask d-print-none js-page-mask js-sidebar-hide"></div>
- <div class="page__viewport">
- <div class="page__actions d-print-none">
- <div class="button button--circle button--lg box-shadow-2 sidebar-button js-sidebar-show">
- <i class="fas fa-bars icon--show"></i>
- </div>
- </div>
-
- <div class="grid page__grid">
-
- <div class="page__sidebar d-print-none">
- {%- include sidebar/toc.html -%}
- </div>
-
-{%- else -%}
-<div class="layout--page js-page-root">
-{%- endif -%}
-
- {%- assign _page_main_class = 'page__main js-page-main' -%}
- {%- if _page_mode == 'immersive' -%}
- {%- assign _page_main_class = _page_main_class | append: ' page__main--immersive' -%}
- {%- endif -%}
- {%- unless page.sidebar -%}
- {%- assign _page_main_class = _page_main_class | append: ' page__viewport' -%}
- {%- endunless -%}
- {%- if _footer == false -%}
- {%- assign _page_main_class = _page_main_class | append: ' hide-footer' -%}
- {%- endif -%}
- {%- if page.aside -%}
- {%- assign _page_main_class = _page_main_class | append: ' has-aside' -%}
- {%- elsif _full_width -%}
- {%- assign _page_main_class = _page_main_class | append: ' full-width' -%}
- {%- endif -%}
- <div class="{{ _page_main_class }} cell cell--auto">
-
- <div class="page__main-inner">
- {%- if _header != false -%}
- <div class="page__header d-print-none">
- {%- assign _header_theme = page.header.theme | default: layout.header.theme -%}
- {%- if _header_theme == 'dark'-%}
- {%- include header.html theme='dark' background=page.header.background -%}
- {%- elsif _header_theme == 'light' -%}
- {%- include header.html theme='light' background=page.header.background -%}
- {%- else -%}
- {%- include header.html -%}
- {%- endif -%}
- </div>
- {%- endif -%}
-
-
- <div class="page__content">
- {%- if _article_header_type == 'overlay' or _article_header_type == 'cover' -%}
-
- {%- if _article_header_type == 'overlay' -%}
-
- {%- assign _article_header_height = page.article_header.height | default: layout.article_header.height -%}
- {%- assign _article_header_align = page.article_header.align | default: layout.article_header.align | default: site.data.variables.default.page.article_header.align -%}
- {%- assign _article_header_theme = page.article_header.theme | default: layout.article_header.theme | default: site.data.variables.default.page.article_header.theme -%}
-
- {%- if page.article_header.background_image.src -%}
- {%- assign _header_background_image_src = page.article_header.background_image.src -%}
- {%- elsif page.article_header.background_image != false and page.cover -%}
- {%- assign _header_background_image_src = page.cover -%}
- {%- endif -%}
-
- {%- if page.article_header.background_image.gradient -%}
- {%- assign _header_background_image = page.article_header.background_image.gradient -%}
- {%- if _header_background_image_src -%}
- {%- assign _header_background_image = _header_background_image | append: ',' -%}
- {%- endif -%}
- {%- endif -%}
-
- {%- if _header_background_image_src -%}
- {%- include snippets/get-nav-url.html path=_header_background_image_src -%}
- {%- assign _header_background_image_src = __return -%}
- {%- assign _header_background_image = _header_background_image
- | append: 'url(' | append: _header_background_image_src | append: ')'-%}
- {%- endif -%}
-
- {%- assign _header_style = 'background-image:' | append: _header_background_image | append: ';' -%}
-
- {%- if page.article_header.background_color -%}
- {%- assign _header_style = _header_style | append: 'background-color:' | append: page.article_header.background_color | append: ';' -%}
- {%- endif -%}
-
- {%- if _article_header_height -%}
- {%- assign _header_style = _header_style | append: 'min-height:' | append: _article_header_height | append: ';' -%}
- {%- endif -%}
-
- <div class="article__header--overlay">
-
- {%- if _article_header_theme == 'light' -%}
- {%- if _article_header_align == 'center' -%}
- <div class="hero hero--center hero--light overlay" style="{{ _header_style }}">
- {%- else -%}
- <div class="hero hero--light overlay" style="{{ _header_style }}">
- {%- endif -%}
- {%- elsif _article_header_theme == 'dark' -%}
- {%- if _article_header_align == 'center' -%}
- <div class="hero hero--center hero--dark overlay" style="{{ _header_style }}">
- {%- else -%}
- <div class="hero hero--dark overlay" style="{{ _header_style }}">
- {%- endif -%}
- {%- else -%}
- {%- if _article_header_align == 'center' -%}
- <div class="hero hero--center overlay" style="{{ _header_style }}">
- {%- else -%}
- <div class="hero overlay" style="{{ _header_style }}">
- {%- endif -%}
- {%- endif -%}
- <div class="hero__content">
- {%- if _full_width == false -%}
- <div class ="main">
- {%- endif -%}
- {%- include article-info.html article=page semantic=false -%}
- {%- include article-header.html article=page semantic=false -%}
- {%- if page.excerpt -%}
- <p class="overlay__excerpt">{{ page.excerpt | strip_html | strip_newlines | strip | truncate: _article_header_excerpt_truncate }}</p>
- {%- endif -%}
- {%- if page.article_header.actions -%}
- <ul class="menu">
- {%- for _action in page.article_header.actions -%}
- {%- include snippets/get-nav-url.html path=_action.url -%}
- {%- assign _url = __return -%}
- {%- assign _type = _action.type | default: 'info' -%}
- <li><a class="button button--{{ _type }} button--rounded button--xl" href="{{ _url }}">{{ _action.text }}</a></li>
- {%- endfor -%}
- </ul>
- {%- endif -%}
- {%- if _full_width == false -%}
- </div>
- {%- endif -%}
- </div>
- </div>
- </div>
- {%- elsif _article_header_type == 'cover' -%}
- {%- if page.article_header.image.src -%}
- {%- include snippets/get-nav-url.html path=page.article_header.image.src -%}
- {%- assign _header_image_src = __return -%}
- <img class="article__header--cover" src="{{ _header_image_src }}"></img>
- {%- endif -%}
- {%- endif -%}
-
- {%- endif -%}
-
-
- {%- if _full_width == false -%}
- <div class ="main">
- {%- endif -%}
- <div class="grid grid--reverse">
-
- <div class="col-aside d-print-none js-col-aside">
- {%- if page.aside -%}
- <aside class="page__aside js-page-aside">
- {%- include aside/toc.html -%}
- </aside>
- {%- endif -%}
- </div>
-
- <div class="col-main cell cell--auto">
- {%- include main/top/custom.html -%}
- {%- if _page_type == 'article' -%}
- <article itemscope itemtype="http://schema.org/Article">
- {%- elsif _page_type == 'webpage' -%}
- <article itemscope itemtype="http://schema.org/WebPage">
- {%- else -%}
- <article>
- {%- endif -%}
-
- {%- if _article_header_type == 'overlay' or page.article_header == false -%}
- {%- include article-header.html article=page html=false -%}
- {%- include article-info.html article=page html=false -%}
- {%- else -%}
- {%- include article-header.html article=page -%}
- {%- include article-info.html article=page -%}
- {%- endif -%}
-
- <div class="js-article-content">{{ content }}</div>
- {%- if _comment != false -%}
- <section class="page__comments d-print-none">{%- include comments.html -%}</section>
- {%- endif -%}
- </article>
- {%- include main/bottom/custom.html -%}
- </div>
- </div>
-
- {%- if _full_width == false -%}
- </div>
- {%- endif -%}
- </div>
-
- {%- if _footer != false -%}
- <div class="page__footer d-print-none">{%- include footer.html -%}</div>
- {%- endif -%}
- </div>
- </div> {%- comment -%} end page__main {%- endcomment -%}
-{%- if page.sidebar -%}
- </div> {%- comment -%} end grid {%- endcomment -%}
- </div> {%- comment -%} end page__viewport {%- endcomment -%}
-{%- endif -%}
-
-<script>{%- include scripts/lib/modal.js -%}</script>
-{%- if _lightbox == true -%}
- <div class="modal d-print-none js-page-gallery-modal"><div class="gallery"></div></div>
-{%- endif -%}
-{%- if _header != false -%}
- <div class="modal modal--overflow page__search-modal d-print-none js-page-search-modal">{%- include search.html -%}</div>
-{%- endif -%}
-</div>
-
-
-<script>
- {%- include scripts/lib/scroll-to.js -%}
- {%- include scripts/lib/affix.js -%}
- {%- include scripts/lib/toc.js -%}
- {%- if _lightbox == true -%}
- {%- include scripts/lib/gallery.js -%}
- {%- include scripts/components/lightbox.js -%}
- {%- endif -%}
- {%- include scripts/page.js -%}
-</script>
-
-{%- if page.sidebar -%}
-<script>{%- include scripts/components/sidebar.js -%}</script>
-{%- endif -%}
-
-{%- if page.aside -%}
-<script>
- /* toc must before affix, since affix need to konw toc' height. */
- {%- if page.aside.toc -%}{%- include scripts/aside/toc.js -%}{%- endif -%}
- {%- include scripts/aside/affix.js -%}
-</script>
-{%- endif -%}
-
-{%- include markdown-enhancements.html -%}
-{%- include pageview.html -%}
diff --git a/_sass/additional/_alert.scss b/_sass/additional/_alert.scss
deleted file mode 100644
index fa5651f..0000000
--- a/_sass/additional/_alert.scss
+++ /dev/null
@@ -1,29 +0,0 @@
-.article__content {
- p.success {
- padding: map-get($spacers, 2) map-get($spacers, 3);
- background-color: rgba($green, .1);
- border: 1px solid $green;
- border-radius: map-get($base, border-radius);
- }
-
- p.info {
- padding: map-get($spacers, 2) map-get($spacers, 3);
- background-color: rgba($blue, .1);
- border: 1px solid $blue;
- border-radius: map-get($base, border-radius);
- }
-
- p.warning {
- padding: map-get($spacers, 2) map-get($spacers, 3);
- background-color: rgba($yellow, .1);
- border: 1px solid $yellow;
- border-radius: map-get($base, border-radius);
- }
-
- p.error {
- padding: map-get($spacers, 2) map-get($spacers, 3);
- background-color: rgba($red, .1);
- border: 1px solid $red;
- border-radius: map-get($base, border-radius);
- }
-}
diff --git a/_sass/additional/_photo-frame.scss b/_sass/additional/_photo-frame.scss
deleted file mode 100644
index 55a30c7..0000000
--- a/_sass/additional/_photo-frame.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-.article__content {
- img.shadow, .shadow > img {
- @include box-shadow();
- }
-
- img.border, .border > img {
- border: 1px solid $border-color-l;
- }
-
- img.rounded, .rounded > img {
- border-radius: map-get($base, border-radius);
- }
-
- img.circle, .circle > img {
- border-radius: 50%;
- }
-}
diff --git a/_sass/additional/_tag.scss b/_sass/additional/_tag.scss
deleted file mode 100644
index 6a418ed..0000000
--- a/_sass/additional/_tag.scss
+++ /dev/null
@@ -1,21 +0,0 @@
-.article__content {
- code.success {
- color: $text-color-function;
- background-color: $green;
- }
-
- code.info {
- color: $text-color-function;
- background-color: $blue;
- }
-
- code.warning {
- color: $text-color-function;
- background-color: $yellow;
- }
-
- code.error {
- color: $text-color-function;
- background-color: $red;
- }
-}
diff --git a/_sass/animate/_fade-in-down.scss b/_sass/animate/_fade-in-down.scss
deleted file mode 100644
index a32a4e7..0000000
--- a/_sass/animate/_fade-in-down.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-@include keyframes(fade-in-down) {
- from {
- opacity: 0;
- @include transform(translateY(-2rem));
- }
- to {
- opacity: 1;
- @include transform(translateY(0));
- }
-}
diff --git a/_sass/animate/_fade-in-up.scss b/_sass/animate/_fade-in-up.scss
deleted file mode 100644
index 920a0bb..0000000
--- a/_sass/animate/_fade-in-up.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-@include keyframes(fade-in-up) {
- from {
- opacity: 0;
- @include transform(translateY(2rem));
- }
- to {
- opacity: 1;
- @include transform(translateY(0));
- }
-}
diff --git a/_sass/animate/_fade-in.scss b/_sass/animate/_fade-in.scss
deleted file mode 100644
index 03fdea8..0000000
--- a/_sass/animate/_fade-in.scss
+++ /dev/null
@@ -1,8 +0,0 @@
-@include keyframes(fade-in) {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
diff --git a/_sass/common/_classes.scss b/_sass/common/_classes.scss
deleted file mode 100644
index b5615d8..0000000
--- a/_sass/common/_classes.scss
+++ /dev/null
@@ -1,24 +0,0 @@
-/* stylelint-disable at-rule-name-space-after, at-rule-semicolon-space-before */
-@charset "utf-8";
-@import
- "common/classes/animation",
- "common/classes/transform",
- "common/classes/transition",
- "common/classes/user-select",
-
- "common/classes/clearfix",
- "common/classes/media",
- "common/classes/clickable",
- "common/classes/display",
- "common/classes/flex",
- "common/classes/horizontal-rules",
- "common/classes/pseudo",
- "common/classes/link",
- "common/classes/text",
- "common/classes/overflow",
- "common/classes/shadow",
- "common/classes/spacing",
- "common/classes/split-line",
- "common/classes/grid"
-;
-/* stylelint-enable */
diff --git a/_sass/common/_function.scss b/_sass/common/_function.scss
deleted file mode 100644
index 1de2492..0000000
--- a/_sass/common/_function.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-@function get-color-theme($color) {
- @if lightness($color) < 15% {
- @return "dark";
- } @else {
- @return "light";
- }
-}
-
-@function breakpoint-infix($name, $breakpoints: default) {
- @if $breakpoints == default {
- $breakpoints: $responsive;
- }
- $min: map-get($breakpoints, $name);
- @return if($min != 0, "#{$name}-", "");
-}
diff --git a/_sass/common/_print.scss b/_sass/common/_print.scss
deleted file mode 100644
index d798d87..0000000
--- a/_sass/common/_print.scss
+++ /dev/null
@@ -1,20 +0,0 @@
-@media print {
- a {
- @include plain() {
- text-decoration: underline;
- }
- @include hover() {
- text-decoration: underline;
- }
- @include active() {
- text-decoration: underline;
- }
- }
-
- img,
- tr,
- pre,
- blockquote {
- page-break-inside: avoid;
- }
-}
diff --git a/_sass/common/_reset.scss b/_sass/common/_reset.scss
deleted file mode 100644
index 2062d37..0000000
--- a/_sass/common/_reset.scss
+++ /dev/null
@@ -1,174 +0,0 @@
-@mixin block-elements {
- h1,
- h2,
- h3,
- h4,
- h5,
- h6,
- p,
- hr,
- blockquote,
- figure,
- pre,
- .highlighter-rouge,
- ul,
- ol,
- dl,
- table,
- .footnotes {
- @content;
- }
-}
-@mixin heading-elements {
- h1, h2, h3, h4, h5, h6 {
- @content;
- }
-}
-
-*,
-::before,
-::after {
- box-sizing: border-box;
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-}
-
-/**
- * 1. Prevent adjustments of font size after orientation changes in iOS.
- **/
-
-html {
- font-size: map-get($base, font-size-root);
- -webkit-text-size-adjust: 100%; /* 1 */
- @media print {
- font-size: map-get($base, font-size-root-sm);
- }
-}
-
-body {
- padding: 0;
- margin: 0;
- font: map-get($base, font-weight) #{map-get($base, font-size)}/#{map-get($base, line-height)} map-get($base, font-family);
- ::-moz-selection {
- background: $select-color;
- }
- ::-webkit-selection {
- background: $select-color;
- }
- ::selection {
- background: $select-color;
- }
-}
-
-@include block-elements() {
- padding: 0;
- margin: map-get($spacers, 2) 0;
-}
-
-input, textarea, select, button {
- font: map-get($base, font-weight) #{map-get($base, font-size)}/#{map-get($base, line-height)} map-get($base, font-family);
- color: $text-color;
-}
-
-h1,
-h2,
-h3,
-h4,
-h5,
-h6,
-strong {
- font-weight: map-get($base, font-weight-bold);
-}
-
-h1 {
- font-size: map-get($base, font-size-h1);
- color: $text-color-d;
- @include media-breakpoint-down(md) {
- font-size: map-get($base, font-size-h1-sm);
- }
-}
-
-h2 {
- font-size: map-get($base, font-size-h2);
- color: $text-color-d;
- @include media-breakpoint-down(md) {
- font-size: map-get($base, font-size-h2-sm);
- }
-}
-
-h3 {
- font-size: map-get($base, font-size-h3);
- color: $text-color-d;
- @include media-breakpoint-down(md) {
- font-size: map-get($base, font-size-h3-sm);
- }
-}
-
-h4 {
- font-size: map-get($base, font-size-h4);
- color: $text-color;
- @include media-breakpoint-down(md) {
- font-size: map-get($base, font-size-h4-sm);
- }
-}
-
-h5 {
- font-size: map-get($base, font-size-h5);
- color: $text-color;
- @include media-breakpoint-down(md) {
- font-size: map-get($base, font-size-h5-sm);
- }
-}
-
-h6 {
- font-size: map-get($base, font-size-h6);
- color: $text-color-l;
- @include media-breakpoint-down(md) {
- font-size: map-get($base, font-size-h6-sm);
- }
-}
-
-a {
- font-weight: map-get($base, font-weight-bold);
- @include link-colors($main-color-1);
-}
-
-pre, code {
- font-family: map-get($base, font-family-code);
-}
-
-code {
- font-size: map-get($base, font-size-xs);
- line-height: map-get($base, line-height-sm);
-}
-
-figure > img {
- display: block;
-}
-
-figcaption {
- font-size: map-get($base, font-size-sm);
-}
-
-button {
- padding: 0;
- margin: 0;
- font-size: map-get($spacers, 3);
- cursor: pointer;
- background-color: transparent;
- border-width: 0;
- outline: none;
-}
-
-input {
- &::-ms-clear {
- display: none;
- }
- &:focus {
- outline: none;
- }
-}
-
-// mermaid
-.mermaidTooltip {
- display: none;
-}
diff --git a/_sass/common/_variables.scss b/_sass/common/_variables.scss
deleted file mode 100644
index faf4e98..0000000
--- a/_sass/common/_variables.scss
+++ /dev/null
@@ -1,150 +0,0 @@
-$base: (
- font-family: (-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif),
- font-family-code: (Menlo, Monaco, Consolas, Andale Mono, lucida console, Courier New, monospace),
-
- font-size-root: 16px,
- font-size-root-sm: 14px,
-
- font-size-xl: 1.5rem,
- font-size-lg: 1.25rem,
- font-size: 1rem,
- font-size-sm: .85rem,
- font-size-xs: .7rem,
-
- font-size-h1-xl: 3.5rem,
- font-size-h2-xl: 2.5rem,
- font-size-h3-xl: 2rem,
- font-size-h4-xl: 1.75rem,
- font-size-h5-xl: 1.5rem,
- font-size-h6-xl: 1.5rem,
-
- font-size-h1-lg: 3rem,
- font-size-h2-lg: 2rem,
- font-size-h3-lg: 1.75rem,
- font-size-h4-lg: 1.5rem,
- font-size-h5-lg: 1.25rem,
- font-size-h6-lg: 1.25rem,
-
- font-size-h1: 2.5rem,
- font-size-h2: 1.9rem,
- font-size-h3: 1.5rem,
- font-size-h4: 1.2rem,
- font-size-h5: 1rem,
- font-size-h6: 1rem,
-
- font-size-h1-sm: 2rem,
- font-size-h2-sm: 1.5rem,
- font-size-h3-sm: 1.35rem,
- font-size-h4-sm: 1.15rem,
- font-size-h5-sm: 1rem,
- font-size-h6-sm: 1rem,
-
- font-size-h1-xs: 1.05rem,
- font-size-h2-xs: 1rem,
- font-size-h3-xs: .95rem,
- font-size-h4-xs: .9rem,
- font-size-h5-xs: .85rem,
- font-size-h6-xs: .85rem,
-
- font-weight: 400,
- font-weight-bold: 700,
-
- line-height-xl: 2,
- line-height-lg: 1.8,
- line-height: 1.6,
- line-height-sm: 1.4,
- line-height-xs: 1.2,
-
- spacer: 1rem,
-
- border-radius-lg: .8rem,
- border-radius: .4rem,
- border-radius-sm: .2rem
-);
-
-$spacers: (
- 0: 0,
- 1: map-get($base, spacer) * .25,
- 2: map-get($base, spacer) * .5,
- 3: map-get($base, spacer),
- 4: map-get($base, spacer) * 1.5,
- 5: map-get($base, spacer) * 3
-);
-
-$z-indexes: (
- actions: 996,
- mask: 997,
- sidebar: 998,
- modal: 999
-);
-
-$layout: (
- header-height: 5rem,
- header-height-sm: 3rem,
- content-max-width: 950px,
- sidebar-width: 250px,
- sidebar-header-height: 3rem,
- aside-width: 220px
-);
-
-// sm md lg
-// | ------ | ------ | ------ |
-// 0 500 1024 -
-
-$responsive: (
- sm: 0,
- md: 500px,
- lg: 1024px
-);
-
-$animation: (
- duration: .4s,
- duration-sm: .2s,
- timing-function: ease-in-out
-);
-
-$clickable: (
- transition: all .2s ease-in-out
-);
-
-$button-height-xl: 2.8rem;
-$button-height-lg: 2.3rem;
-$button-height: 1.9rem;
-$button-height-sm: 1.5rem;
-$button-height-xs: 1.2rem;
-
-$button: (
- padding-y-xl: ($button-height-xl - map-get($base, font-size-xl)) / 2,
- padding-x-xl: $button-height-xl / 3,
- padding-y-lg: ($button-height-lg - map-get($base, font-size-lg)) / 2,
- padding-x-lg: $button-height-lg / 3,
- padding-y: ($button-height - map-get($base, font-size)) / 2,
- padding-x: $button-height / 3,
- padding-y-sm: ($button-height-sm - map-get($base, font-size-sm)) / 2,
- padding-x-sm: $button-height-sm / 3,
- padding-y-xs: ($button-height-xs - map-get($base, font-size-xs)) / 2,
- padding-x-xs: $button-height-xs / 3,
-
- pill-radius: 6rem,
-
- circle-diameter-xl: $button-height-xl,
- circle-diameter-lg: $button-height-lg,
- circle-diameter: $button-height,
- circle-diameter-sm: $button-height-sm,
- circle-diameter-xs: $button-height-xs,
-
- font-weight: map-get($base, font-weight-bold)
-);
-
-$image: (
- width-xl: 20em,
- width-lg: 16rem,
- width: 12rem,
- width-sm: 8rem,
- width-xs: 4rem
-);
-
-$menu: (
- horizontal-spacer: 1,
- horizontal-item-vertical-spacer: 1
-);
diff --git a/_sass/common/classes/_animation.scss b/_sass/common/classes/_animation.scss
deleted file mode 100644
index 2dbc47d..0000000
--- a/_sass/common/classes/_animation.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-@mixin animation($value) {
- -webkit-animation: $value;
- animation: $value;
-}
-
-@mixin keyframes($name) {
- @-webkit-keyframes #{$name} {
- @content;
- }
- @keyframes #{$name} {
- @content;
- }
-}
diff --git a/_sass/common/classes/_clearfix.scss b/_sass/common/classes/_clearfix.scss
deleted file mode 100644
index caf3124..0000000
--- a/_sass/common/classes/_clearfix.scss
+++ /dev/null
@@ -1,19 +0,0 @@
-@mixin clearfix() {
- &::after {
- display: table;
- clear: both;
- content: "";
- }
-}
-
-.clearfix {
- @include clearfix();
-}
-
-.left {
- float: left;
-}
-
-.right {
- float: right;
-}
diff --git a/_sass/common/classes/_clickable.scss b/_sass/common/classes/_clickable.scss
deleted file mode 100644
index af32eff..0000000
--- a/_sass/common/classes/_clickable.scss
+++ /dev/null
@@ -1,159 +0,0 @@
-@mixin clickable($clr, $bg-clr, $hover-clr: default, $hover-bg-clr: default, $active-clr: default, $active-bg-clr: default, $focus-clr: default, $focus-bg-clr: default, $theme: default, $ignore-path: default) {
-
- @if $theme == default {
- @if $bg-clr == null and $hover-bg-clr == null {
- @if $hover-clr == default {
- $theme: get-color-theme($clr);
- } @else {
- $theme: get-color-theme($hover-clr);
- }
- } @else {
- @if $hover-bg-clr == default {
- $theme: get-color-theme($bg-clr);
- } @else {
- $theme: get-color-theme($hover-bg-clr);
- }
- }
- }
-
- @if $ignore-path == default {
- $ignore-path: false;
- } @else {
- $ignore-path: true;
- }
-
- @include transition(map-get($clickable, transition));
- @if $ignore-path == false {
- svg {
- path {
- @include transition(map-get($clickable, transition));
- }
- }
- }
-
- // hover
- @if $hover-clr == default {
- @if $hover-bg-clr == null {
- @if $theme == "light" {
- $hover-clr: darken($clr, 14%);
- }
- @if $theme == "dark" {
- $hover-clr: lighten($clr, 18%);
- }
- } @else if $hover-bg-clr == default {
- $hover-clr: $clr;
- }
- }
-
- @if $hover-bg-clr == default {
- @if $theme == "light" {
- $hover-bg-clr: darken($bg-clr, 14%);
- }
- @if $theme == "dark" {
- $hover-bg-clr: lighten($bg-clr, 18%);
- }
- }
-
- // active
- @if $active-clr == default {
- @if $active-bg-clr == null {
- @if $theme == "light" {
- $active-clr: darken($hover-clr, 15%);
- }
- @if $theme == "dark" {
- $active-clr: lighten($hover-clr, 16%);
- }
- } @else if $active-bg-clr == default {
- $active-clr: $hover-clr;
- }
- }
-
- @if $active-bg-clr == default {
- @if $theme == "light" {
- $active-bg-clr: darken($hover-bg-clr, 15%);
- }
- @if $theme == "dark" {
- $active-bg-clr: lighten($hover-bg-clr, 16%);
- }
- }
-
- // focus
- @if $focus-clr == default {
- @if $focus-bg-clr == null {
- $focus-clr: $hover-clr;
- } @else if $hover-bg-clr == default {
- $focus-clr: $hover-clr;
- }
- }
-
- @if $focus-bg-clr == default {
- $focus-bg-clr: $hover-bg-clr;
- }
-
- @include plain() {
- color: $clr;
- @if $bg-clr {
- background-color: $bg-clr;
- }
- @if $ignore-path == false {
- svg path {
- fill: $clr;
- }
- }
- }
- @include hover() {
- color: $hover-clr;
- @if $hover-bg-clr {
- background-color: $hover-bg-clr;
- }
- @if $ignore-path == false {
- svg path {
- fill: $hover-clr;
- }
- }
- }
- @include active() {
- color: $active-clr;
- @if $active-bg-clr {
- background-color: $active-bg-clr;
- }
- @if $ignore-path == false {
- svg path {
- fill: $active-clr;
- }
- }
- }
- @include focus() {
- color: $focus-clr;
- @if $focus-bg-clr{
- background-color: $focus-bg-clr;
- box-shadow: 0 0 0 2px rgba($focus-bg-clr, .4);
- }
- @if $ignore-path == false {
- svg path {
- fill: $focus-clr;
- }
- }
- }
- @include disabled() {
- @if $theme == "light" {
- color: rgba($clr, .2) !important;
- }
- @if $theme == "dark" {
- color: rgba($clr, .4) !important;
- }
- @if $bg-clr {
- background-color: $bg-clr !important;
- }
- @if $ignore-path == false {
- svg path {
- @if $theme == "light" {
- fill: rgba($clr, .2) !important;
- }
- @if $theme == "dark" {
- fill: rgba($clr, .4) !important;
- }
- }
- }
- }
-}
diff --git a/_sass/common/classes/_display.scss b/_sass/common/classes/_display.scss
deleted file mode 100644
index 411611e..0000000
--- a/_sass/common/classes/_display.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-@each $breakpoint in map-keys($responsive) {
- @include media-breakpoint-up($breakpoint) {
- .d-#{breakpoint-infix($breakpoint)}none {
- display: none !important;
- }
- }
-}
-
-.d-print-none {
- @media print {
- display: none !important;
- }
-}
diff --git a/_sass/common/classes/_flex.scss b/_sass/common/classes/_flex.scss
deleted file mode 100644
index 59e1570..0000000
--- a/_sass/common/classes/_flex.scss
+++ /dev/null
@@ -1,394 +0,0 @@
-// Flexbox Mixins
-// http://philipwalton.github.io/solved-by-flexbox/
-// https://github.com/philipwalton/solved-by-flexbox
-//
-// Copyright (c) 2013 Brian Franco
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// This is a set of mixins for those who want to mess around with flexbox
-// using the native support of current browsers. For full support table
-// check: http://caniuse.com/flexbox
-//
-// Basically this will use:
-//
-// * Fallback, old syntax (IE10, mobile webkit browsers - no wrapping)
-// * Final standards syntax (FF, Safari, Chrome, IE11, Opera)
-//
-// This was inspired by:
-//
-// * http://dev.opera.com/articles/view/advanced-cross-browser-flexbox/
-//
-// With help from:
-//
-// * http://w3.org/tr/css3-flexbox/
-// * http://the-echoplex.net/flexyboxes/
-// * http://msdn.microsoft.com/en-us/library/ie/hh772069(v=vs.85).aspx
-// * http://css-tricks.com/using-flexbox/
-// * http://dev.opera.com/articles/view/advanced-cross-browser-flexbox/
-// * https://developer.mozilla.org/en-us/docs/web/guide/css/flexible_boxes
-
-//----------------------------------------------------------------------
-
-// Flexbox Containers
-//
-// The 'flex' value causes an element to generate a block-level flex
-// container box.
-//
-// The 'inline-flex' value causes an element to generate a inline-level
-// flex container box.
-//
-// display: flex | inline-flex
-//
-// http://w3.org/tr/css3-flexbox/#flex-containers
-//
-// (Placeholder selectors for each type, for those who rather @extend)
-
-@mixin flexbox {
- display: -webkit-box;
- display: -webkit-flex;
- display: -moz-flex;
- display: -ms-flexbox;
- display: flex;
-}
-
-%flexbox { @include flexbox; }
-
-//----------------------------------
-
-@mixin inline-flex {
- display: -webkit-inline-box;
- display: -webkit-inline-flex;
- display: -moz-inline-flex;
- display: -ms-inline-flexbox;
- display: inline-flex;
-}
-
-%inline-flex { @include inline-flex; }
-
-//----------------------------------------------------------------------
-
-// Flexbox Direction
-//
-// The 'flex-direction' property specifies how flex items are placed in
-// the flex container, by setting the direction of the flex container's
-// main axis. This determines the direction that flex items are laid out in.
-//
-// Values: row | row-reverse | column | column-reverse
-// Default: row
-//
-// http://w3.org/tr/css3-flexbox/#flex-direction-property
-
-@mixin flex-direction($value: row) {
- @if $value == row-reverse {
- -webkit-box-direction: reverse;
- -webkit-box-orient: horizontal;
- } @else if $value == column {
- -webkit-box-direction: normal;
- -webkit-box-orient: vertical;
- } @else if $value == column-reverse {
- -webkit-box-direction: reverse;
- -webkit-box-orient: vertical;
- } @else {
- -webkit-box-direction: normal;
- -webkit-box-orient: horizontal;
- }
- -webkit-flex-direction: $value;
- -moz-flex-direction: $value;
- -ms-flex-direction: $value;
- flex-direction: $value;
-}
-// Shorter version:
-@mixin flex-dir($args...) { @include flex-direction($args...); }
-
-//----------------------------------------------------------------------
-
-// Flexbox Wrap
-//
-// The 'flex-wrap' property controls whether the flex container is single-line
-// or multi-line, and the direction of the cross-axis, which determines
-// the direction new lines are stacked in.
-//
-// Values: nowrap | wrap | wrap-reverse
-// Default: nowrap
-//
-// http://w3.org/tr/css3-flexbox/#flex-wrap-property
-
-@mixin flex-wrap($value: nowrap) {
- // No Webkit Box fallback.
- -webkit-flex-wrap: $value;
- -moz-flex-wrap: $value;
- @if $value == nowrap {
- -ms-flex-wrap: none;
- } @else {
- -ms-flex-wrap: $value;
- }
- flex-wrap: $value;
-}
-
-//----------------------------------------------------------------------
-
-// Flexbox Flow (shorthand)
-//
-// The 'flex-flow' property is a shorthand for setting the 'flex-direction'
-// and 'flex-wrap' properties, which together define the flex container's
-// main and cross axes.
-//
-// Values: <flex-direction> | <flex-wrap>
-// Default: row nowrap
-//
-// http://w3.org/tr/css3-flexbox/#flex-flow-property
-
-@mixin flex-flow($values: (row nowrap)) {
- // No Webkit Box fallback.
- -webkit-flex-flow: $values;
- -moz-flex-flow: $values;
- -ms-flex-flow: $values;
- flex-flow: $values;
-}
-
-//----------------------------------------------------------------------
-
-// Flexbox Order
-//
-// The 'order' property controls the order in which flex items appear within
-// their flex container, by assigning them to ordinal groups.
-//
-// Default: 0
-//
-// http://w3.org/tr/css3-flexbox/#order-property
-
-@mixin order($int: 0) {
- -ms-flex-order: $int;
- -webkit-order: $int;
- -moz-order: $int;
- order: $int;
- -webkit-box-ordinal-group: $int + 1;
-}
-
-//----------------------------------------------------------------------
-
-// Flexbox Grow
-//
-// The 'flex-grow' property sets the flex grow factor. Negative numbers
-// are invalid.
-//
-// Default: 0
-//
-// http://w3.org/tr/css3-flexbox/#flex-grow-property
-
-@mixin flex-grow($int: 0) {
- -webkit-box-flex: $int;
- -webkit-flex-grow: $int;
- -moz-flex-grow: $int;
- -ms-flex-positive: $int;
- flex-grow: $int;
-}
-
-//----------------------------------------------------------------------
-
-// Flexbox Shrink
-//
-// The 'flex-shrink' property sets the flex shrink factor. Negative numbers
-// are invalid.
-//
-// Default: 1
-//
-// http://w3.org/tr/css3-flexbox/#flex-shrink-property
-
-@mixin flex-shrink($int: 1) {
- -webkit-flex-shrink: $int;
- -moz-flex-shrink: $int;
- -ms-flex-negative: $int;
- flex-shrink: $int;
-}
-
-//----------------------------------------------------------------------
-
-// Flexbox Basis
-//
-// The 'flex-basis' property sets the flex basis. Negative lengths are invalid.
-//
-// Values: Like "width"
-// Default: auto
-//
-// http://www.w3.org/TR/css3-flexbox/#flex-basis-property
-
-@mixin flex-basis($value: auto) {
- -webkit-flex-basis: $value;
- -moz-flex-basis: $value;
- -ms-flex-preferred-size: $value;
- flex-basis: $value;
-}
-
-//----------------------------------------------------------------------
-
-// Flexbox "Flex" (shorthand)
-//
-// The 'flex' property specifies the components of a flexible length: the
-// flex grow factor and flex shrink factor, and the flex basis. When an
-// element is a flex item, 'flex' is consulted instead of the main size
-// property to determine the main size of the element. If an element is
-// not a flex item, 'flex' has no effect.
-//
-// Values: none | <flex-grow> <flex-shrink> || <flex-basis>
-// Default: See individual properties (1 1 0).
-//
-// http://w3.org/tr/css3-flexbox/#flex-property
-
-@mixin flex($fg: 1, $fs: null, $fb: null) {
-
- // Set a variable to be used by box-flex properties
- $fg-boxflex: $fg;
-
- // Box-Flex only supports a flex-grow value so let's grab the
- // first item in the list and just return that.
- @if type-of($fg) == "list" {
- $fg-boxflex: nth($fg, 1);
- }
-
- -webkit-box-flex: $fg-boxflex;
- -webkit-flex: $fg $fs $fb;
- -moz-box-flex: $fg-boxflex;
- -moz-flex: $fg $fs $fb;
- -ms-flex: $fg $fs $fb;
- flex: $fg $fs $fb;
-}
-
-//----------------------------------------------------------------------
-
-// Flexbox Justify Content
-//
-// The 'justify-content' property aligns flex items along the main axis
-// of the current line of the flex container. This is done after any flexible
-// lengths and any auto margins have been resolved. Typically it helps distribute
-// extra free space leftover when either all the flex items on a line are
-// inflexible, or are flexible but have reached their maximum size. It also
-// exerts some control over the alignment of items when they overflow the line.
-//
-// Note: 'space-*' values not supported in older syntaxes.
-//
-// Values: flex-start | flex-end | center | space-between | space-around
-// Default: flex-start
-//
-// http://w3.org/tr/css3-flexbox/#justify-content-property
-
-@mixin justify-content($value: flex-start) {
- @if $value == flex-start {
- -webkit-box-pack: start;
- -ms-flex-pack: start;
- } @else if $value == flex-end {
- -webkit-box-pack: end;
- -ms-flex-pack: end;
- } @else if $value == space-between {
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- } @else if $value == space-around {
- -ms-flex-pack: distribute;
- } @else {
- -webkit-box-pack: $value;
- -ms-flex-pack: $value;
- }
- -webkit-justify-content: $value;
- -moz-justify-content: $value;
- justify-content: $value;
-}
-// Shorter version:
-@mixin flex-just($args...) { @include justify-content($args...); }
-
-//----------------------------------------------------------------------
-
-// Flexbox Align Items
-//
-// Flex items can be aligned in the cross axis of the current line of the
-// flex container, similar to 'justify-content' but in the perpendicular
-// direction. 'align-items' sets the default alignment for all of the flex
-// container's items, including anonymous flex items. 'align-self' allows
-// this default alignment to be overridden for individual flex items. (For
-// anonymous flex items, 'align-self' always matches the value of 'align-items'
-// on their associated flex container.)
-//
-// Values: flex-start | flex-end | center | baseline | stretch
-// Default: stretch
-//
-// http://w3.org/tr/css3-flexbox/#align-items-property
-
-@mixin align-items($value: stretch) {
- @if $value == flex-start {
- -webkit-box-align: start;
- -ms-flex-align: start;
- } @else if $value == flex-end {
- -webkit-box-align: end;
- -ms-flex-align: end;
- } @else {
- -webkit-box-align: $value;
- -ms-flex-align: $value;
- }
- -webkit-align-items: $value;
- -moz-align-items: $value;
- align-items: $value;
-}
-
-//----------------------------------
-
-// Flexbox Align Self
-//
-// Values: auto | flex-start | flex-end | center | baseline | stretch
-// Default: auto
-
-@mixin align-self($value: auto) {
- // No Webkit Box Fallback.
- -webkit-align-self: $value;
- -moz-align-self: $value;
- @if $value == flex-start {
- -ms-flex-item-align: start;
- } @else if $value == flex-end {
- -ms-flex-item-align: end;
- } @else {
- -ms-flex-item-align: $value;
- }
- align-self: $value;
-}
-
-//----------------------------------------------------------------------
-
-// Flexbox Align Content
-//
-// The 'align-content' property aligns a flex container's lines within the
-// flex container when there is extra space in the cross-axis, similar to
-// how 'justify-content' aligns individual items within the main-axis. Note,
-// this property has no effect when the flexbox has only a single line.
-//
-// Values: flex-start | flex-end | center | space-between | space-around | stretch
-// Default: stretch
-//
-// http://w3.org/tr/css3-flexbox/#align-content-property
-
-@mixin align-content($value: stretch) {
- // No Webkit Box Fallback.
- -webkit-align-content: $value;
- -moz-align-content: $value;
- @if $value == flex-start {
- -ms-flex-line-pack: start;
- } @else if $value == flex-end {
- -ms-flex-line-pack: end;
- } @else {
- -ms-flex-line-pack: $value;
- }
- align-content: $value;
-}
diff --git a/_sass/common/classes/_grid.scss b/_sass/common/classes/_grid.scss
deleted file mode 100644
index 655c254..0000000
--- a/_sass/common/classes/_grid.scss
+++ /dev/null
@@ -1,80 +0,0 @@
-$grid-columns: 12;
-
-.grid-container {
- @include overflow(hidden);
-}
-.cell {
- min-width: 0;
-}
-
-@mixin make-cell($columns) {
- @if $columns == "auto" {
- @include flex(1 1 0);
- width: auto;
- } @else if $columns == "shrink" {
- @include flex(0 0 auto);
- width: auto;
- } @else if $columns == "stretch" {
- @include flex(1);
- } @else {
- @include flex(none);
- width: percentage($columns / $grid-columns);
- }
-}
-
-@mixin make-grid-cell($columns, $breakpoint) {
- @include media-breakpoint-up($breakpoint) {
- .cell--#{breakpoint-infix($breakpoint)}#{$columns} {
- @include make-cell($columns);
- }
- }
-}
-
-.grid {
- @include flexbox();
- @include flex-wrap(wrap);
- & > {
- @each $breakpoint in map-keys($responsive) {
- @for $i from 1 through $grid-columns {
- @include make-grid-cell($i, $breakpoint);
- }
- @include make-grid-cell("auto", $breakpoint);
- @include make-grid-cell("shrink", $breakpoint);
- @include make-grid-cell("stretch", $breakpoint);
- }
- }
-}
-
-.grid--reverse {
- flex-direction: row-reverse;
-}
-
-@mixin make-grid() {
- $types: ("p");
- $directions: ("x", "y", "");
- $spacers: (0, 1, 2, 3, 4, 5);
-
- @each $type in $types {
- @each $direction in $directions {
- @each $spacer in $spacers {
- @if $direction == "" {
- .grid--#{$type}-#{$spacer} {
- @include make-spacing("m", "", $spacer, true);
- .cell {
- @include make-spacing($type, "", $spacer);
- }
- }
- } @else {
- .grid--#{$type}#{$direction}-#{$spacer} {
- @include make-spacing("m", $direction, $spacer, true);
- .cell {
- @include make-spacing($type, $direction, $spacer);
- }
- }
- }
- }
- }
- }
-}
-
-@include make-grid();
diff --git a/_sass/common/classes/_horizontal-rules.scss b/_sass/common/classes/_horizontal-rules.scss
deleted file mode 100644
index 74882cf..0000000
--- a/_sass/common/classes/_horizontal-rules.scss
+++ /dev/null
@@ -1,14 +0,0 @@
-@mixin horizontal-rules() {
- &::before {
- display: block;
- font-size: map-get($base, font-size-h2);
- color: $text-color-l;
- text-align: center;
- letter-spacing: map-get($spacers, 4);
- content: "...";
- }
-}
-
-.horizontal-rules {
- @include horizontal-rules();
-}
diff --git a/_sass/common/classes/_link.scss b/_sass/common/classes/_link.scss
deleted file mode 100644
index 5e0cb48..0000000
--- a/_sass/common/classes/_link.scss
+++ /dev/null
@@ -1,12 +0,0 @@
-@mixin link-colors($clr, $hover-clr: default, $active-clr: default, $focus-clr: null, $theme: default, $ignore-path: false) {
- @include plain() {
- text-decoration: none;
- }
- @include hover() {
- text-decoration: underline;
- }
- @include active() {
- text-decoration: none;
- }
- @include clickable($clr, null, $hover-clr, null, $active-clr, null, $focus-clr, null, $theme, $ignore-path);
-}
diff --git a/_sass/common/classes/_media.scss b/_sass/common/classes/_media.scss
deleted file mode 100644
index e17544e..0000000
--- a/_sass/common/classes/_media.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-@mixin media-breakpoint-down($name, $breakpoints: default) {
- @if $breakpoints == default {
- $breakpoints: $responsive;
- }
- @media (max-width: map-get($breakpoints, $name) - 1) {
- @content;
- }
-}
-
-@mixin media-breakpoint-up($name, $breakpoints: default) {
- @if $breakpoints == default {
- $breakpoints: $responsive;
- }
- @media (min-width: map-get($breakpoints, $name)) {
- @content;
- }
-}
diff --git a/_sass/common/classes/_overflow.scss b/_sass/common/classes/_overflow.scss
deleted file mode 100644
index 6529bf0..0000000
--- a/_sass/common/classes/_overflow.scss
+++ /dev/null
@@ -1,26 +0,0 @@
-@mixin overflow($overflow: auto, $direction: default) {
- @if $direction == default {
- overflow: $overflow;
- } @else if $direction == "x" {
- @if $overflow == auto {
- overflow: hidden;
- }
- overflow-x: $overflow;
- } @else if $direction == "y" {
- @if $overflow == auto {
- overflow: hidden;
- }
- overflow-y: $overflow;
- }
- @if $overflow == auto {
- -webkit-overflow-scrolling: touch;
- }
-}
-
-.of-auto {
- @include overflow(auto);
-}
-
-.of-hidden {
- @include overflow(hidden);
-}
diff --git a/_sass/common/classes/_pseudo.scss b/_sass/common/classes/_pseudo.scss
deleted file mode 100644
index 53310a9..0000000
--- a/_sass/common/classes/_pseudo.scss
+++ /dev/null
@@ -1,33 +0,0 @@
-@mixin plain() {
- &,
- &:link,
- &:visited {
- @content;
- }
-}
-
-@mixin hover() {
- .root[data-is-touch="false"] &:hover {
- @content;
- }
-}
-
-@mixin active() {
- .root[data-is-touch] &.active,
- .root[data-is-touch] &:active {
- @content;
- }
-}
-
-@mixin focus() {
- .root[data-is-touch] &.focus {
- @content;
- }
-}
-
-@mixin disabled() {
- &.disabled,
- &:disabled {
- @content;
- }
-}
diff --git a/_sass/common/classes/_shadow.scss b/_sass/common/classes/_shadow.scss
deleted file mode 100644
index e28b9ca..0000000
--- a/_sass/common/classes/_shadow.scss
+++ /dev/null
@@ -1,22 +0,0 @@
-@mixin box-shadow($level: default, $color: default) {
- @if $color == default {
- $color: #000;
- }
- @if $level == 0 {
- box-shadow: none;
- }
- @if $level == 1 or $level == default {
- box-shadow: 0 4px 8px rgba($color, .23), 0 1px 3px rgba($color, .08), 0 6px 12px rgba($color, .02);
- }
- @if $level == 2 {
- box-shadow: 0 8px 16px rgba($color, .23), 0 2px 6px rgba($color, .08), 0 12px 24px rgba($color, .02);
- }
-}
-
-.box-shadow-1 {
- @include box-shadow();
-}
-
-.box-shadow-2 {
- @include box-shadow(2);
-}
diff --git a/_sass/common/classes/_spacing.scss b/_sass/common/classes/_spacing.scss
deleted file mode 100644
index c07fdce..0000000
--- a/_sass/common/classes/_spacing.scss
+++ /dev/null
@@ -1,81 +0,0 @@
-@mixin make-spacing($property, $side, $spacer, $negative: false) {
-
- $css_property: null;
- $css_sides: null;
-
- @if ($property == "m") {
- $css_property: "margin";
- } @else if ($property == "p") {
- $css_property: "padding";
- }
-
- @if ($side == "t") {
- $css_sides: ("top");
- }
- @else if ($side == "b") {
- $css_sides: ("bottom");
- }
- @else if ($side == "l") {
- $css_sides: ("left");
- }
- @else if ($side == "r") {
- $css_sides: ("right");
- }
- @else if ($side == "x") {
- $css_sides: ("left", "right");
- }
- @else if ($side == "y") {
- $css_sides: ("top", "bottom");
- }
- @else if ($side == "") {
- $css_sides: ("");
- }
-
- @each $side in $css_sides {
- @if ($spacer == "auto") {
- @if ($side == "") {
- #{$css_property}: auto;
- } @else {
- #{$css_property}-#{$side}: auto;
- }
- } @else {
- @if ($side == "") {
- @if ($negative == true) {
- #{$css_property}: - map-get($spacers, $spacer);
- } @else {
- #{$css_property}: map-get($spacers, $spacer);
- }
- } @else {
- @if ($negative == true) {
- #{$css_property}-#{$side}: - map-get($spacers, $spacer);
- } @else {
- #{$css_property}-#{$side}: map-get($spacers, $spacer);
- }
- }
- }
- }
-}
-
-@mixin make-spacings() {
- $propertys: ("m", "p");
- $sides: ("t", "b", "l", "r", "x", "y", "");
- $spacers: (0, 1, 2, 3, 4, 5);
-
- @each $property in $propertys {
- @each $side in $sides {
- @each $spacer in $spacers {
- .#{$property}#{$side}-#{$spacer} {
- @include make-spacing($property, $side, $spacer);
- }
- }
- }
- }
-
- @each $side in $sides {
- .m#{$side}-auto {
- @include make-spacing("m", $side, "auto");
- }
- }
-}
-
-@include make-spacings();
diff --git a/_sass/common/classes/_split-line.scss b/_sass/common/classes/_split-line.scss
deleted file mode 100644
index 4434c6f..0000000
--- a/_sass/common/classes/_split-line.scss
+++ /dev/null
@@ -1,24 +0,0 @@
-@mixin split-line($direction: default, $width: default, $color: default) {
- @if $direction == default {
- $direction: top;
- }
- @if $color == default {
- $color: $border-color-l;
- }
- @if $width == default {
- $width: 1px;
- }
- border: 0 solid $color;
- @if $direction == top {
- border-top-width: $width;
- }
- @if $direction == right {
- border-right-width: $width;
- }
- @if $direction == bottom {
- border-bottom-width: $width;
- }
- @if $direction == left {
- border-left-width: $width;
- }
-}
diff --git a/_sass/common/classes/_text.scss b/_sass/common/classes/_text.scss
deleted file mode 100644
index ac36726..0000000
--- a/_sass/common/classes/_text.scss
+++ /dev/null
@@ -1,37 +0,0 @@
-@mixin text-light {
- color: $text-color-theme-light;
- h1, h2, h3 {
- color: $text-color-theme-light-d;
- }
- h4, h5 {
- color: $text-color-theme-light;
- }
- h6 {
- color: $text-color-theme-light-l;
- }
- a:not(.button) {
- @include link-colors($text-color-theme-light, $main-color-1);
- }
-}
-@mixin text-dark {
- color: $text-color-theme-dark;
- h1, h2, h3 {
- color: $text-color-theme-dark-d;
- }
- h4, h5 {
- color: $text-color-theme-dark;
- }
- h6 {
- color: $text-color-theme-dark-l;
- }
- a:not(.button) {
- @include link-colors($text-color-theme-dark, $main-color-1);
- }
-}
-
-.text--light {
- @include text-light();
-}
-.text--dark {
- @include text-dark();
-}
diff --git a/_sass/common/classes/_transform.scss b/_sass/common/classes/_transform.scss
deleted file mode 100644
index a552879..0000000
--- a/_sass/common/classes/_transform.scss
+++ /dev/null
@@ -1,4 +0,0 @@
-@mixin transform($value) {
- -webkit-transform: $value;
- transform: $value;
-}
diff --git a/_sass/common/classes/_transition.scss b/_sass/common/classes/_transition.scss
deleted file mode 100644
index abbe08b..0000000
--- a/_sass/common/classes/_transition.scss
+++ /dev/null
@@ -1,4 +0,0 @@
-@mixin transition($value) {
- -webkit-transition: $value;
- transition: $value;
-}
diff --git a/_sass/common/classes/_user-select.scss b/_sass/common/classes/_user-select.scss
deleted file mode 100644
index 104cbb5..0000000
--- a/_sass/common/classes/_user-select.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-@mixin user-select($value) {
- -webkit-user-select: $value;
- -moz-user-select: $value;
- -ms-user-select: $value;
- user-select: $value;
-}
diff --git a/_sass/common/components/_button.scss b/_sass/common/components/_button.scss
deleted file mode 100644
index 08ce7a9..0000000
--- a/_sass/common/components/_button.scss
+++ /dev/null
@@ -1,163 +0,0 @@
-@mixin button() {
- display: inline-block;
- font-weight: map-get($button, font-weight);
- line-height: 1 !important;
- text-decoration: none !important;
- cursor: pointer;
- outline: none;
- @include user-select(none);
- svg {
- width: 1rem;
- height: 1rem;
- }
- @include disabled() {
- cursor: not-allowed;
- }
-}
-
-.button {
- @include button();
-}
-
-.button--primary {
- @include clickable($text-color-1, $main-color-1);
-}
-
-.button--secondary {
- @include clickable($text-color-3, $main-color-3);
-}
-
-.button--success {
- @include clickable($text-color-function, $green);
-}
-
-.button--info {
- @include clickable($text-color-function, $blue);
-}
-
-.button--warning {
- @include clickable($text-color-function, $yellow);
-}
-
-.button--error {
- @include clickable($text-color-function, $red);
-}
-
-.button--theme-light {
- @include clickable($text-color-theme-dark, $main-color-theme-light);
-}
-
-.button--theme-dark {
- @include clickable($text-color-theme-light, $main-color-theme-dark);
-}
-
-.button--outline-primary {
- color: $main-color-1;
- border: 1px solid $main-color-1;
- @include clickable($main-color-1, transparent, $text-color-1, $main-color-1);
-}
-
-.button--outline-secondary {
- color: $main-color-3;
- border: 1px solid $main-color-3;
- @include clickable($main-color-3, transparent, $text-color-3, $main-color-3);
-}
-
-.button--outline-success {
- color: $green;
- border: 1px solid $green;
- @include clickable($green, transparent, $text-color-function, $green);
-}
-
-.button--outline-info {
- color: $blue;
- border: 1px solid $blue;
- @include clickable($blue, transparent, $text-color-function, $blue);
-}
-
-.button--outline-warning {
- color: $yellow;
- border: 1px solid $yellow;
- @include clickable($yellow, transparent, $text-color-function, $yellow);
-}
-
-.button--outline-error {
- color: $red;
- border: 1px solid $red;
- @include clickable($red, transparent, $text-color-function, $red);
-}
-
-.button--outline-theme-light {
- color: $main-color-theme-light;
- border: 1px solid $main-color-theme-light;
- @include clickable($main-color-theme-light, transparent, $text-color-theme-dark, $main-color-theme-light);
-}
-
-.button--outline-theme-dark {
- color: $main-color-theme-dark;
- border: 1px solid $main-color-theme-dark;
- @include clickable($main-color-theme-dark, transparent, $text-color-theme-light, $main-color-theme-dark);
-}
-
-.button--pill {
- border-radius: map-get($button, pill-radius);
- @extend .button--md;
-}
-
-.button--rounded {
- border-radius: map-get($base, border-radius);
- @extend .button--md;
-}
-
-.button--circle {
- @include inline-flex();
- @include justify-content(center);
- @include align-items(center);
- border-radius: 50%;
- @extend .button--md;
-}
-
-.button--md {
- padding: map-get($button, padding-y) map-get($button, padding-x);
- font-size: map-get($base, font-size);
- &.button--circle {
- width: map-get($button, circle-diameter);
- height: map-get($button, circle-diameter);
- }
-}
-
-.button--xs {
- padding: map-get($button, padding-y-xs) map-get($button, padding-x-xs);
- font-size: map-get($base, font-size-xs);
- &.button--circle {
- width: map-get($button, circle-diameter-xs);
- height: map-get($button, circle-diameter-xs);
- }
-}
-
-.button--sm {
- padding: map-get($button, padding-y-sm) map-get($button, padding-x-sm);
- font-size: map-get($base, font-size-sm);
- &.button--circle {
- width: map-get($button, circle-diameter-sm);
- height: map-get($button, circle-diameter-sm);
- }
-}
-
-.button--lg {
- padding: map-get($button, padding-y-lg) map-get($button, padding-x-lg);
- font-size: map-get($base, font-size-lg);
- &.button--circle {
- width: map-get($button, circle-diameter-lg);
- height: map-get($button, circle-diameter-lg);
- }
-}
-
-.button--xl {
- padding: map-get($button, padding-y-xl) map-get($button, padding-x-xl);
- font-size: map-get($base, font-size-xl);
- &.button--circle {
- width: map-get($button, circle-diameter-xl);
- height: map-get($button, circle-diameter-xl);
- }
-}
diff --git a/_sass/common/components/_card.scss b/_sass/common/components/_card.scss
deleted file mode 100644
index 2431461..0000000
--- a/_sass/common/components/_card.scss
+++ /dev/null
@@ -1,103 +0,0 @@
-
-.card {
- max-width: 18rem;
- border-radius: map-get($base, border-radius);
- @include box-shadow();
- @include transition(box-shadow map-get($animation, duration) map-get($animation, timing-function));
- & > :first-child {
- border-top-left-radius: map-get($base, border-radius);
- border-top-right-radius: map-get($base, border-radius);
- }
- & > :last-child {
- border-bottom-right-radius: map-get($base, border-radius);
- border-bottom-left-radius: map-get($base, border-radius);
- }
-}
-
-.cell {
- & > .card {
- max-width: unset;
- }
-}
-
-.card__content {
- padding: map-get($spacers, 2) map-get($spacers, 3);
-}
-
-.card__header, .card__header > a {
- @include link-colors($text-color-d, $main-color-1);
-}
-
-.card__image {
- position: relative;
- width: 100%;
- & > img {
- display: block;
- width: 100%;
- height: auto;
- border-radius: inherit;
- }
- & > .overlay {
- position: absolute;
- width: 100%;
- max-height: 100%;
- padding: map-get($spacers, 2);
- a {
- text-decoration: none !important;
- }
- }
- & > .overlay, & > .overlay--top {
- top: 0;
- bottom: auto;
- border-top-left-radius: inherit;
- border-top-right-radius: inherit;
- border-bottom-right-radius: 0;
- border-bottom-left-radius: 0;
- }
- & > .overlay--bottom {
- top: auto;
- bottom: 0;
- border-top-left-radius: 0;
- border-top-right-radius: 0;
- border-bottom-right-radius: inherit;
- border-bottom-left-radius: inherit;
- }
- & > .overlay--full {
- top: 0;
- bottom: 0;
- }
- & > .overlay, & > .overlay--dark {
- @extend .text--dark;
- background-color: rgba(#000, .4);
- }
- & > .overlay--light {
- @extend .text--light;
- background: rgba(#fff, .4);
- }
-}
-
-.card--clickable {
- cursor: pointer;
- @include hover() {
- @include box-shadow(2);
- .card__image {
- & > img {
- height: inherit;
- }
- }
- }
- @include transition(map-get($clickable, transition));
-}
-
-.card--flat {
- @include box-shadow(0);
- .card__image {
- & > img {
- border-radius: map-get($base, border-radius);
- }
- }
- .card__content {
- padding-top: 0;
- padding-left: 0;
- }
-}
diff --git a/_sass/common/components/_gallery.scss b/_sass/common/components/_gallery.scss
deleted file mode 100644
index 689eeae..0000000
--- a/_sass/common/components/_gallery.scss
+++ /dev/null
@@ -1,21 +0,0 @@
-.gallery {
- height: 100%;
- @include flexbox();
- @include flex-direction(column);
-}
-
-.gallery__swiper {
- @include flex(1);
-}
-
-.gallery-item {
- @include flexbox();
- @include align-items(center);
- @include justify-content(center);
- height: 100%;
- overflow: hidden;
-}
-
-.gallery-item__main {
- display: block;
-}
diff --git a/_sass/common/components/_hero.scss b/_sass/common/components/_hero.scss
deleted file mode 100644
index 81a72cc..0000000
--- a/_sass/common/components/_hero.scss
+++ /dev/null
@@ -1,70 +0,0 @@
-.hero {
- background-position: 50% 50%;
- @include flexbox();
- @include flex-direction(column);
- @include justify-content(center);
- h1 { font-size: map-get($base, font-size-h1-xl); }
- h2 { font-size: map-get($base, font-size-h2-xl); }
- h3 { font-size: map-get($base, font-size-h3-xl); }
- h4 { font-size: map-get($base, font-size-h4-xl); }
- h5 { font-size: map-get($base, font-size-h5-xl); }
- h6 { font-size: map-get($base, font-size-h6-xl); }
- p { font-size: map-get($base, font-size-xl); }
- @include media-breakpoint-down(lg) {
- h1 { font-size: map-get($base, font-size-h1-lg); }
- h2 { font-size: map-get($base, font-size-h2-lg); }
- h3 { font-size: map-get($base, font-size-h3-lg); }
- h4 { font-size: map-get($base, font-size-h4-lg); }
- h5 { font-size: map-get($base, font-size-h5-lg); }
- h6 { font-size: map-get($base, font-size-h6-lg); }
- p { font-size: map-get($base, font-size-lg); }
- }
- @include media-breakpoint-down(md) {
- h1 { font-size: map-get($base, font-size-h1-sm); }
- h2 { font-size: map-get($base, font-size-h2-sm); }
- h3 { font-size: map-get($base, font-size-h3-sm); }
- h4 { font-size: map-get($base, font-size-h4-sm); }
- h5 { font-size: map-get($base, font-size-h5-sm); }
- h6 { font-size: map-get($base, font-size-h6-sm); }
- p { font-size: map-get($base, font-size); }
- }
- background-size: cover;
-
-}
-
-.hero--center {
- text-align: center;
- .menu {
- @extend .menu--center;
- }
-}
-
-.hero--light {
- @extend .text--light;
-}
-
-.hero--dark {
- @extend .text--dark;
-}
-
-.hero__content {
- margin: map-get($spacers, 5);
- @include media-breakpoint-down(lg) {
- margin: map-get($spacers, 5) map-get($spacers, 4);
- }
- @include media-breakpoint-down(md) {
- margin: map-get($spacers, 4) map-get($spacers, 3);
- }
-}
-
-.heros {
- & > .hero {
- margin: map-get($spacers, 5);
- @include media-breakpoint-down(lg) {
- margin: map-get($spacers, 3);
- }
- @include media-breakpoint-down(md) {
- margin: map-get($spacers, 2) 0;
- }
- }
-}
diff --git a/_sass/common/components/_image.scss b/_sass/common/components/_image.scss
deleted file mode 100644
index 9d1a220..0000000
--- a/_sass/common/components/_image.scss
+++ /dev/null
@@ -1,19 +0,0 @@
-.image {
- max-width: 100%;
- @extend .image--md;
-}
-.image--md {
- width: map-get($image, width);
-}
-.image--xl {
- width: map-get($image, width-xl);
-}
-.image--lg {
- width: map-get($image, width-lg);
-}
-.image--sm {
- width: map-get($image, width-sm);
-}
-.image--xs {
- width: map-get($image, width-xs);
-}
diff --git a/_sass/common/components/_item.scss b/_sass/common/components/_item.scss
deleted file mode 100644
index a1a9fd0..0000000
--- a/_sass/common/components/_item.scss
+++ /dev/null
@@ -1,100 +0,0 @@
-.item {
- @include flexbox();
- @include media-breakpoint-down(md) {
- @include flex-direction(column);
- }
-}
-
-.item__image {
- margin-right: map-get($spacers, 3);
- & + .item__content {
- & > :first-child {
- margin-top: 0;
- & > :first-child {
- margin-top: 0;
- }
- }
- }
- @include media-breakpoint-down(md) {
- margin-right: 0;
- }
-}
-
-.item__content {
- @include flex(1);
- min-width: 0;
-}
-
-a > .item__header, a.item__header, .item__header > a {
- @include link-colors($text-color-d, $main-color-1);
-}
-
-.item__meta {
- color: $text-color-l;
-}
-
-.item__description {
- &, .article__content {
- font-size: map-get($base, font-size-sm);
- line-height: map-get($base, line-height);
- @include block-elements() {
- margin-top: map-get($spacers, 2);
- margin-bottom: map-get($spacers, 2);
- }
- @include heading-elements() {
- margin-top: map-get($spacers, 3);
- }
- h1, h2, h3 {
- color: $text-color;
- }
- h1, h2 {
- padding: 0;
- border: none;
- }
- h1 {
- font-size: map-get($base, font-size-h1-xs);
- }
- h2 {
- font-size: map-get($base, font-size-h2-xs);
- }
- h3 {
- font-size: map-get($base, font-size-h3-xs);
- }
- h4 {
- font-size: map-get($base, font-size-h4-xs);
- }
- h5 {
- font-size: map-get($base, font-size-h5-xs);
- }
- h6 {
- font-size: map-get($base, font-size-h6-xs);
- }
- img {
- max-height: 32rem;
- @include media-breakpoint-down(md) {
- max-height: 14rem;
- }
- }
- }
-}
-
-.items {
- & > .item {
- &:not(:last-child) {
- margin-bottom: map-get($spacers, 2);
- }
- }
-}
-
-.items--divided {
- & > .item {
- &:not(:first-child) {
- padding-top: map-get($spacers, 4);
- }
- &:not(:last-child) {
- padding-bottom: map-get($spacers, 4);
- @include split-line(bottom);
- }
- list-style-type: none;
- }
-}
diff --git a/_sass/common/components/_menu.scss b/_sass/common/components/_menu.scss
deleted file mode 100644
index 222676a..0000000
--- a/_sass/common/components/_menu.scss
+++ /dev/null
@@ -1,67 +0,0 @@
-@mixin menu-direction($direction: default) {
- @if $direction == default {
- $direction: "horizontal";
- }
- @if $direction == "vertical" {
- @include flex-direction(column);
- } @else {
- @include flex-direction(row);
- }
-}
-
-@mixin menu($horizontal-spacer: default, $horizontal-item-vertical-spacer: default, $wrap: default) {
- @if $horizontal-spacer == default {
- $horizontal-spacer: map-get($menu, horizontal-spacer);
- }
- @if $horizontal-item-vertical-spacer == default {
- $horizontal-item-vertical-spacer: map-get($menu, horizontal-item-vertical-spacer);
- }
- @if $wrap == default {
- $wrap: wrap;
- }
- @include flexbox();
- @include flex-wrap($wrap);
- margin-top: 0;
- margin-bottom: 0;
- & > li {
- @if $horizontal-item-vertical-spacer {
- margin-top: map-get($spacers, $horizontal-item-vertical-spacer);
- margin-bottom: map-get($spacers, $horizontal-item-vertical-spacer);
- }
- margin-right: map-get($spacers, $horizontal-spacer);
- list-style-type: none;
- &:last-child {
- margin-right: 0;
- }
- }
-}
-
-.menu {
- @include menu();
- @include menu-direction();
- @include align-items(center);
-}
-
-.menu--vertical {
- @include menu-direction("vertical");
- @include align-items(normal);
- & > li {
- margin-right: 0;
- }
-}
-
-.menu--inline {
- @include inline-flex();
-}
-
-.menu--center {
- @include justify-content(center);
-}
-
-.menu--nowrap {
- @include flex-wrap(nowrap);
-}
-
-.menu--grow {
- @include flex-grow(1);
-}
diff --git a/_sass/common/components/_modal.scss b/_sass/common/components/_modal.scss
deleted file mode 100644
index cd71628..0000000
--- a/_sass/common/components/_modal.scss
+++ /dev/null
@@ -1,39 +0,0 @@
-@mixin modal($z-index: default, $color: default, $background-color: default) {
- @if $z-index == default {
- $z-index: map-get($z-indexes, modal);
- }
- @if $color == default {
- $color: $text-color-theme-dark;
- }
- @if $background-color == default {
- $background-color: $mask-color;
- }
- position: fixed;
- top: 0;
- left: 0;
- z-index: $z-index;
- width: 100%;
- height: 100%;
- color: $color;
- touch-action: none;
- background-color: $background-color;
- opacity: 0;
- @include transform(translate(100%, 0));
- @include transition(#{opacity map-get($animation, duration) map-get($animation, timing-function),
- transform 0s map-get($animation, duration) map-get($animation, timing-function)});
-}
-@mixin modal--show() {
- opacity: 1;
- @include transform(translate(0, 0));
- @include transition(#{opacity map-get($animation, duration) map-get($animation, timing-function)});
-}
-
-.modal {
- @include modal();
-}
-.modal--show {
- @include modal--show();
-}
-.modal--overflow {
- @include overflow(auto);
-}
diff --git a/_sass/common/components/_swiper.scss b/_sass/common/components/_swiper.scss
deleted file mode 100644
index 3493a62..0000000
--- a/_sass/common/components/_swiper.scss
+++ /dev/null
@@ -1,48 +0,0 @@
-.swiper {
- position: relative;
- @include overflow(hidden);
-}
-
-.swiper__wrapper, .swiper__slide {
- width: 100%;
- height: 100%;
-}
-
-.swiper__wrapper {
- @include flexbox();
-}
-
-.swiper__wrapper--animation {
- @include transition(transform map-get($animation, duration) map-get($animation, timing-function));
-}
-
-.swiper__slide {
- @include flex-shrink(0);
- & > img {
- max-width: 100%;
- }
-}
-
-.swiper__button {
- position: absolute;
- top: 50%;
- @extend .button, .button--circle;
- @include transform(translate(0, -50%));
- @include clickable($text-color-d, rgba($main-color-3, .4));
-}
-
-.swiper--light .swiper__button {
- @include clickable($text-color-theme-light, rgba($main-color-theme-dark, .4));
-}
-
-.swiper--dark .swiper__button {
- @include clickable($text-color-theme-dark, rgba($main-color-theme-light, .4));
-}
-
-.swiper__button--prev {
- left: 10px;
-}
-
-.swiper__button--next {
- right: 10px;
-}
diff --git a/_sass/common/components/_toc.scss b/_sass/common/components/_toc.scss
deleted file mode 100644
index 9fd1421..0000000
--- a/_sass/common/components/_toc.scss
+++ /dev/null
@@ -1,124 +0,0 @@
-ul.toc {
- display: block;
- margin: 0;
- color: $text-color;
- list-style-type: none;
- & > li {
- margin: map-get($spacers, 1) / 2 0;
- a {
- display: inline-block;
- margin: map-get($spacers, 1) / 4 0;
- text-decoration: none !important;
- }
- }
- .toc-h1,
- .toc-h2,
- .toc-h3,
- .toc-h4,
- .toc-h5,
- .toc-h6 {
- a {
- @include link-colors($text-color, $main-color-1);
- }
- &.active {
- a {
- @include link-colors($main-color-1);
- }
- }
- }
-
- .toc-h2,
- .toc-h3,
- .toc-h4,
- .toc-h5,
- .toc-h6 {
- &, a {
- font-size: map-get($base, font-size-xs);
- font-weight: map-get($base, font-weight);
- line-height: map-get($base, line-height-xs);
- }
- }
- .toc-h1 {
- @include split-line(bottom);
- padding: map-get($spacers, 2) 0 map-get($spacers, 1) 0;
- margin-bottom: map-get($spacers, 2);
- color: $text-color-d;
- &, a {
- font-size: map-get($base, font-size-sm);
- font-weight: map-get($base, font-weight-bold);
- line-height: map-get($base, line-height-sm);
- }
- a {
- @include link-colors($text-color-d, $main-color-1);
- }
- }
- .toc-h2 {
- &, a {
- font-weight: map-get($base, font-weight-bold);
- }
- }
- .toc-h3 {
- margin-left: map-get($spacers, 3);
- }
- .toc-h4 {
- margin-left: map-get($spacers, 3) * 2;
- }
- .toc-h5,
- .toc-h6 {
- margin-left: map-get($spacers, 3) * 3;
- }
- .toc-h6 {
- color: $text-color-l;
- a {
- @include link-colors($text-color-l, $main-color-1);
- }
- }
-}
-
-ul.toc--ellipsis {
- & > li {
- @include overflow(hidden);
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-}
-
-ul.toc--navigator {
- & > li {
- a {
- padding-left: map-get($spacers, 2);
- margin: map-get($spacers, 1) 0;
- }
- &.active {
- a {
- margin-left: -4px;
- @include split-line(left, 4px, $main-color-1);
- }
- }
- }
- .toc-h2,
- .toc-h3,
- .toc-h4 {
- color: $text-color-l;
- a {
- @include link-colors($text-color-l);
- }
- }
- .toc-h1 {
- &, a {
- font-size: map-get($base, font-size);
- line-height: map-get($base, line-height);
- }
- color: $text-color;
- a {
- @include link-colors($text-color-d);
- }
- }
- .toc-h2 {
- &, a {
- font-size: map-get($base, font-size-sm);
- font-weight: map-get($base, font-weight-bold);
- line-height: map-get($base, line-height-sm);
- }
- }
-}
diff --git a/_sass/components/_article-content.scss b/_sass/components/_article-content.scss
deleted file mode 100644
index 6dbda0d..0000000
--- a/_sass/components/_article-content.scss
+++ /dev/null
@@ -1,221 +0,0 @@
-.article__content {
- line-height: map-get($base, line-height-lg);
- word-wrap: break-word;
- @media print {
- line-height: map-get($base, line-height);
- }
- @include block-elements() {
- margin: map-get($spacers, 3) 0;
- @media print {
- margin: map-get($spacers, 2) 0;
- }
- }
- @include heading-elements() {
- position: relative;
- margin-top: map-get($spacers, 4);
- @media print {
- margin-top: map-get($spacers, 3);
- }
- & > .anchor {
- @include link-colors($border-color, $main-color-1);
- margin-left: map-get($spacers, 1);
- text-decoration: none;
- visibility: hidden;
- opacity: 0;
- & > i {
- font-size: map-get($base, font-size-sm);
- }
- }
- @include hover() {
- & > .anchor {
- cursor: pointer;
- visibility: visible;
- opacity: 1;
- }
- }
- }
- h1,
- h2 {
- @include split-line(bottom);
- }
- hr {
- border: none;
- @include horizontal-rules();
- }
- blockquote {
- padding-left: map-get($spacers, 3);
- font-size: map-get($base, font-size-sm);
- color: $text-color-l;
- @include split-line(left, 4px, $border-color);
- p {
- margin: map-get($spacers, 2) 0;
- }
- & > :last-child {
- margin-bottom: 0;
- }
- }
- img:not(.emoji) {
- max-width: 100%;
- vertical-align: middle;
- }
- .emoji {
- display: inline-block;
- width: map-get($base, line-height-lg) * .7rem;
- height: map-get($base, line-height-lg) * .7rem;
- vertical-align: text-bottom;
- }
- .footnotes {
- @include split-line();
- margin-top: map-get($spacers, 5);
- @media print {
- margin-top: map-get($spacers, 2) * 2;
- }
- }
- code {
- padding: map-get($spacers, 1) map-get($spacers, 2);
- background-color: $text-background-color;
- border-radius: map-get($base, border-radius);
- span {
- padding: 0;
- margin: 0;
- }
- }
- pre {
- @include overflow(auto);
- & > code {
- padding: 0;
- word-wrap: normal;
- background-color: transparent;
- &.language-mermaid, &.language-chart {
- svg {
- width: 100%;
- }
- display: none;
- &[data-processed] {
- display: block;
- }
- }
- }
- }
- .highlighter-rouge > .highlight, figure.highlight {
- & > pre {
- padding: map-get($spacers, 3) 0 map-get($spacers, 3) map-get($spacers, 3);
- margin: 0;
- background-color: $text-background-color;
- border-radius: map-get($base, border-radius);
- & > code {
- display: block;
- }
- }
- }
- figure.highlight {
- &::before {
- display: block;
- padding: map-get($spacers, 2) map-get($spacers, 3) map-get($spacers, 2) 0;
- font-weight: map-get($base, font-weight-bold);
- color: $decorate-color;
- text-align: right;
- text-transform: uppercase;
- content: attr(data-lang);
- background-color: $text-background-color;
- border-top-left-radius: map-get($base, border-radius);
- border-top-right-radius: map-get($base, border-radius);
- }
- & > pre {
- padding-top: 0;
- border-top-left-radius: 0;
- border-top-right-radius: 0;
- & > code {
- & > .rouge-table {
- width: auto;
- margin: 0 0 #{- map-get($spacers, 3)} #{- map-get($spacers, 3)};
- tbody, tr, td {
- padding-top: 0;
- padding-bottom: 0;
- border: none;
- }
- & > tbody {
- @include flexbox;
- & > tr {
- width: 100%;
- @include flexbox;
- & > .code {
- padding: 0 0 map-get($spacers, 3) map-get($spacers, 2);
- @include overflow(auto);
- }
- }
- }
- tbody td {
- &.gl {
- padding-left: map-get($spacers, 3);
- }
- & > pre {
- display: block;
- margin: 0;
- border-radius: 0;
- @include overflow(auto);
- &.lineno {
- color: $text-color-l;
- @include user-select(none);
- }
- }
- }
- }
- }
- }
- }
- ul, ol {
- margin-left: map-get($spacers, 4);
- ul, ol {
- margin-top: 0;
- margin-bottom: 0;
- }
- li {
- p {
- margin: map-get($spacers, 2);
- @media print {
- margin: map-get($spacers, 1);
- }
- }
- }
- }
- dl {
- dt, dd {
- p {
- margin: map-get($spacers, 2);
- @media print {
- margin: map-get($spacers, 1);
- }
- }
- }
- dt {
- font-weight: map-get($base, font-weight-bold);
- }
- dd {
- margin-left: 2rem;
- }
- }
- ul.task-list {
- margin-left: 0;
- list-style-type: none;
- ul, ol {
- margin-left: map-get($spacers, 4);
- }
- }
- table {
- display: block;
- width: 100%;
- border-collapse: collapse;
- @include overflow(auto);
- thead, tfoot {
- background-color: $text-background-color;
- }
- th, td {
- padding: map-get($spacers, 2);
- border: 1px solid $border-color-l;
- }
- th {
- font-weight: map-get($base, font-weight-bold);
- }
- }
-}
diff --git a/_sass/components/_article-footer.scss b/_sass/components/_article-footer.scss
deleted file mode 100644
index 575bc8d..0000000
--- a/_sass/components/_article-footer.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-.article__footer {
- margin: map-get($spacers, 4) 0;
- font-size: map-get($base, font-size-sm);
-}
-
-.article__license, .article__subscribe {
- a {
- @include link-colors($text-color, $main-color-1);
- }
-}
-
-.article__license {
- color: $text-color-l;
- img {
- height: map-get($base, font-size) * 1.6;
- }
-}
diff --git a/_sass/components/_article-header.scss b/_sass/components/_article-header.scss
deleted file mode 100644
index 002cc8c..0000000
--- a/_sass/components/_article-header.scss
+++ /dev/null
@@ -1,50 +0,0 @@
-.article__header {
- margin-top: map-get($spacers, 5);
- margin-bottom: map-get($spacers, 4);
- @include media-breakpoint-down(md) {
- margin-top: map-get($spacers, 4);
- }
- header, h1 {
- display: inline;
- }
- h1 {
- word-wrap: break-word;
- }
- .split-space {
- @include user-select(none);
- }
- .edit-on-github {
- text-decoration: none !important;
- }
-}
-
-.article__header--overlay {
- .overlay {
- min-height: 36rem;
- padding-top: map-get($spacers, 5) * 2;
- padding-bottom: map-get($spacers, 5) * 2;
- @include media-breakpoint-down(md) {
- min-height: 29rem;
- padding-top: map-get($spacers, 5);
- padding-bottom: map-get($spacers, 5);
- }
- }
- .overlay__excerpt {
- font-size: map-get($base, font-size-h3-xl);
- @include media-breakpoint-down(lg) {
- font-size: map-get($base, font-size-h3-lg);
- }
- @include media-breakpoint-down(md) {
- font-size: map-get($base, font-size-h3-sm);
- }
- font-weight: map-get($base, font-weight-bold);
- }
-
- .article__header {
- margin-top: 0;
- }
-}
-
-.article__header--cover {
- width: 100%;
-}
diff --git a/_sass/components/_article-info.scss b/_sass/components/_article-info.scss
deleted file mode 100644
index bebf9b5..0000000
--- a/_sass/components/_article-info.scss
+++ /dev/null
@@ -1,25 +0,0 @@
-.article__info {
- font-size: map-get($base, font-size-sm);
- color: $text-color-l;
- .left-col {
- float: left;
- @include media-breakpoint-down(md) {
- float: none;
- }
- }
- .right-col {
- float: right;
- margin-left: map-get($button, padding-x-sm);
- @include media-breakpoint-down(md) {
- float: none;
- }
- & > li {
- &:not(:last-child) {
- @include split-line(right, default, $text-color-l);
- padding-right: map-get($spacers, 2);
- margin-right: map-get($spacers, 2);
- line-height: map-get($base, line-height-xs);
- }
- }
- }
-}
diff --git a/_sass/components/_article-list.scss b/_sass/components/_article-list.scss
deleted file mode 100644
index c59550d..0000000
--- a/_sass/components/_article-list.scss
+++ /dev/null
@@ -1,18 +0,0 @@
-.article-list {
- .item__meta {
- padding: 0 map-get($spacers, 3) 0 0;
- font-family: map-get($base, font-family-code);
- font-size: map-get($base, font-size-sm);
- white-space: nowrap;
- }
- &.grid--sm {
- .card__header {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
-}
-.article-list__group-header {
- margin-top: map-get($spacers, 3);
-}
diff --git a/_sass/components/_author-links.scss b/_sass/components/_author-links.scss
deleted file mode 100644
index efe09c2..0000000
--- a/_sass/components/_author-links.scss
+++ /dev/null
@@ -1,43 +0,0 @@
-.author-links {
- & > ul {
- margin: 0;
- & > li > {
- .mail-button {
- @include clickable($text-color-1, $mail-color);
- }
- .facebook-button {
- @include clickable($text-color-1, $facebook-color);
- }
- .twitter-button {
- @include clickable($text-color-1, $twitter-color);
- }
- .weibo-button {
- @include clickable($text-color-1, $weibo-color);
- }
- .googlepluse-button {
- @include clickable($text-color-1, $google-plus-color);
- }
- .telegram-button {
- @include clickable($text-color-1, $telegram-color);
- }
- .medium-button {
- @include clickable($text-color-1, $medium-color);
- }
- .zhihu-button {
- @include clickable($text-color-1, $zhihu-color);
- }
- .douban-button {
- @include clickable($text-color-1, $douban-color);
- }
- .linkedin-button {
- @include clickable($text-color-1, $linkedin-color);
- }
- .github-button {
- @include clickable($text-color-1, $github-color);
- }
- .npm-button {
- @include clickable($text-color-1, $npm-color);
- }
- }
- }
-}
diff --git a/_sass/components/_author-profile.scss b/_sass/components/_author-profile.scss
deleted file mode 100644
index b506715..0000000
--- a/_sass/components/_author-profile.scss
+++ /dev/null
@@ -1,26 +0,0 @@
-.author-profile {
- max-width: 25rem;
- padding: map-get($spacers, 2) map-get($spacers, 3);
- margin: map-get($spacers, 4) 0;
- font-size: map-get($base, font-size-sm);
- background-color: $text-background-color;
- @include media-breakpoint-down(md) {
- text-align: center;
- }
-}
-.author-profile__avatar {
- width: 5rem;
- height: 5rem;
- margin-top: map-get($spacers, 2);
- border-radius: 50%;
-}
-.author-profile__name {
- font-size: map-get($base, font-size-lg);
- font-weight: map-get($base, font-weight-bold);
- a {
- @include link-colors($text-color, $main-color-1);
- }
-}
-.author-profile__links {
- @include overflow(auto);
-}
diff --git a/_sass/components/_extensions.scss b/_sass/components/_extensions.scss
deleted file mode 100644
index 7c83f75..0000000
--- a/_sass/components/_extensions.scss
+++ /dev/null
@@ -1,35 +0,0 @@
-.extensions {
- margin: map-get($spacers, 3) 0;
- @extend .d-print-none;
-}
-
-.extensions--video, .extensions--slide, .extensions--demo {
- position: relative;
- width: 100%;
- padding: 0;
- & > iframe {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- }
-}
-
-.extensions--video {
- padding-top: percentage(315 / 560);
-}
-
-.extensions--slide {
- padding-top: percentage(487 / 599);
-}
-
-.extensions--demo {
- min-height: 340px;
- padding-top: percentage(315 / 560);
-}
-
-.extensions--audio {
- display: block;
- max-width: 100% !important;
-}
diff --git a/_sass/components/_footer.scss b/_sass/components/_footer.scss
deleted file mode 100644
index 63ed8fe..0000000
--- a/_sass/components/_footer.scss
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * Site Info
- */
-
-.footer {
- @include flexbox();
- @include align-items(center);
- color: $footer-text-color;
- background: $footer-background;
- a {
- @include link-colors ($footer-text-color, $main-color-1);
- }
- .site-info {
- font-size: map-get($base, font-size-xs);
- text-align: center;
- .menu {
- line-height: map-get($base, line-height-xs);
- & > * {
- &:not(:last-child) {
- @include split-line(right, default, $footer-text-color);
- padding-right: map-get($spacers, 1);
- margin-right: map-get($spacers, 1);
- }
- }
- }
- }
-}
-.footer__author-links {
- @include overflow(auto);
- .author-links {
- text-align: center;
- }
-}
diff --git a/_sass/components/_header.scss b/_sass/components/_header.scss
deleted file mode 100644
index 44d108d..0000000
--- a/_sass/components/_header.scss
+++ /dev/null
@@ -1,123 +0,0 @@
-.header {
- background: $header-background;
- a {
- font-weight: map-get($base, font-weight);
- text-decoration: none !important;
- @include link-colors($header-text-color, $main-color-1);
- }
- .main {
- @include flexbox();
- @include media-breakpoint-down(md) {
- @include flex-direction(column);
- }
- }
-}
-
-.header--dark {
- @extend .text--dark;
- background: rgba(#000, .15);
- .navigation__item--active {
- &::after {
- @include split-line(bottom, 4px, $text-color-theme-dark);
- }
- }
-}
-
-.header--light {
- @extend .text--light;
- background: rgba(#fff, .15);
- .navigation__item--active {
- &::after {
- @include split-line(bottom, 4px, $text-color-theme-light);
- }
- }
-}
-
-.header__title {
- @include menu(3, 0);
- @include align-items(center);
- @include flex-wrap(nowrap);
- @include flex(1);
- height: map-get($layout, header-height);
- margin-right: map-get($spacers, 3);
- white-space: nowrap;
- @include media-breakpoint-down(md) {
- height: auto;
- margin-right: 0;
- }
- & > .header__brand {
- @include flex(1);
- @include media-breakpoint-down(md) {
- height: map-get($layout, header-height-sm);
- }
- }
- & > .search-button {
- display: none;
- margin-left: map-get($spacers, 2);
- @include media-breakpoint-down(md) {
- @include flexbox();
- }
- }
-}
-
-.header__brand {
- @include flexbox();
- @include align-items(center);
- & > svg {
- width: map-get($base, font-size-h4) * 1.6;
- height: map-get($base, font-size-h4) * 1.6;
- margin-right: map-get($spacers, 3);
- vertical-align: middle;
- @include media-breakpoint-down(md) {
- width: map-get($base, font-size-h4) * 1.2;
- height: map-get($base, font-size-h4) * 1.2;
- }
- }
- & > a {
- display: inline-block;
- font-size: map-get($base, font-size-h4);
- @include media-breakpoint-down(md) {
- font-size: map-get($base, font-size-h4-small);
- }
- }
-}
-
-.navigation {
- @include overflow(auto, "x");
- & > ul {
- height: map-get($layout, header-height);
- padding-bottom: 0;
- margin: 0;
- @include media-breakpoint-down(md) {
- padding-bottom: 4px;
- margin: -4px 0 0 0;
- }
- @include menu(3, 2, nowrap);
- @include align-items(center);
- @include media-breakpoint-down(md) {
- height: auto;
- }
- .search-button {
- @include media-breakpoint-down(md) {
- display: none;
- }
- }
- }
-}
-
-.navigation__item {
- &::after {
- display: block;
- margin-bottom: -4px;
- content: "";
- @include split-line(bottom, 4px, transparent);
- }
-}
-.navigation__item--active {
- a {
- @include link-colors($main-color-1, $main-color-1);
- }
- &::after {
- @include split-line(bottom, 4px, $main-color-1);
- }
-}
diff --git a/_sass/components/_lightbox.scss b/_sass/components/_lightbox.scss
deleted file mode 100644
index 4dad32b..0000000
--- a/_sass/components/_lightbox.scss
+++ /dev/null
@@ -1,7 +0,0 @@
-.popup-image {
- cursor: pointer;
- @include hover() {
- @include box-shadow(2);
- }
- @include transition(map-get($clickable, transition));
-}
diff --git a/_sass/components/_main.scss b/_sass/components/_main.scss
deleted file mode 100644
index 265c727..0000000
--- a/_sass/components/_main.scss
+++ /dev/null
@@ -1,28 +0,0 @@
-.main {
- width: 100%;
- max-width: map-get($layout, content-max-width);
- padding: 0 map-get($spacers, 5);
- margin: 0 auto;
- @include media-breakpoint-down(lg) {
- padding: 0 map-get($spacers, 4);
- }
- @include media-breakpoint-down(md) {
- padding: 0 map-get($spacers, 3);
- }
-}
-
-.has-aside {
- .main {
- max-width: map-get($layout, content-max-width) + map-get($layout, aside-width);
- @include media-breakpoint-down(lg) {
- max-width: map-get($layout, content-max-width);
- }
- }
-}
-
-.full-width {
- .main {
- width: 100%;
- max-width: 100%;
- }
-}
diff --git a/_sass/components/_search.scss b/_sass/components/_search.scss
deleted file mode 100644
index d28dabc..0000000
--- a/_sass/components/_search.scss
+++ /dev/null
@@ -1,186 +0,0 @@
-.search {
- @include overflow(auto);
-
-}
-.search--google-custom-search-engine {
- .main {
- padding-top: map-get($spacers, 4);
- padding-bottom: map-get($spacers, 4);
- @include media-breakpoint-down(md) {
- position: absolute;
- padding: 0;
- }
- }
-}
-
-.search__header {
- margin-top: map-get($spacers, 4);
- font-size: map-get($base, font-size-h1);
- font-weight: map-get($base, font-weight-bold);
- color: $text-color-d;
- .search--light & {
- color: $text-color-theme-light-d;
- }
- .search--dark & {
- color: $text-color-theme-dark-d;
- }
- @include media-breakpoint-down(md) {
- display: none;
- }
-}
-
-.search-bar {
- @include flexbox();
- margin: map-get($spacers, 3) 0 map-get($spacers, 4) 0;
-}
-
-.search-box {
- position: relative;
- width: 100%;
- max-width: 22rem;
- @include media-breakpoint-down(md) {
- width: 100%;
- max-width: none;
- }
- & > input {
- display: inline-block;
- width: 100%;
- height: $button-height-lg;
- padding: 0 2rem;
- margin: 0;
- line-height: 1 !important;
- color: $text-color;
- background-color: transparent;
- border: 2px solid $border-color;
- border-radius: map-get($button, pill-radius);
- -webkit-appearance: none; /* fix iOS don't display box-shadow properly */
- @include transition(box-shadow map-get($animation, duration) map-get($animation, timing-function));
- @include focus {
- box-shadow: 0 0 0 2px rgba($border-color, .4);
- }
- .search--light & {
- color: $text-color-theme-light;
- border-color: $text-color-theme-light;
- @include focus {
- box-shadow: 0 0 0 2px rgba($text-color-theme-light, .4);
- }
- }
- .search--dark & {
- color: $text-color-theme-dark;
- border-color: $text-color-theme-dark;
- @include focus {
- box-shadow: 0 0 0 2px rgba($text-color-theme-dark, .4);
- }
- }
- }
- & > .search-box__icon-search {
- color: $text-color-l;
- .search--light & {
- color: $text-color-theme-light-l;
- }
- .search--dark & {
- color: $text-color-theme-dark-l;
- }
- }
- & > .search-box__icon-clear {
- & > a {
- @include link-colors($text-color);
- .search--light & {
- @include link-colors($text-color-theme-light);
- }
- .search--dark & {
- @include link-colors($text-color-theme-dark);
- }
- cursor: pointer;
- }
- }
- & > .search-box__icon-search, & > .search-box__icon-clear {
- position: absolute;
- width: $button-height-lg;
- height: $button-height-lg;
- line-height: $button-height-lg;
- text-align: center;
- vertical-align: middle;
- }
- &.not-empty > .search-box__icon-clear {
- display: block;
- }
- & > .search-box__icon-clear {
- top: 0;
- right: 0;
- display: none;
- }
- & > .search-box__icon-search {
- top: 0;
- left: 0;
- }
-}
-
-.search__cancel {
- margin-left: map-get($spacers, 2);
- font-weight: map-get($base, font-weight-bold);
- white-space: nowrap;
-}
-
-.search-result {
- margin: map-get($spacers, 4) 0;
- font-size: map-get($base, font-size-sm);
- line-height: map-get($base, line-height-sm);
-}
-
-.search-result__header {
- margin: map-get($spacers, 3) 0 map-get($spacers, 2) 0;
- font-size: map-get($base, font-size-lg);
- font-weight: map-get($base, font-weight-bold);
- color: $text-color-l;
- text-transform: uppercase;
- .search--light & {
- color: $text-color-theme-light-l;
- }
- .search--dark & {
- color: $text-color-theme-dark-l;
- }
-}
-
-.search-result__item {
- list-style-type: none;
- a {
- padding: map-get($spacers, 1) map-get($spacers, 3);
- @include transition(none);
- @include clickable($text-color, transparent, $text-color-3, $main-color-3);
- .search--light & {
- @include clickable($text-color-theme-light, transparent, $text-color-theme-dark, $main-color-theme-light);
- }
- .search--dark & {
- @include clickable($text-color-theme-dark, transparent, $text-color-theme-light, $main-color-theme-dark);
- }
- }
- &.active {
- a {
- @include plain() {
- color: $text-color-3;
- background-color: $main-color-3;
- .search--light & {
- color: $text-color-theme-dark;
- background-color: $main-color-theme-light;
- }
- .search--dark & {
- color: $text-color-theme-light;
- background-color: $main-color-theme-dark;
- }
- }
- @include active() {
- @include transition(map-get($clickable, transition));
- }
- }
- }
-}
-
-// google search
-.gsc-control-cse {
- *,
- ::before,
- ::after {
- box-sizing: initial;
- }
-}
diff --git a/_sass/components/_tags.scss b/_sass/components/_tags.scss
deleted file mode 100644
index 946b1b6..0000000
--- a/_sass/components/_tags.scss
+++ /dev/null
@@ -1,24 +0,0 @@
-.site-tags {
- .tag-button {
- @include clickable($text-color-3, $main-color-3, default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
- & > .tag-button__count {
- display: inline-block;
- margin-left: map-get($spacers, 1);
- font-size: map-get($base, font-size-xs);
- line-height: 1;
- vertical-align: top;
- }
- }
- .tag-button-1 {
- @include clickable($text-color-1, rgba($main-color-1, .4), default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
- }
- .tag-button-2 {
- @include clickable($text-color-1, rgba($main-color-1, .55), default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
- }
- .tag-button-3 {
- @include clickable($text-color-1, rgba($main-color-1, .7), default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
- }
- .tag-button-4 {
- @include clickable($text-color-1, rgba($main-color-1, .9), default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
- }
-}
diff --git a/_sass/custom.scss b/_sass/custom.scss
deleted file mode 100644
index aa7b944..0000000
--- a/_sass/custom.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-/* start custom scss snippet */
-
-/* end custom scss snippet */
diff --git a/_sass/layout/_404.scss b/_sass/layout/_404.scss
deleted file mode 100644
index e206f76..0000000
--- a/_sass/layout/_404.scss
+++ /dev/null
@@ -1,14 +0,0 @@
-.layout--404 {
- .sign {
- display: table;
- margin: map-get($spacers, 4) auto;
- margin-top: map-get($spacers, 5);
- h1 {
- font-size: map-get($base, font-size-xl) * 4;
- line-height: 1;
- }
- p {
- font-size: map-get($base, font-size-xl) * 1.2;
- }
- }
-}
diff --git a/_sass/layout/_archive.scss b/_sass/layout/_archive.scss
deleted file mode 100644
index 7dc417f..0000000
--- a/_sass/layout/_archive.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-.layout--archive {
- & > .layout--archive__result {
- margin: map-get($spacers, 4) 0;
- }
-}
diff --git a/_sass/layout/_article.scss b/_sass/layout/_article.scss
deleted file mode 100644
index dd83384..0000000
--- a/_sass/layout/_article.scss
+++ /dev/null
@@ -1,29 +0,0 @@
-.article__sharing {
- margin: map-get($spacers, 4) 0;
-}
-.article__section-navigator {
- padding-top: map-get($spacers, 3);
- margin: map-get($spacers, 4) 0 map-get($spacers, 3) 0;
- word-wrap: break-word;
- @include split-line(top, 4px);
- & > .previous, & > .next {
- width: 50%;
- & > span {
- font-weight: map-get($base, font-weight-bold);
- color: $text-color-l;
- }
- & > a {
- display: block;
- @include link-colors($text-color, $main-color-1);
- }
- }
- & > .previous {
- float: left;
- padding-right: map-get($spacers, 2);
- }
- & > .next {
- float: right;
- padding-left: map-get($spacers, 2);
- text-align: right;
- }
-}
diff --git a/_sass/layout/_articles.scss b/_sass/layout/_articles.scss
deleted file mode 100644
index 85f258c..0000000
--- a/_sass/layout/_articles.scss
+++ /dev/null
@@ -1,17 +0,0 @@
-.layout--articles {
- margin: map-get($spacers, 4) 0;
- margin-top: map-get($spacers, 5);
- @include media-breakpoint-down(md) {
- margin-top: map-get($spacers, 4);
- }
- .card__header {
- font-size: map-get($base, font-size);
- }
- .card__image {
- & > .overlay {
- &, .card__header {
- font-size: map-get($base, font-size-sm);
- }
- }
- }
-}
diff --git a/_sass/layout/_base.scss b/_sass/layout/_base.scss
deleted file mode 100644
index 6200ec5..0000000
--- a/_sass/layout/_base.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-.icon {
- display: block;
- > svg {
- display: block;
- }
-}
diff --git a/_sass/layout/_home.scss b/_sass/layout/_home.scss
deleted file mode 100644
index 298e6b9..0000000
--- a/_sass/layout/_home.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-.layout--home {
- .pagination {
- margin: map-get($spacers, 4) 0;
- }
- .pagination__menu {
- max-width: 100%;
- @include overflow(auto);
- }
- .pagination__omit {
- color: $text-color-l;
- }
- .items {
- margin-top: map-get($spacers, 4) * 1.5;
- }
-}
diff --git a/_sass/layout/_landing.scss b/_sass/layout/_landing.scss
deleted file mode 100644
index 752d4e7..0000000
--- a/_sass/layout/_landing.scss
+++ /dev/null
@@ -1,23 +0,0 @@
-.layout--landing {
- .heros {
- max-width: map-get($layout, content-max-width) * 2;
- margin-right: auto;
- margin-left: auto;
- }
- .hero {
- img {
- display: block;
- width: 100%;
- margin: 0 auto;
- }
- }
- .hero__content {
- margin-bottom: 0;
- }
- .hero__cover {
- max-width: map-get($layout, content-max-width);
- }
- .hero__cover--full-width {
- max-width: none;
- }
-}
diff --git a/_sass/layout/_page.scss b/_sass/layout/_page.scss
deleted file mode 100644
index bb42331..0000000
--- a/_sass/layout/_page.scss
+++ /dev/null
@@ -1,165 +0,0 @@
-body,
-html,
-.root,
-.layout--page {
- height: 100%;
-}
-
-.layout--page {
- &.layout--page--sidebar {
- .page__viewport,
- .page__grid {
- height: 100%;
- }
- @include media-breakpoint-down(lg) {
- .page__main {
- @include overflow(unset);
- }
- }
- }
-}
-
-.page__main {
- height: 100%;
- color: $text-color;
- .col-aside {
- display: none;
- & > aside {
- position: absolute;
- width: map-get($layout, aside-width);
- @include overflow(hidden);
- }
- }
-}
-
-.page__main-inner {
- position: relative;
- @include flexbox();
- @include flex-direction(column);
- min-height: 100%;
- background-color: $background-color;
-}
-
-.page__content {
- @include flex(1);
- width: 100%;
- margin: 0 auto;
- @media print {
- padding-bottom: 0;
- }
-}
-.hide-footer {
- .page__content {
- padding-bottom: 0;
- }
-}
-
-.page__comments {
- margin: map-get($spacers, 4) 0;
-}
-
-.page__aside {
- .toc-aside {
- padding: map-get($spacers, 5) 0 map-get($spacers, 3) map-get($spacers, 5);
- }
-}
-
-.page__actions {
- position: fixed;
- bottom: map-get($spacers, 5);
- left: map-get($spacers, 3);
- z-index: map-get($z-indexes, actions);
- display: none;
-}
-
-.page__sidebar {
- z-index: map-get($z-indexes, sidebar);
- display: block;
- width: 80%;
- max-width: map-get($layout, sidebar-width);
- height: 100%;
- background-color: $background-color;
- @include split-line(right);
- @include transition(transform map-get($animation, duration));
- @include overflow(auto);
- .sidebar-toc {
- padding: map-get($spacers, 3) map-get($spacers, 3) map-get($spacers, 4) map-get($spacers, 4);
- }
-}
-.sidebar-button {
- @include clickable($text-color-d, rgba($main-color-3, .75));
-}
-
-.page__mask {
- @include modal(map-get($z-indexes, mask));
- cursor: pointer;
-}
-.layout--page--sidebar {
- .page__main {
- @include overflow(auto);
- @media print {
- @include overflow(unset);
- }
- }
-}
-
-.has-aside {
- .col-aside {
- position: relative;
- display: block;
- width: map-get($layout, aside-width);
- & > aside {
- &.fixed {
- position: fixed;
- -webkit-font-smoothing: subpixel-antialiased;
- }
- }
- @include media-breakpoint-down(lg) {
- display: none;
- }
- }
-}
-
-@include media-breakpoint-down(lg) {
- .page__sidebar {
- position: fixed;
- @include transform(translate(- map-get($layout, sidebar-width), 0));
- }
-
- .page__actions {
- display: block;
- }
-
- .show-sidebar {
- .page__actions {
- visibility: hidden;
- }
- .page__sidebar {
- @include transform(translate(0));
- }
- .page__mask {
- @include modal--show();
- }
- }
-}
-
-.hero--light {
- .article__info {
- color: $text-color-theme-light;
- }
-}
-.hero--dark {
- .article__info {
- color: $text-color-theme-dark;
- }
-}
-
-.page__main--immersive {
- .page__header {
- position: absolute;
- width: 100%;
- }
- .hero__content {
- padding-top: map-get($layout, header-height);
- }
-}
diff --git a/_sass/skins/_chocolate.scss b/_sass/skins/_chocolate.scss
deleted file mode 100644
index b2098d5..0000000
--- a/_sass/skins/_chocolate.scss
+++ /dev/null
@@ -1,74 +0,0 @@
-///
-// Skin: Chocolate
-// Author: Tian Qi
-// Email: kitian616@outlook.com
-///
-
-// main colors
-$main-color-1: #563a20;
-$text-color-1: rgba(#fff, .85);
-
-$main-color-2: #8a2827;
-$text-color-2: rgba(#fff, .85);
-
-$main-color-3: #b49b92;
-$text-color-3: rgba(#fff, .85);
-
-$main-color-theme-light: rgba(#000, .9);
-$main-color-theme-dark: rgba(#fff, .9);
-
-// page background
-$background-color: #d2c2bc;
-
-// text colors
-$text-color-theme-light-d: rgba(#000, .95);
-$text-color-theme-light: rgba(#000, .85);
-$text-color-theme-light-l: rgba(#000, .5);
-
-$text-color-theme-dark-d: #fff;
-$text-color-theme-dark: rgba(#fff, .95);
-$text-color-theme-dark-l: rgba(#fff, .85);
-
-$text-color-d: $text-color-theme-light-d;
-$text-color: $text-color-theme-light;
-$text-color-l: $text-color-theme-light-l;
-
-$text-background-color: rgba(#000, .05);
-
-// header and footer colors
-$header-text-color: $text-color-3;
-$header-background: $main-color-3;
-
-$footer-text-color: $text-color-3;
-$footer-background: $main-color-3;
-
-// border and shadow colors
-$border-color: $main-color-3;
-$border-color-l: mix(#000, $background-color, 10%);
-$decorate-color: rgba(#000, .1);
-$mask-color: rgba(#000, .9);
-$select-color: rgba($main-color-3, .5);
-
-// function colors
-$green: #5baa34;
-$blue: #1c7cd4;
-$yellow: #c9771f;
-$red: #da3d45;
-$text-color-function: rgba(#fff, .85);
-
-// logo colors
-$mail-color: #0072c5;
-$facebook-color: #4267b2;
-$twitter-color: #1da1f2;
-$weibo-color: #e6162d;
-$google-plus-color:#ea4335;
-$telegram-color: #32afed;
-$medium-color: #000;
-$zhihu-color: #0084ff;
-$douban-color: #42bd56;
-$linkedin-color: #1074af;
-$github-color: #000;
-$npm-color: #fff;
-
-// highlight colors
-@import "skins/highlight/tomorrow-night-eighties";
diff --git a/_sass/skins/_dark.scss b/_sass/skins/_dark.scss
deleted file mode 100644
index 7250a87..0000000
--- a/_sass/skins/_dark.scss
+++ /dev/null
@@ -1,74 +0,0 @@
-///
-// Skin: Dark
-// Author: Tian Qi
-// Email: kitian616@outlook.com
-///
-
-// main colors
-$main-color-1: #ff9500;
-$text-color-1: rgba(#fff, .8);
-
-$main-color-2: #ff006a;
-$text-color-2: rgba(#fff, .8);
-
-$main-color-3: #202020;
-$text-color-3: rgba(#fff, .8);
-
-$main-color-theme-light: rgba(#000, .8);
-$main-color-theme-dark: rgba(#fff, .8);
-
-// page background
-$background-color: #121212;
-
-// text colors
-$text-color-theme-light-d: #000;
-$text-color-theme-light: #222;
-$text-color-theme-light-l: #888;
-
-$text-color-theme-dark-d: rgba(#fff, .8);
-$text-color-theme-dark: rgba(#fff, .7);
-$text-color-theme-dark-l: rgba(#fff, .5);
-
-$text-color-d: $text-color-theme-dark-d;
-$text-color: $text-color-theme-dark;
-$text-color-l: $text-color-theme-dark-l;
-
-$text-background-color: rgba(#fff, .05);
-
-// header and footer colors
-$header-text-color: $text-color-3;
-$header-background: $main-color-3;
-
-$footer-text-color: $text-color-3;
-$footer-background: $main-color-3;
-
-// border and shadow colors
-$border-color: mix(#fff, $background-color, 20%);
-$border-color-l: mix(#fff, $background-color, 10%);
-$decorate-color: rgba(#fff, .1);
-$mask-color: rgba(#000, .9);
-$select-color: rgba($main-color-1, .5);
-
-// function colors
-$green: #5baa34;
-$blue: #1c7cd4;
-$yellow: #c9771f;
-$red: #da3d45;
-$text-color-function: rgba(#fff, .8);
-
-// logo colors
-$mail-color: #0072c5;
-$facebook-color: #4267b2;
-$twitter-color: #1da1f2;
-$weibo-color: #e6162d;
-$google-plus-color:#ea4335;
-$telegram-color: #32afed;
-$medium-color: #000;
-$zhihu-color: #0084ff;
-$douban-color: #42bd56;
-$linkedin-color: #1074af;
-$github-color: #000;
-$npm-color: #fff;
-
-// highlight colors
-@import "skins/highlight/tomorrow-night";
diff --git a/_sass/skins/_default.scss b/_sass/skins/_default.scss
deleted file mode 100644
index fc28935..0000000
--- a/_sass/skins/_default.scss
+++ /dev/null
@@ -1,74 +0,0 @@
-///
-// Skin: Default
-// Author: Tian Qi
-// Email: kitian616@outlook.com
-///
-
-// main colors
-$main-color-1: #fc4d50;
-$text-color-1: #fff;
-
-$main-color-2: #fca24d;
-$text-color-2: #fff;
-
-$main-color-3: #f2f2f2;
-$text-color-3: #333;
-
-$main-color-theme-light: rgba(#000, .9);
-$main-color-theme-dark: rgba(#fff, .9);
-
-// page background
-$background-color: #fff;
-
-// text colors
-$text-color-theme-light-d: #000;
-$text-color-theme-light: #222;
-$text-color-theme-light-l: #888;
-
-$text-color-theme-dark-d: #fff;
-$text-color-theme-dark: rgba(#fff, .95);
-$text-color-theme-dark-l: rgba(#fff, .85);
-
-$text-color-d: $text-color-theme-light-d;
-$text-color: $text-color-theme-light;
-$text-color-l: $text-color-theme-light-l;
-
-$text-background-color: rgba(#000, .05);
-
-// header and footer colors
-$header-text-color: $text-color-3;
-$header-background: $main-color-3;
-
-$footer-text-color: $text-color-3;
-$footer-background: $main-color-3;
-
-// border and shadow colors
-$border-color: mix(#000, $background-color, 20%);
-$border-color-l: mix(#000, $background-color, 10%);
-$decorate-color: rgba(#000, .1);
-$mask-color: rgba(#000, .9);
-$select-color: rgba($main-color-1, .5);
-
-// function colors
-$green: #52c41a;
-$blue: #1890ff;
-$yellow: #fa8c16;
-$red: #f5222d;
-$text-color-function: #fff;
-
-// logo colors
-$mail-color: #0072c5;
-$facebook-color: #4267b2;
-$twitter-color: #1da1f2;
-$weibo-color: #e6162d;
-$google-plus-color:#ea4335;
-$telegram-color: #32afed;
-$medium-color: #000;
-$zhihu-color: #0084ff;
-$douban-color: #42bd56;
-$linkedin-color: #1074af;
-$github-color: #000;
-$npm-color: #fff;
-
-// highlight colors
-@import "skins/highlight/tomorrow";
diff --git a/_sass/skins/_forest.scss b/_sass/skins/_forest.scss
deleted file mode 100644
index df2c63a..0000000
--- a/_sass/skins/_forest.scss
+++ /dev/null
@@ -1,74 +0,0 @@
-///
-// Skin: Forest
-// Author: Tian Qi
-// Email: kitian616@outlook.com
-///
-
-// main colors
-$main-color-1: #bb6170;
-$text-color-1: #fff;
-
-$main-color-2: #f3c584;
-$text-color-2: #fff;
-
-$main-color-3: #7cc7bb;
-$text-color-3: #fff;
-
-$main-color-theme-light: rgba(#000, .9);
-$main-color-theme-dark: rgba(#fff, .9);
-
-// page background
-$background-color: #f8fcfb;
-
-// text colors
-$text-color-theme-light-d: #325f74;
-$text-color-theme-light: #3e758f;
-$text-color-theme-light-l: #619dbb;
-
-$text-color-theme-dark-d: #fff;
-$text-color-theme-dark: rgba(#fff, .95);
-$text-color-theme-dark-l: rgba(#fff, .85);
-
-$text-color-d: $text-color-theme-light-d;
-$text-color: $text-color-theme-light;
-$text-color-l: $text-color-theme-light-l;
-
-$text-background-color: rgba(#000, .05);
-
-// header and footer colors
-$header-text-color: $text-color-3;
-$header-background: $main-color-3;
-
-$footer-text-color: $text-color-3;
-$footer-background: $main-color-3;
-
-// border and shadow colors
-$border-color: #3e758f;
-$border-color-l: mix(#000, $background-color, 10%);
-$decorate-color: rgba(#bb6170, .15);
-$mask-color: rgba(#000, .9);
-$select-color: rgba($main-color-1, .5);
-
-// function colors
-$green: #52c41a;
-$blue: #1890ff;
-$yellow: #fa8c16;
-$red: #f5222d;
-$text-color-function: #fff;
-
-// logo colors
-$mail-color: #0072c5;
-$facebook-color: #4267b2;
-$twitter-color: #1da1f2;
-$weibo-color: #e6162d;
-$google-plus-color:#ea4335;
-$telegram-color: #32afed;
-$medium-color: #000;
-$zhihu-color: #0084ff;
-$douban-color: #42bd56;
-$linkedin-color: #1074af;
-$github-color: #000;
-$npm-color: #fff;
-
-// highlight colors
-@import "skins/highlight/tomorrow";
diff --git a/_sass/skins/_ocean.scss b/_sass/skins/_ocean.scss
deleted file mode 100644
index c4da252..0000000
--- a/_sass/skins/_ocean.scss
+++ /dev/null
@@ -1,74 +0,0 @@
-///
-// Skin: Ocean
-// Author: Tian Qi
-// Email: kitian616@outlook.com
-///
-
-// main colors
-$main-color-1: #0366d6;
-$text-color-1: #fff;
-
-$main-color-2: #a5917f;
-$text-color-2: #fff;
-
-$main-color-3: #f1f8ff;
-$text-color-3: #0366d6;
-
-$main-color-theme-light: rgba(#000, .9);
-$main-color-theme-dark: rgba(#fff, .9);
-
-// page background
-$background-color: #fff;
-
-// text colors
-$text-color-theme-light-d: rgba(#000, .95);
-$text-color-theme-light: rgba(#000, .85);
-$text-color-theme-light-l: rgba(#000, .5);
-
-$text-color-theme-dark-d: #fff;
-$text-color-theme-dark: rgba(#fff, .95);
-$text-color-theme-dark-l: rgba(#fff, .85);
-
-$text-color-d: $text-color-theme-light-d;
-$text-color: $text-color-theme-light;
-$text-color-l: $text-color-theme-light-l;
-
-$text-background-color: rgba(#000, .05);
-
-// header and footer colors
-$header-text-color: $text-color-3;
-$header-background: $main-color-3;
-
-$footer-text-color: $text-color-3;
-$footer-background: $main-color-3;
-
-// border and shadow colors
-$border-color: mix(#000, $background-color, 20%);
-$border-color-l: mix(#000, $background-color, 10%);
-$decorate-color: rgba(#000, .1);
-$mask-color: rgba(#000, .9);
-$select-color: rgba($main-color-1, .5);
-
-// function colors
-$green: #52c41a;
-$blue: #1890ff;
-$yellow: #fa8c16;
-$red: #f5222d;
-$text-color-function: #fff;
-
-// logo colors
-$mail-color: #0072c5;
-$facebook-color: #4267b2;
-$twitter-color: #1da1f2;
-$weibo-color: #e6162d;
-$google-plus-color:#ea4335;
-$telegram-color: #32afed;
-$medium-color: #000;
-$zhihu-color: #0084ff;
-$douban-color: #42bd56;
-$linkedin-color: #1074af;
-$github-color: #000;
-$npm-color: #fff;
-
-// highlight colors
-@import "skins/highlight/tomorrow-night-blue";
diff --git a/_sass/skins/_orange.scss b/_sass/skins/_orange.scss
deleted file mode 100644
index 4ffdbb1..0000000
--- a/_sass/skins/_orange.scss
+++ /dev/null
@@ -1,74 +0,0 @@
-///
-// Skin: Orange
-// Author: Tian Qi
-// Email: kitian616@outlook.com
-///
-
-// main colors
-$main-color-1: #f92651;
-$text-color-1: #fff;
-
-$main-color-2: #fdb824;
-$text-color-2: #fff;
-
-$main-color-3: #ff8a64;
-$text-color-3: #fff;
-
-$main-color-theme-light: rgba(#000, .9);
-$main-color-theme-dark: rgba(#fff, .9);
-
-// page background
-$background-color: #fffdfa;
-
-// text colors
-$text-color-theme-light-d: rgba(#000, .95);
-$text-color-theme-light: rgba(#000, .85);
-$text-color-theme-light-l: rgba(#000, .5);
-
-$text-color-theme-dark-d: rgba(#fff, .95);
-$text-color-theme-dark: rgba(#fff, .85);
-$text-color-theme-dark-l: rgba(#fff, .65);
-
-$text-color-d: $text-color-theme-light-d;
-$text-color: $text-color-theme-light;
-$text-color-l: $text-color-theme-light-l;
-
-$text-background-color: rgba(#000, .05);
-
-// header and footer colors
-$header-text-color: $text-color-3;
-$header-background: linear-gradient(60deg, #ffa650 0%, #ff7b50 100%);
-
-$footer-text-color: $text-color-3;
-$footer-background: linear-gradient(60deg, #ffa650 0%, #ff7b50 100%);
-
-// border and shadow colors
-$border-color: mix($main-color-1, $background-color, 50%);
-$border-color-l: mix(#000, $background-color, 10%);
-$decorate-color: rgba(#000, .1);
-$mask-color: rgba(#000, .9);
-$select-color: rgba($main-color-3, .5);
-
-// function colors
-$green: #52c41a;
-$blue: #1890ff;
-$yellow: #fa8c16;
-$red: #f5222d;
-$text-color-function: #fff;
-
-// logo colors
-$mail-color: #0072c5;
-$facebook-color: #4267b2;
-$twitter-color: #1da1f2;
-$weibo-color: #e6162d;
-$google-plus-color:#ea4335;
-$telegram-color: #32afed;
-$medium-color: #000;
-$zhihu-color: #0084ff;
-$douban-color: #42bd56;
-$linkedin-color: #1074af;
-$github-color: #000;
-$npm-color: #fff;
-
-// highlight colors
-@import "skins/highlight/tomorrow-night-eighties";
diff --git a/_sass/skins/highlight/_default.scss b/_sass/skins/highlight/_default.scss
deleted file mode 100644
index e69de29..0000000
--- a/_sass/skins/highlight/_default.scss
+++ /dev/null
diff --git a/_sass/skins/highlight/_tomorrow-night-blue.scss b/_sass/skins/highlight/_tomorrow-night-blue.scss
deleted file mode 100644
index 473cbff..0000000
--- a/_sass/skins/highlight/_tomorrow-night-blue.scss
+++ /dev/null
@@ -1,2 +0,0 @@
-@import "./tomorrow/night-blue";
-@import "./tomorrow/highlight";
diff --git a/_sass/skins/highlight/_tomorrow-night-bright.scss b/_sass/skins/highlight/_tomorrow-night-bright.scss
deleted file mode 100644
index 05af36c..0000000
--- a/_sass/skins/highlight/_tomorrow-night-bright.scss
+++ /dev/null
@@ -1,2 +0,0 @@
-@import "./tomorrow/night-bright";
-@import "./tomorrow/highlight";
diff --git a/_sass/skins/highlight/_tomorrow-night-eighties.scss b/_sass/skins/highlight/_tomorrow-night-eighties.scss
deleted file mode 100644
index 4144a5e..0000000
--- a/_sass/skins/highlight/_tomorrow-night-eighties.scss
+++ /dev/null
@@ -1,2 +0,0 @@
-@import "./tomorrow/night-eighties";
-@import "./tomorrow/highlight";
diff --git a/_sass/skins/highlight/_tomorrow-night.scss b/_sass/skins/highlight/_tomorrow-night.scss
deleted file mode 100644
index 2cb5d72..0000000
--- a/_sass/skins/highlight/_tomorrow-night.scss
+++ /dev/null
@@ -1,2 +0,0 @@
-@import "./tomorrow/night";
-@import "./tomorrow/highlight";
diff --git a/_sass/skins/highlight/_tomorrow.scss b/_sass/skins/highlight/_tomorrow.scss
deleted file mode 100644
index 90aaf3b..0000000
--- a/_sass/skins/highlight/_tomorrow.scss
+++ /dev/null
@@ -1,2 +0,0 @@
-@import "./tomorrow/default";
-@import "./tomorrow/highlight";
diff --git a/_sass/skins/highlight/tomorrow/_default.scss b/_sass/skins/highlight/tomorrow/_default.scss
deleted file mode 100644
index c739cf7..0000000
--- a/_sass/skins/highlight/tomorrow/_default.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-$highlight-background : #f7f7f7;
-$highlight-foreground : #4d4d4c;
-$highlight-comment : #8e908c;
-$highlight-red : #c82829;
-$highlight-orange : #f5871f;
-$highlight-yellow : #eab700;
-$highlight-green : #718c00;
-$highlight-aqua : #3e999f;
-$highlight-blue : #4271ae;
-$highlight-purple : #8959a8;
diff --git a/_sass/skins/highlight/tomorrow/_highlight.scss b/_sass/skins/highlight/tomorrow/_highlight.scss
deleted file mode 100644
index c026a44..0000000
--- a/_sass/skins/highlight/tomorrow/_highlight.scss
+++ /dev/null
@@ -1,74 +0,0 @@
-figure.highlight::before {
- color: $highlight-comment !important;
- background-color: $highlight-background !important;
-}
-pre.lineno {
- color: $highlight-comment !important;
-}
-.highlight > pre {
- color: $highlight-foreground;
- background-color: $highlight-background !important;
- .c { color: $highlight-comment; } /* Comment */
- .err { color: $highlight-red; } /* Error */
- .k { color: $highlight-purple; } /* Keyword */
- .l { color: $highlight-orange; } /* Literal */
- .n { color: $highlight-foreground; } /* Name */
- .o { color: $highlight-aqua; } /* Operator */
- .p { color: $highlight-foreground; } /* Punctuation */
- .cm { color: $highlight-comment; } /* Comment.Multiline */
- .cp { color: $highlight-comment; } /* Comment.Preproc */
- .c1 { color: $highlight-comment; } /* Comment.Single */
- .cs { color: $highlight-comment; } /* Comment.Special */
- .gd { color: $highlight-red; } /* Generic.Deleted */
- .ge { font-style: italic; } /* Generic.Emph */
- .gh { font-weight: bold; color: $highlight-foreground; } /* Generic.Heading */
- .gi { color: $highlight-green; } /* Generic.Inserted */
- .gp { font-weight: bold; color: $highlight-comment; } /* Generic.Prompt */
- .gs { font-weight: bold; } /* Generic.Strong */
- .gu { font-weight: bold; color: $highlight-aqua; } /* Generic.Subheading */
- .kc { color: $highlight-purple; } /* Keyword.Constant */
- .kd { color: $highlight-purple; } /* Keyword.Declaration */
- .kn { color: $highlight-aqua; } /* Keyword.Namespace */
- .kp { color: $highlight-purple; } /* Keyword.Pseudo */
- .kr { color: $highlight-purple; } /* Keyword.Reserved */
- .kt { color: $highlight-yellow; } /* Keyword.Type */
- .ld { color: $highlight-green; } /* Literal.Date */
- .m { color: $highlight-orange; } /* Literal.Number */
- .s { color: $highlight-green; } /* Literal.String */
- .na { color: $highlight-blue; } /* Name.Attribute */
- .nb { color: $highlight-foreground; } /* Name.Builtin */
- .nc { color: $highlight-yellow; } /* Name.Class */
- .no { color: $highlight-red; } /* Name.Constant */
- .nd { color: $highlight-aqua; } /* Name.Decorator */
- .ni { color: $highlight-foreground; } /* Name.Entity */
- .ne { color: $highlight-red; } /* Name.Exception */
- .nf { color: $highlight-blue; } /* Name.Function */
- .nl { color: $highlight-foreground; } /* Name.Label */
- .nn { color: $highlight-yellow; } /* Name.Namespace */
- .nx { color: $highlight-blue; } /* Name.Other */
- .py { color: $highlight-foreground; } /* Name.Property */
- .nt { color: $highlight-aqua; } /* Name.Tag */
- .nv { color: $highlight-red; } /* Name.Variable */
- .ow { color: $highlight-aqua; } /* Operator.Word */
- .w { color: $highlight-foreground; } /* Text.Whitespace */
- .mf { color: $highlight-orange; } /* Literal.Number.Float */
- .mh { color: $highlight-orange; } /* Literal.Number.Hex */
- .mi { color: $highlight-orange; } /* Literal.Number.Integer */
- .mo { color: $highlight-orange; } /* Literal.Number.Oct */
- .sb { color: $highlight-green; } /* Literal.String.Backtick */
- .sc { color: $highlight-foreground; } /* Literal.String.Char */
- .sd { color: $highlight-comment; } /* Literal.String.Doc */
- .s2 { color: $highlight-green; } /* Literal.String.Double */
- .se { color: $highlight-orange; } /* Literal.String.Escape */
- .sh { color: $highlight-green; } /* Literal.String.Heredoc */
- .si { color: $highlight-orange; } /* Literal.String.Interpol */
- .sx { color: $highlight-green; } /* Literal.String.Other */
- .sr { color: $highlight-green; } /* Literal.String.Regex */
- .s1 { color: $highlight-green; } /* Literal.String.Single */
- .ss { color: $highlight-green; } /* Literal.String.Symbol */
- .bp { color: $highlight-foreground; } /* Name.Builtin.Pseudo */
- .vc { color: $highlight-red; } /* Name.Variable.Class */
- .vg { color: $highlight-red; } /* Name.Variable.Global */
- .vi { color: $highlight-red; } /* Name.Variable.Instance */
- .il { color: $highlight-orange; } /* Literal.Number.Integer.Long */
-}
diff --git a/_sass/skins/highlight/tomorrow/_night-blue.scss b/_sass/skins/highlight/tomorrow/_night-blue.scss
deleted file mode 100644
index 74fbf7f..0000000
--- a/_sass/skins/highlight/tomorrow/_night-blue.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-$highlight-background :#002451;
-$highlight-foreground :#fff;
-$highlight-comment :#7285b7;
-$highlight-red :#ff9da4;
-$highlight-orange :#ffc58f;
-$highlight-yellow :#ffeead;
-$highlight-green :#d1f1a9;
-$highlight-aqua :#9ff;
-$highlight-blue :#bbdaff;
-$highlight-purple :#ebbbff;
diff --git a/_sass/skins/highlight/tomorrow/_night-bright.scss b/_sass/skins/highlight/tomorrow/_night-bright.scss
deleted file mode 100644
index 39d6cfc..0000000
--- a/_sass/skins/highlight/tomorrow/_night-bright.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-$highlight-background :#000;
-$highlight-foreground :#eaeaea;
-$highlight-comment :#969896;
-$highlight-red :#d54e53;
-$highlight-orange :#e78c45;
-$highlight-yellow :#e7c547;
-$highlight-green :#b9ca4a;
-$highlight-aqua :#70c0b1;
-$highlight-blue :#7aa6da;
-$highlight-purple :#c397d8;
diff --git a/_sass/skins/highlight/tomorrow/_night-eighties.scss b/_sass/skins/highlight/tomorrow/_night-eighties.scss
deleted file mode 100644
index 4bd0ddb..0000000
--- a/_sass/skins/highlight/tomorrow/_night-eighties.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-$highlight-background :#2d2d2d;
-$highlight-foreground :#ccc;
-$highlight-comment :#999;
-$highlight-red :#f2777a;
-$highlight-orange :#f99157;
-$highlight-yellow :#fc6;
-$highlight-green :#9c9;
-$highlight-aqua :#6cc;
-$highlight-blue :#69c;
-$highlight-purple :#c9c;
diff --git a/_sass/skins/highlight/tomorrow/_night.scss b/_sass/skins/highlight/tomorrow/_night.scss
deleted file mode 100644
index 98a0294..0000000
--- a/_sass/skins/highlight/tomorrow/_night.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-$highlight-background : #1d1f21;
-$highlight-foreground : #c5c8c6;
-$highlight-comment : #969896;
-$highlight-red : #c66;
-$highlight-orange : #de935f;
-$highlight-yellow : #f0c674;
-$highlight-green : #b5bd68;
-$highlight-aqua : #8abeb7;
-$highlight-blue : #81a2be;
-$highlight-purple : #b294bb;
diff --git a/assets/css/main.scss b/assets/css/main.scss
deleted file mode 100644
index 8b4a9c1..0000000
--- a/assets/css/main.scss
+++ /dev/null
@@ -1,74 +0,0 @@
----
-# Only the main Sass file needs front matter (the dashes are enough)
----
-
-@import
-
- "skins/{{ site.text_skin | default: site.data.variables.default.text_skin }}",
- // "skins/chocolate",
- // "skins/dark",
- // "skins/default",
- // "skins/forest",
- // "skins/ocean",
- // "skins/orange",
-
- "skins/highlight/{{ site.highlight_theme | default: site.data.variables.default.highlight_theme }}",
- // "skins/highlight/tomorrow",
- // "skins/highlight/tomorrow-night",
- // "skins/highlight/tomorrow-night-eighties",
- // "skins/highlight/tomorrow-night-blue",
- // "skins/highlight/tomorrow-night-bright",
-
-
- "common/variables",
- "common/function",
- "common/classes",
- "common/reset",
- "common/print",
- "common/components/button",
- "common/components/image",
- "common/components/card",
- "common/components/gallery",
- "common/components/hero",
- "common/components/menu",
- "common/components/modal",
- "common/components/toc",
- "common/components/item",
- "common/components/swiper",
-
- "animate/fade-in",
- "animate/fade-in-down",
- "animate/fade-in-up",
-
- "components/main",
- "components/header",
- "components/footer",
- "components/article-list",
- "components/article-info",
- "components/article-header",
- "components/article-content",
- "components/article-footer",
- "components/author-links",
- "components/author-profile",
- "components/tags",
- "components/search",
- "components/lightbox",
- "components/extensions",
-
-
- "additional/alert",
- "additional/tag",
- "additional/photo-frame",
-
- "layout/base",
- "layout/page",
-
- "layout/article",
- "layout/articles",
- "layout/archive",
- "layout/home",
- "layout/landing",
- "layout/404",
-
- "custom"
-;
diff --git a/assets/images/logo/logo.svg b/assets/images/logo/logo.svg
deleted file mode 100644
index 5ad04a6..0000000
--- a/assets/images/logo/logo.svg
+++ /dev/null
@@ -1,8 +0,0 @@
-<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="24px" height="24px" viewBox="0 0 24 24">
-<style type="text/css">
- .st0{fill:#515151;}
-</style>
-<path class="st0" d="M1.7,22.3c5.7-5.7,11.3-5.7,17,0c3.3-3.3,3.5-5.3,0.8-6c2.7,0.7,3.5-1.1,2.3-5.6s-3.3-5.2-6.3-2.1
- c3-3,2.3-5.2-2.1-6.3S7,1.8,7.7,4.6C7,1.8,5,2.1,1.7,5.3C7.3,11,7.3,16.7,1.7,22.3"/>
-</svg> \ No newline at end of file
diff --git a/assets/search.js b/assets/search.js
deleted file mode 100644
index 8a03d39..0000000
--- a/assets/search.js
+++ /dev/null
@@ -1,3 +0,0 @@
----
----
-{%- include search-providers/default/search-data.js -%}