From bb9a0fda754d94e0cd017ae7ae7e140e127a96e2 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Mon, 5 Jul 2021 09:52:30 -0700 Subject: [PATCH] Add Hexo butterfly theme --- .../.github/ISSUE_TEMPLATE/bug_report.md | 61 ++ .../.github/ISSUE_TEMPLATE/custom.md | 9 + .../.github/ISSUE_TEMPLATE/feature_request.md | 20 + themes/butterfly/.github/stale.yml | 20 + .../butterfly/.github/workflows/publish.yml | 19 + themes/butterfly/.gitkeep | 0 themes/butterfly/LICENSE | 202 ++++ themes/butterfly/README.md | 107 ++ themes/butterfly/README_CN.md | 106 ++ themes/butterfly/_config.yml | 928 ++++++++++++++++++ themes/butterfly/languages/default.yml | 123 +++ themes/butterfly/languages/en.yml | 123 +++ themes/butterfly/languages/zh-CN.yml | 124 +++ themes/butterfly/languages/zh-TW.yml | 124 +++ themes/butterfly/layout/archive.pug | 8 + themes/butterfly/layout/category.pug | 14 + themes/butterfly/layout/includes/404.pug | 17 + .../layout/includes/additional-js.pug | 68 ++ themes/butterfly/layout/includes/footer.pug | 17 + themes/butterfly/layout/includes/head.pug | 77 ++ .../layout/includes/head/Open_Graph.pug | 11 + .../layout/includes/head/analytics.pug | 43 + .../butterfly/layout/includes/head/config.pug | 128 +++ .../layout/includes/head/config_site.pug | 21 + .../layout/includes/head/google_adsense.pug | 9 + .../layout/includes/head/noscript.pug | 14 + .../layout/includes/head/preconnect.pug | 25 + themes/butterfly/layout/includes/head/pwa.pug | 11 + .../includes/head/site_verification.pug | 3 + .../layout/includes/header/index.pug | 50 + .../layout/includes/header/menu_item.pug | 26 + .../butterfly/layout/includes/header/nav.pug | 17 + .../layout/includes/header/post-info.pug | 111 +++ .../layout/includes/header/social.pug | 4 + themes/butterfly/layout/includes/layout.pug | 47 + .../layout/includes/loading/loading-js.pug | 13 + .../layout/includes/loading/loading.pug | 9 + .../layout/includes/mixins/article-sort.pug | 20 + .../layout/includes/mixins/post-ui.pug | 109 ++ .../layout/includes/page/categories.pug | 5 + .../layout/includes/page/default-page.pug | 4 + .../butterfly/layout/includes/page/flink.pug | 21 + .../butterfly/layout/includes/page/tags.pug | 5 + .../butterfly/layout/includes/pagination.pug | 37 + .../layout/includes/post/post-copyright.pug | 17 + .../butterfly/layout/includes/post/reward.pug | 13 + .../butterfly/layout/includes/rightside.pug | 38 + themes/butterfly/layout/includes/sidebar.pug | 28 + .../layout/includes/third-party/aplayer.pug | 3 + .../third-party/card-post-count/disqus.pug | 16 + .../third-party/card-post-count/fb.pug | 15 + .../third-party/card-post-count/index.pug | 12 + .../third-party/card-post-count/twikoo.pug | 37 + .../third-party/card-post-count/valine.pug | 19 + .../third-party/card-post-count/waline.pug | 17 + .../includes/third-party/chat/chatra.pug | 33 + .../includes/third-party/chat/crisp.pug | 36 + .../includes/third-party/chat/daovoice.pug | 40 + .../includes/third-party/chat/gitter.pug | 43 + .../includes/third-party/chat/index.pug | 10 + .../includes/third-party/chat/tidio.pug | 41 + .../includes/third-party/comments/disqus.pug | 47 + .../third-party/comments/disqusjs.pug | 60 ++ .../comments/facebook_comments.pug | 26 + .../includes/third-party/comments/gitalk.pug | 53 + .../includes/third-party/comments/index.pug | 40 + .../includes/third-party/comments/js.pug | 20 + .../includes/third-party/comments/livere.pug | 26 + .../includes/third-party/comments/twikoo.pug | 45 + .../third-party/comments/utterances.pug | 34 + .../includes/third-party/comments/valine.pug | 41 + .../includes/third-party/comments/waline.pug | 27 + .../layout/includes/third-party/effect.pug | 35 + .../includes/third-party/math/index.pug | 18 + .../includes/third-party/math/katex.pug | 10 + .../includes/third-party/math/mathjax.pug | 38 + .../includes/third-party/math/mermaid.pug | 15 + .../newest-comments/disqus-comment.pug | 82 ++ .../newest-comments/github-issues.pug | 109 ++ .../third-party/newest-comments/index.pug | 26 + .../newest-comments/twikoo-comment.pug | 93 ++ .../third-party/newest-comments/valine.pug | 99 ++ .../third-party/newest-comments/waline.pug | 93 ++ .../layout/includes/third-party/pangu.pug | 20 + .../layout/includes/third-party/pjax.pug | 92 ++ .../layout/includes/third-party/prismjs.pug | 5 + .../includes/third-party/search/algolia.pug | 13 + .../includes/third-party/search/index.pug | 4 + .../third-party/search/local-search.pug | 12 + .../includes/third-party/share/add-this.pug | 2 + .../includes/third-party/share/addtoany.pug | 10 + .../includes/third-party/share/index.pug | 7 + .../includes/third-party/share/share-js.pug | 3 + .../layout/includes/third-party/subtitle.pug | 158 +++ .../layout/includes/widget/card_ad.pug | 3 + .../includes/widget/card_announcement.pug | 6 + .../layout/includes/widget/card_archives.pug | 7 + .../layout/includes/widget/card_author.pug | 35 + .../includes/widget/card_bottom_self.pug | 9 + .../includes/widget/card_categories.pug | 4 + .../includes/widget/card_newest_comment.pug | 7 + .../layout/includes/widget/card_post_toc.pug | 12 + .../includes/widget/card_recent_post.pug | 24 + .../layout/includes/widget/card_tags.pug | 12 + .../layout/includes/widget/card_top_self.pug | 8 + .../layout/includes/widget/card_webinfo.pug | 31 + .../layout/includes/widget/index.pug | 30 + themes/butterfly/layout/index.pug | 7 + themes/butterfly/layout/page.pug | 17 + themes/butterfly/layout/post.pug | 32 + themes/butterfly/layout/tag.pug | 14 + themes/butterfly/package.json | 32 + themes/butterfly/scripts/events/404.js | 18 + themes/butterfly/scripts/events/init.js | 27 + themes/butterfly/scripts/events/welcome.js | 17 + .../scripts/filters/post_lazyload.js | 29 + .../butterfly/scripts/filters/random_cover.js | 45 + .../scripts/helpers/aside_archives.js | 113 +++ .../scripts/helpers/aside_categories.js | 97 ++ .../scripts/helpers/inject_head_js.js | 161 +++ themes/butterfly/scripts/helpers/page.js | 91 ++ .../butterfly/scripts/helpers/related_post.js | 120 +++ themes/butterfly/scripts/tag/button.js | 28 + themes/butterfly/scripts/tag/gallery.js | 34 + themes/butterfly/scripts/tag/hide.js | 71 ++ themes/butterfly/scripts/tag/inlineImg.js | 17 + themes/butterfly/scripts/tag/label.js | 16 + themes/butterfly/scripts/tag/mermaid.js | 15 + themes/butterfly/scripts/tag/note.js | 27 + themes/butterfly/scripts/tag/tabs.js | 62 ++ .../source/css/_global/function.styl | 210 ++++ .../butterfly/source/css/_global/index.styl | 223 +++++ .../source/css/_highlight/highlight.styl | 228 +++++ .../source/css/_highlight/highlight/diff.styl | 77 ++ .../css/_highlight/highlight/index.styl | 39 + .../source/css/_highlight/prismjs/diff.styl | 302 ++++++ .../source/css/_highlight/prismjs/index.styl | 20 + .../css/_highlight/prismjs/line-number.styl | 41 + .../source/css/_highlight/theme.styl | 119 +++ .../butterfly/source/css/_layout/aside.styl | 400 ++++++++ themes/butterfly/source/css/_layout/chat.styl | 8 + .../source/css/_layout/comments.styl | 64 ++ .../butterfly/source/css/_layout/footer.styl | 35 + themes/butterfly/source/css/_layout/head.styl | 376 +++++++ .../butterfly/source/css/_layout/loading.styl | 95 ++ .../source/css/_layout/pagination.styl | 79 ++ themes/butterfly/source/css/_layout/post.styl | 284 ++++++ .../source/css/_layout/relatedposts.styl | 54 + .../butterfly/source/css/_layout/reward.styl | 69 ++ .../source/css/_layout/rightside.styl | 39 + .../butterfly/source/css/_layout/sidebar.styl | 83 ++ .../source/css/_layout/third-party.styl | 119 +++ .../butterfly/source/css/_mode/darkmode.styl | 142 +++ .../butterfly/source/css/_mode/readmode.styl | 194 ++++ themes/butterfly/source/css/_page/404.styl | 86 ++ .../butterfly/source/css/_page/archives.styl | 115 +++ .../source/css/_page/categories.styl | 62 ++ themes/butterfly/source/css/_page/common.styl | 55 ++ themes/butterfly/source/css/_page/flink.styl | 80 ++ .../butterfly/source/css/_page/homepage.styl | 154 +++ themes/butterfly/source/css/_page/tags.styl | 19 + .../butterfly/source/css/_search/algolia.styl | 75 ++ .../butterfly/source/css/_search/index.styl | 52 + .../source/css/_search/local-search.styl | 64 ++ themes/butterfly/source/css/_tags/button.styl | 61 ++ .../butterfly/source/css/_tags/gallery.styl | 107 ++ themes/butterfly/source/css/_tags/hexo.styl | 30 + themes/butterfly/source/css/_tags/hide.styl | 55 ++ .../butterfly/source/css/_tags/inlineImg.styl | 6 + themes/butterfly/source/css/_tags/label.styl | 11 + themes/butterfly/source/css/_tags/note.styl | 121 +++ themes/butterfly/source/css/_tags/tabs.styl | 74 ++ .../source/css/_third-party/normalize.min.css | 180 ++++ themes/butterfly/source/css/index.styl | 21 + themes/butterfly/source/css/var.styl | 178 ++++ themes/butterfly/source/img/404.jpg | Bin 0 -> 16393 bytes themes/butterfly/source/img/algolia.svg | 9 + themes/butterfly/source/img/favicon.png | Bin 0 -> 323 bytes themes/butterfly/source/img/friend_404.gif | Bin 0 -> 65097 bytes themes/butterfly/source/js/main.js | 867 ++++++++++++++++ themes/butterfly/source/js/search/algolia.js | 138 +++ .../source/js/search/local-search.js | 146 +++ themes/butterfly/source/js/tw_cn.js | 100 ++ themes/butterfly/source/js/utils.js | 251 +++++ 184 files changed, 12386 insertions(+) create mode 100644 themes/butterfly/.github/ISSUE_TEMPLATE/bug_report.md create mode 100644 themes/butterfly/.github/ISSUE_TEMPLATE/custom.md create mode 100644 themes/butterfly/.github/ISSUE_TEMPLATE/feature_request.md create mode 100644 themes/butterfly/.github/stale.yml create mode 100644 themes/butterfly/.github/workflows/publish.yml delete mode 100644 themes/butterfly/.gitkeep create mode 100644 themes/butterfly/LICENSE create mode 100644 themes/butterfly/README.md create mode 100644 themes/butterfly/README_CN.md create mode 100644 themes/butterfly/_config.yml create mode 100644 themes/butterfly/languages/default.yml create mode 100644 themes/butterfly/languages/en.yml create mode 100644 themes/butterfly/languages/zh-CN.yml create mode 100644 themes/butterfly/languages/zh-TW.yml create mode 100644 themes/butterfly/layout/archive.pug create mode 100644 themes/butterfly/layout/category.pug create mode 100644 themes/butterfly/layout/includes/404.pug create mode 100644 themes/butterfly/layout/includes/additional-js.pug create mode 100644 themes/butterfly/layout/includes/footer.pug create mode 100644 themes/butterfly/layout/includes/head.pug create mode 100644 themes/butterfly/layout/includes/head/Open_Graph.pug create mode 100644 themes/butterfly/layout/includes/head/analytics.pug create mode 100644 themes/butterfly/layout/includes/head/config.pug create mode 100644 themes/butterfly/layout/includes/head/config_site.pug create mode 100644 themes/butterfly/layout/includes/head/google_adsense.pug create mode 100644 themes/butterfly/layout/includes/head/noscript.pug create mode 100644 themes/butterfly/layout/includes/head/preconnect.pug create mode 100644 themes/butterfly/layout/includes/head/pwa.pug create mode 100644 themes/butterfly/layout/includes/head/site_verification.pug create mode 100644 themes/butterfly/layout/includes/header/index.pug create mode 100644 themes/butterfly/layout/includes/header/menu_item.pug create mode 100644 themes/butterfly/layout/includes/header/nav.pug create mode 100644 themes/butterfly/layout/includes/header/post-info.pug create mode 100644 themes/butterfly/layout/includes/header/social.pug create mode 100644 themes/butterfly/layout/includes/layout.pug create mode 100644 themes/butterfly/layout/includes/loading/loading-js.pug create mode 100644 themes/butterfly/layout/includes/loading/loading.pug create mode 100644 themes/butterfly/layout/includes/mixins/article-sort.pug create mode 100644 themes/butterfly/layout/includes/mixins/post-ui.pug create mode 100644 themes/butterfly/layout/includes/page/categories.pug create mode 100644 themes/butterfly/layout/includes/page/default-page.pug create mode 100644 themes/butterfly/layout/includes/page/flink.pug create mode 100644 themes/butterfly/layout/includes/page/tags.pug create mode 100644 themes/butterfly/layout/includes/pagination.pug create mode 100644 themes/butterfly/layout/includes/post/post-copyright.pug create mode 100644 themes/butterfly/layout/includes/post/reward.pug create mode 100644 themes/butterfly/layout/includes/rightside.pug create mode 100644 themes/butterfly/layout/includes/sidebar.pug create mode 100644 themes/butterfly/layout/includes/third-party/aplayer.pug create mode 100644 themes/butterfly/layout/includes/third-party/card-post-count/disqus.pug create mode 100644 themes/butterfly/layout/includes/third-party/card-post-count/fb.pug create mode 100644 themes/butterfly/layout/includes/third-party/card-post-count/index.pug create mode 100644 themes/butterfly/layout/includes/third-party/card-post-count/twikoo.pug create mode 100644 themes/butterfly/layout/includes/third-party/card-post-count/valine.pug create mode 100644 themes/butterfly/layout/includes/third-party/card-post-count/waline.pug create mode 100644 themes/butterfly/layout/includes/third-party/chat/chatra.pug create mode 100644 themes/butterfly/layout/includes/third-party/chat/crisp.pug create mode 100644 themes/butterfly/layout/includes/third-party/chat/daovoice.pug create mode 100644 themes/butterfly/layout/includes/third-party/chat/gitter.pug create mode 100644 themes/butterfly/layout/includes/third-party/chat/index.pug create mode 100644 themes/butterfly/layout/includes/third-party/chat/tidio.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/disqus.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/disqusjs.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/facebook_comments.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/gitalk.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/index.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/js.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/livere.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/twikoo.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/utterances.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/valine.pug create mode 100644 themes/butterfly/layout/includes/third-party/comments/waline.pug create mode 100644 themes/butterfly/layout/includes/third-party/effect.pug create mode 100644 themes/butterfly/layout/includes/third-party/math/index.pug create mode 100644 themes/butterfly/layout/includes/third-party/math/katex.pug create mode 100644 themes/butterfly/layout/includes/third-party/math/mathjax.pug create mode 100644 themes/butterfly/layout/includes/third-party/math/mermaid.pug create mode 100644 themes/butterfly/layout/includes/third-party/newest-comments/disqus-comment.pug create mode 100644 themes/butterfly/layout/includes/third-party/newest-comments/github-issues.pug create mode 100644 themes/butterfly/layout/includes/third-party/newest-comments/index.pug create mode 100644 themes/butterfly/layout/includes/third-party/newest-comments/twikoo-comment.pug create mode 100644 themes/butterfly/layout/includes/third-party/newest-comments/valine.pug create mode 100644 themes/butterfly/layout/includes/third-party/newest-comments/waline.pug create mode 100644 themes/butterfly/layout/includes/third-party/pangu.pug create mode 100644 themes/butterfly/layout/includes/third-party/pjax.pug create mode 100644 themes/butterfly/layout/includes/third-party/prismjs.pug create mode 100644 themes/butterfly/layout/includes/third-party/search/algolia.pug create mode 100644 themes/butterfly/layout/includes/third-party/search/index.pug create mode 100644 themes/butterfly/layout/includes/third-party/search/local-search.pug create mode 100644 themes/butterfly/layout/includes/third-party/share/add-this.pug create mode 100644 themes/butterfly/layout/includes/third-party/share/addtoany.pug create mode 100644 themes/butterfly/layout/includes/third-party/share/index.pug create mode 100644 themes/butterfly/layout/includes/third-party/share/share-js.pug create mode 100644 themes/butterfly/layout/includes/third-party/subtitle.pug create mode 100644 themes/butterfly/layout/includes/widget/card_ad.pug create mode 100644 themes/butterfly/layout/includes/widget/card_announcement.pug create mode 100644 themes/butterfly/layout/includes/widget/card_archives.pug create mode 100644 themes/butterfly/layout/includes/widget/card_author.pug create mode 100644 themes/butterfly/layout/includes/widget/card_bottom_self.pug create mode 100644 themes/butterfly/layout/includes/widget/card_categories.pug create mode 100644 themes/butterfly/layout/includes/widget/card_newest_comment.pug create mode 100644 themes/butterfly/layout/includes/widget/card_post_toc.pug create mode 100644 themes/butterfly/layout/includes/widget/card_recent_post.pug create mode 100644 themes/butterfly/layout/includes/widget/card_tags.pug create mode 100644 themes/butterfly/layout/includes/widget/card_top_self.pug create mode 100644 themes/butterfly/layout/includes/widget/card_webinfo.pug create mode 100644 themes/butterfly/layout/includes/widget/index.pug create mode 100644 themes/butterfly/layout/index.pug create mode 100644 themes/butterfly/layout/page.pug create mode 100644 themes/butterfly/layout/post.pug create mode 100644 themes/butterfly/layout/tag.pug create mode 100644 themes/butterfly/package.json create mode 100644 themes/butterfly/scripts/events/404.js create mode 100644 themes/butterfly/scripts/events/init.js create mode 100644 themes/butterfly/scripts/events/welcome.js create mode 100644 themes/butterfly/scripts/filters/post_lazyload.js create mode 100644 themes/butterfly/scripts/filters/random_cover.js create mode 100644 themes/butterfly/scripts/helpers/aside_archives.js create mode 100644 themes/butterfly/scripts/helpers/aside_categories.js create mode 100644 themes/butterfly/scripts/helpers/inject_head_js.js create mode 100644 themes/butterfly/scripts/helpers/page.js create mode 100644 themes/butterfly/scripts/helpers/related_post.js create mode 100644 themes/butterfly/scripts/tag/button.js create mode 100644 themes/butterfly/scripts/tag/gallery.js create mode 100644 themes/butterfly/scripts/tag/hide.js create mode 100644 themes/butterfly/scripts/tag/inlineImg.js create mode 100644 themes/butterfly/scripts/tag/label.js create mode 100644 themes/butterfly/scripts/tag/mermaid.js create mode 100644 themes/butterfly/scripts/tag/note.js create mode 100644 themes/butterfly/scripts/tag/tabs.js create mode 100644 themes/butterfly/source/css/_global/function.styl create mode 100644 themes/butterfly/source/css/_global/index.styl create mode 100644 themes/butterfly/source/css/_highlight/highlight.styl create mode 100644 themes/butterfly/source/css/_highlight/highlight/diff.styl create mode 100644 themes/butterfly/source/css/_highlight/highlight/index.styl create mode 100644 themes/butterfly/source/css/_highlight/prismjs/diff.styl create mode 100644 themes/butterfly/source/css/_highlight/prismjs/index.styl create mode 100644 themes/butterfly/source/css/_highlight/prismjs/line-number.styl create mode 100644 themes/butterfly/source/css/_highlight/theme.styl create mode 100644 themes/butterfly/source/css/_layout/aside.styl create mode 100644 themes/butterfly/source/css/_layout/chat.styl create mode 100644 themes/butterfly/source/css/_layout/comments.styl create mode 100644 themes/butterfly/source/css/_layout/footer.styl create mode 100644 themes/butterfly/source/css/_layout/head.styl create mode 100644 themes/butterfly/source/css/_layout/loading.styl create mode 100644 themes/butterfly/source/css/_layout/pagination.styl create mode 100644 themes/butterfly/source/css/_layout/post.styl create mode 100644 themes/butterfly/source/css/_layout/relatedposts.styl create mode 100644 themes/butterfly/source/css/_layout/reward.styl create mode 100644 themes/butterfly/source/css/_layout/rightside.styl create mode 100644 themes/butterfly/source/css/_layout/sidebar.styl create mode 100644 themes/butterfly/source/css/_layout/third-party.styl create mode 100644 themes/butterfly/source/css/_mode/darkmode.styl create mode 100644 themes/butterfly/source/css/_mode/readmode.styl create mode 100644 themes/butterfly/source/css/_page/404.styl create mode 100644 themes/butterfly/source/css/_page/archives.styl create mode 100644 themes/butterfly/source/css/_page/categories.styl create mode 100644 themes/butterfly/source/css/_page/common.styl create mode 100644 themes/butterfly/source/css/_page/flink.styl create mode 100644 themes/butterfly/source/css/_page/homepage.styl create mode 100644 themes/butterfly/source/css/_page/tags.styl create mode 100644 themes/butterfly/source/css/_search/algolia.styl create mode 100644 themes/butterfly/source/css/_search/index.styl create mode 100644 themes/butterfly/source/css/_search/local-search.styl create mode 100644 themes/butterfly/source/css/_tags/button.styl create mode 100644 themes/butterfly/source/css/_tags/gallery.styl create mode 100644 themes/butterfly/source/css/_tags/hexo.styl create mode 100644 themes/butterfly/source/css/_tags/hide.styl create mode 100644 themes/butterfly/source/css/_tags/inlineImg.styl create mode 100644 themes/butterfly/source/css/_tags/label.styl create mode 100644 themes/butterfly/source/css/_tags/note.styl create mode 100644 themes/butterfly/source/css/_tags/tabs.styl create mode 100644 themes/butterfly/source/css/_third-party/normalize.min.css create mode 100644 themes/butterfly/source/css/index.styl create mode 100644 themes/butterfly/source/css/var.styl create mode 100644 themes/butterfly/source/img/404.jpg create mode 100644 themes/butterfly/source/img/algolia.svg create mode 100644 themes/butterfly/source/img/favicon.png create mode 100644 themes/butterfly/source/img/friend_404.gif create mode 100644 themes/butterfly/source/js/main.js create mode 100644 themes/butterfly/source/js/search/algolia.js create mode 100644 themes/butterfly/source/js/search/local-search.js create mode 100644 themes/butterfly/source/js/tw_cn.js create mode 100644 themes/butterfly/source/js/utils.js diff --git a/themes/butterfly/.github/ISSUE_TEMPLATE/bug_report.md b/themes/butterfly/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..1deada7 --- /dev/null +++ b/themes/butterfly/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,61 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + + + + + + +## I want to create a Bug report + + + +- [] Yes, I have read [Hexo Docs page](https://hexo.io/docs/), especially [Templates](https://hexo.io/docs/templates.html), [Variables](https://hexo.io/docs/variables.html), [Helpers](https://hexo.io/docs/helpers.html) and [Troubleshooting](https://hexo.io/docs/troubleshooting.html). +- [] Yes, I have read [Butterfly Documentation](https://butterfly.js.org/posts/21cfbf15/). +- [] And yes, I already searched for current [issues](https://github.com/jerryc127/hexo-theme-butterfly/issues?utf8=%E2%9C%93&q=is%3Aissue) and this did not help me. + +## Butterfly Information + + + +**Butterfly Version:** + + +**Platform:** + + +**Browser:** + +## Expected behavior + +## Actual behavior + +## Steps to reproduce the behavior +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + + + +## Screenshots + + +## Website + +## Describe the bug diff --git a/themes/butterfly/.github/ISSUE_TEMPLATE/custom.md b/themes/butterfly/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 0000000..4842758 --- /dev/null +++ b/themes/butterfly/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,9 @@ +--- +name: Custom issue template +about: Describe this issue template's purpose here. +title: '' +labels: '' +assignees: '' +--- + + diff --git a/themes/butterfly/.github/ISSUE_TEMPLATE/feature_request.md b/themes/butterfly/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/themes/butterfly/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/themes/butterfly/.github/stale.yml b/themes/butterfly/.github/stale.yml new file mode 100644 index 0000000..2d74a9c --- /dev/null +++ b/themes/butterfly/.github/stale.yml @@ -0,0 +1,20 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 30 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 7 +# Issues with these labels will never be considered stale +exemptLabels: + - pinned + - security + - bug + - enhancement + - documentation +# Label to use when marking an issue as stale +staleLabel: wontfix +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: false \ No newline at end of file diff --git a/themes/butterfly/.github/workflows/publish.yml b/themes/butterfly/.github/workflows/publish.yml new file mode 100644 index 0000000..d68365d --- /dev/null +++ b/themes/butterfly/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: npm publish + +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v1 + with: + node-version: '12.x' + registry-url: 'https://registry.npmjs.org' + - run: npm install + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/themes/butterfly/.gitkeep b/themes/butterfly/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/themes/butterfly/LICENSE b/themes/butterfly/LICENSE new file mode 100644 index 0000000..7a4a3ea --- /dev/null +++ b/themes/butterfly/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/themes/butterfly/README.md b/themes/butterfly/README.md new file mode 100644 index 0000000..54757a8 --- /dev/null +++ b/themes/butterfly/README.md @@ -0,0 +1,107 @@ +