aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-11-03 20:08:36 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-11-03 20:08:36 +0300
commit59c7d4567380d1a9c80e96eb958fdbdd512ce006 (patch)
tree65410cfc10dbc7d060ec23be110662d9b7f6b0e9
новая жизнь блога
-rw-r--r--.gitignore2
-rw-r--r--archetypes/categories.md7
-rw-r--r--archetypes/default.md11
-rw-r--r--archetypes/tags.md5
-rw-r--r--assets/img/logo.pngbin0 -> 20735 bytes
-rw-r--r--assets/jsconfig.json10
-rw-r--r--content/pages/jabber.md78
-rw-r--r--content/pages/me.md16
-rw-r--r--content/pages/projects.md11
-rw-r--r--content/post/2007-11-05.md13
-rw-r--r--content/post/2007-11-06.md13
-rw-r--r--content/post/2007-11-08.md13
-rw-r--r--content/post/2007-12-11.md13
-rw-r--r--content/post/2007-12-26.md13
-rw-r--r--content/post/2011-05-10.md13
-rw-r--r--content/post/2011-09-11-1.md15
-rw-r--r--content/post/2011-09-11-2.md13
-rw-r--r--content/post/2011-09-11-3.md13
-rw-r--r--content/post/2011-09-12.md17
-rw-r--r--content/post/2011-09-24.md34
-rw-r--r--content/post/2011-11-20.md17
-rw-r--r--content/post/2011-11-21.md18
-rw-r--r--content/post/2021-02-13-jsonnet.md49
-rw-r--r--content/post/2021-05-13.md56
-rw-r--r--content/post/2022-05-30.md25
-rw-r--r--content/post/2022-05-31-golang-1.md36
-rw-r--r--content/post/2023-01-12-gitrepo.md55
-rw-r--r--content/post/2023-05-26-gist.md20
-rw-r--r--content/post/2023-07-24-tls.md48
-rw-r--r--content/post/2023-12-29.md22
-rw-r--r--content/post/2024-01-03.md15
-rw-r--r--content/post/2024-02-21-tls.md49
-rw-r--r--content/post/2024-06-01.md68
-rw-r--r--content/post/2024-06-02.md20
-rw-r--r--content/post/2024-07-13-joplin.md27
-rw-r--r--content/post/2024-07-21-bbs.md27
-rw-r--r--content/post/2024-09-26-hugo-wordpress.md23
-rw-r--r--content/post/2024-10-06.md36
-rw-r--r--content/post/2024-10-17.md36
-rw-r--r--hugo.yaml114
-rw-r--r--resources/_gen/assets/sass/print.scss_1b40c387e9e0dc928366b05b33018dc5.content1
-rw-r--r--resources/_gen/assets/sass/print.scss_1b40c387e9e0dc928366b05b33018dc5.json1
-rw-r--r--resources/_gen/assets/sass/print.scss_fac971ac3b65f0ecfa10b7ccf117eb9b.content28
-rw-r--r--resources/_gen/assets/sass/print.scss_fac971ac3b65f0ecfa10b7ccf117eb9b.json1
-rw-r--r--resources/_gen/assets/sass/styles.scss_15d2610c0cb97b9efb592f553b76c9f9.content1
-rw-r--r--resources/_gen/assets/sass/styles.scss_15d2610c0cb97b9efb592f553b76c9f9.json1
-rw-r--r--resources/_gen/assets/sass/styles.scss_f3a5364e991a57c56f5dcd8d7251924a.content1146
-rw-r--r--resources/_gen/assets/sass/styles.scss_f3a5364e991a57c56f5dcd8d7251924a.json1
-rw-r--r--resources/_gen/assets/scss/style.scss_77b10c8e87ff110a62c52933fe3f7f11.content10
-rw-r--r--resources/_gen/assets/scss/style.scss_77b10c8e87ff110a62c52933fe3f7f11.json1
-rw-r--r--resources/_gen/images/img/avatar_hu13739649187745961479.pngbin0 -> 410 bytes
-rw-r--r--resources/_gen/images/img/logo_hu12649729852859296353.pngbin0 -> 23931 bytes
-rw-r--r--static/upload/Rama16wiki-150x150.jpgbin0 -> 17892 bytes
-rw-r--r--static/upload/Rama16wiki-300x169.jpgbin0 -> 27424 bytes
-rw-r--r--static/upload/Rama16wiki.jpgbin0 -> 98402 bytes
-rw-r--r--static/upload/bash_org-150x150.jpgbin0 -> 6326 bytes
-rw-r--r--static/upload/bash_org-300x213.jpgbin0 -> 13588 bytes
-rw-r--r--static/upload/bash_org.jpgbin0 -> 38892 bytes
-rw-r--r--static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-1024x624.jpgbin0 -> 70615 bytes
-rw-r--r--static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-150x150.jpgbin0 -> 4828 bytes
-rw-r--r--static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-1536x936.jpgbin0 -> 127714 bytes
-rw-r--r--static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-2048x1247.jpgbin0 -> 192066 bytes
-rw-r--r--static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-300x183.jpgbin0 -> 10719 bytes
-rw-r--r--static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-768x468.jpgbin0 -> 45658 bytes
-rw-r--r--static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01.jpgbin0 -> 196691 bytes
-rw-r--r--static/wp-content/uploads/2024/09/logo-150x150.pngbin0 -> 4903 bytes
-rw-r--r--static/wp-content/uploads/2024/09/logo-300x75.pngbin0 -> 7342 bytes
-rw-r--r--static/wp-content/uploads/2024/09/logo-768x192.pngbin0 -> 23012 bytes
-rw-r--r--static/wp-content/uploads/2024/09/logo.pngbin0 -> 16514 bytes
-rw-r--r--static/wp-content/uploads/2024/09/logo512-300x300.pngbin0 -> 49674 bytes
-rw-r--r--static/wp-content/uploads/2024/09/logo512-e1730113501989.pngbin0 -> 20735 bytes
-rw-r--r--static/wp-content/uploads/2024/09/logo512.pngbin0 -> 87498 bytes
-rw-r--r--static/wp-content/uploads/2024/09/photo-150x150.jpgbin0 -> 6468 bytes
-rw-r--r--static/wp-content/uploads/2024/09/photo-300x300.jpgbin0 -> 18843 bytes
-rw-r--r--static/wp-content/uploads/2024/09/photo.jpgbin0 -> 103613 bytes
-rw-r--r--static/wp-content/uploads/2024/09/vcard.vcf20
-rw-r--r--static/wp-content/uploads/2024/10/Rama16wiki-150x150.jpgbin0 -> 17892 bytes
-rw-r--r--static/wp-content/uploads/2024/10/Rama16wiki-300x169.jpgbin0 -> 27424 bytes
-rw-r--r--static/wp-content/uploads/2024/10/Rama16wiki.jpgbin0 -> 98402 bytes
-rw-r--r--static/wp-content/uploads/2024/10/bash_org-150x150.jpgbin0 -> 6326 bytes
-rw-r--r--static/wp-content/uploads/2024/10/bash_org-300x213.jpgbin0 -> 13588 bytes
-rw-r--r--static/wp-content/uploads/2024/10/bash_org.jpgbin0 -> 38892 bytes
-rw-r--r--themes/hugo-theme-stack/.devcontainer/Dockerfile31
-rw-r--r--themes/hugo-theme-stack/.devcontainer/devcontainer.json45
-rw-r--r--themes/hugo-theme-stack/.github/FUNDING.yml2
-rw-r--r--themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/bug_report.yml65
-rw-r--r--themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/config.yml5
-rw-r--r--themes/hugo-theme-stack/.gitignore4
-rw-r--r--themes/hugo-theme-stack/LICENSE674
-rw-r--r--themes/hugo-theme-stack/README.md28
-rw-r--r--themes/hugo-theme-stack/archetypes/categories.md7
-rw-r--r--themes/hugo-theme-stack/archetypes/default.md11
-rw-r--r--themes/hugo-theme-stack/archetypes/tags.md5
-rw-r--r--themes/hugo-theme-stack/assets/icons/archives.svg8
-rw-r--r--themes/hugo-theme-stack/assets/icons/arrow-back.svg6
-rw-r--r--themes/hugo-theme-stack/assets/icons/back.svg6
-rw-r--r--themes/hugo-theme-stack/assets/icons/brand-github.svg6
-rw-r--r--themes/hugo-theme-stack/assets/icons/brand-twitter.svg6
-rw-r--r--themes/hugo-theme-stack/assets/icons/categories.svg9
-rw-r--r--themes/hugo-theme-stack/assets/icons/clock.svg7
-rw-r--r--themes/hugo-theme-stack/assets/icons/copyright.svg7
-rw-r--r--themes/hugo-theme-stack/assets/icons/date.svg9
-rw-r--r--themes/hugo-theme-stack/assets/icons/hash.svg9
-rw-r--r--themes/hugo-theme-stack/assets/icons/home.svg8
-rw-r--r--themes/hugo-theme-stack/assets/icons/infinity.svg6
-rw-r--r--themes/hugo-theme-stack/assets/icons/language.svg10
-rw-r--r--themes/hugo-theme-stack/assets/icons/link.svg7
-rw-r--r--themes/hugo-theme-stack/assets/icons/messages.svg7
-rw-r--r--themes/hugo-theme-stack/assets/icons/rss.svg8
-rw-r--r--themes/hugo-theme-stack/assets/icons/search.svg7
-rw-r--r--themes/hugo-theme-stack/assets/icons/tag.svg7
-rw-r--r--themes/hugo-theme-stack/assets/icons/toggle-left.svg7
-rw-r--r--themes/hugo-theme-stack/assets/icons/toggle-right.svg7
-rw-r--r--themes/hugo-theme-stack/assets/icons/user.svg7
-rw-r--r--themes/hugo-theme-stack/assets/img/avatar.pngbin0 -> 373 bytes
-rw-r--r--themes/hugo-theme-stack/assets/scss/breakpoints.scss17
-rw-r--r--themes/hugo-theme-stack/assets/scss/custom.scss1
-rw-r--r--themes/hugo-theme-stack/assets/scss/external/normalize.scss349
-rw-r--r--themes/hugo-theme-stack/assets/scss/general.scss31
-rw-r--r--themes/hugo-theme-stack/assets/scss/grid.scss101
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/article.scss278
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/base.scss38
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/comments/disqusjs.scss394
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/footer.scss30
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/highlight/common.scss428
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/highlight/dark.scss14
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/highlight/light.scss14
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/layout/404.scss6
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/layout/article.scss461
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/layout/list.scss71
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/layout/search.scss82
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/menu.scss229
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/pagination.scss21
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/sidebar.scss199
-rw-r--r--themes/hugo-theme-stack/assets/scss/partials/widgets.scss67
-rw-r--r--themes/hugo-theme-stack/assets/scss/style.scss28
-rw-r--r--themes/hugo-theme-stack/assets/scss/variables.scss167
-rw-r--r--themes/hugo-theme-stack/assets/ts/color.ts63
-rw-r--r--themes/hugo-theme-stack/assets/ts/colorScheme.ts92
-rw-r--r--themes/hugo-theme-stack/assets/ts/createElement.ts34
-rw-r--r--themes/hugo-theme-stack/assets/ts/gallery.ts186
-rw-r--r--themes/hugo-theme-stack/assets/ts/main.ts112
-rw-r--r--themes/hugo-theme-stack/assets/ts/menu.ts83
-rw-r--r--themes/hugo-theme-stack/assets/ts/scrollspy.ts131
-rw-r--r--themes/hugo-theme-stack/assets/ts/search.tsx333
-rw-r--r--themes/hugo-theme-stack/assets/ts/smoothAnchors.ts37
-rw-r--r--themes/hugo-theme-stack/config.yaml149
-rw-r--r--themes/hugo-theme-stack/data/external.yaml44
-rwxr-xr-xthemes/hugo-theme-stack/debug.sh1
-rw-r--r--themes/hugo-theme-stack/exampleSite/.gitignore30
-rw-r--r--themes/hugo-theme-stack/exampleSite/LICENSE21
-rw-r--r--themes/hugo-theme-stack/exampleSite/README.md3
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/_index.md8
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/_index.zh-cn.md8
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/categories/Test/_index.md9
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/categories/Test/hutomo-abrianto-l2jk-uxb1BY-unsplash.jpgbin0 -> 52927 bytes
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/page/about/index.md34
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/page/about/index.zh-cn.md10
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/page/archives/index.md11
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/page/links/index.md37
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/page/links/ts-logo-128.jpgbin0 -> 2071 bytes
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/page/search/index.md13
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/chinese-test/florian-klauer-nptLmg6jqDo-unsplash.jpgbin0 -> 13854 bytes
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/chinese-test/helena-hertz-wWZzXlDpMog-unsplash.jpgbin0 -> 15530 bytes
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/chinese-test/hudai-gayiran-3Od_VKcDEAA-unsplash.jpgbin0 -> 18711 bytes
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/chinese-test/index.zh-cn.md39
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/chinese-test/luca-bravo-alS7ewQ41M8-unsplash.jpgbin0 -> 32400 bytes
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/emoji-support/index.md50
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpgbin0 -> 35369 bytes
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/markdown-syntax/index.md168
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/markdown-syntax/pawel-czerwinski-8uZPynIu-rQ-unsplash.jpgbin0 -> 55974 bytes
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/math-typesetting/index.md45
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/index.ar.md32
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/index.md51
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/matt-le-SJSpo9hQf7s-unsplash.jpgbin0 -> 14205 bytes
-rw-r--r--themes/hugo-theme-stack/exampleSite/content/post/rich-content/index.md67
-rw-r--r--themes/hugo-theme-stack/exampleSite/hugo.yaml269
-rw-r--r--themes/hugo-theme-stack/go.mod3
-rw-r--r--themes/hugo-theme-stack/i18n/ar.yaml74
-rw-r--r--themes/hugo-theme-stack/i18n/be.yaml72
-rw-r--r--themes/hugo-theme-stack/i18n/bg.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/bn.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/ca.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/cs.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/de.yaml74
-rw-r--r--themes/hugo-theme-stack/i18n/el.yaml70
-rw-r--r--themes/hugo-theme-stack/i18n/en.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/es.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/fa.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/fr.yaml72
-rw-r--r--themes/hugo-theme-stack/i18n/hi.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/hu.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/id.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/it.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/ja.yaml70
-rw-r--r--themes/hugo-theme-stack/i18n/ko.yaml72
-rw-r--r--themes/hugo-theme-stack/i18n/nl.yaml59
-rw-r--r--themes/hugo-theme-stack/i18n/oc.yaml72
-rw-r--r--themes/hugo-theme-stack/i18n/pl.yaml82
-rw-r--r--themes/hugo-theme-stack/i18n/pt-br.yaml67
-rw-r--r--themes/hugo-theme-stack/i18n/pt-pt.yaml67
-rw-r--r--themes/hugo-theme-stack/i18n/ru.yaml63
-rw-r--r--themes/hugo-theme-stack/i18n/sk.yaml71
-rw-r--r--themes/hugo-theme-stack/i18n/th.yaml70
-rw-r--r--themes/hugo-theme-stack/i18n/tr.yaml53
-rw-r--r--themes/hugo-theme-stack/i18n/uk.yaml71
-rw-r--r--themes/hugo-theme-stack/i18n/vi.yaml74
-rw-r--r--themes/hugo-theme-stack/i18n/zh-cn.yaml67
-rw-r--r--themes/hugo-theme-stack/i18n/zh-hk.yaml73
-rw-r--r--themes/hugo-theme-stack/i18n/zh-tw.yaml73
-rw-r--r--themes/hugo-theme-stack/images/screenshot.pngbin0 -> 51344 bytes
-rw-r--r--themes/hugo-theme-stack/images/tn.pngbin0 -> 24703 bytes
-rw-r--r--themes/hugo-theme-stack/layouts/404.html45
-rw-r--r--themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html6
-rw-r--r--themes/hugo-theme-stack/layouts/_default/_markup/render-image.html41
-rw-r--r--themes/hugo-theme-stack/layouts/_default/_markup/render-link.html3
-rw-r--r--themes/hugo-theme-stack/layouts/_default/archives.html35
-rw-r--r--themes/hugo-theme-stack/layouts/_default/baseof.html28
-rw-r--r--themes/hugo-theme-stack/layouts/_default/list.html85
-rw-r--r--themes/hugo-theme-stack/layouts/_default/rss.xml48
-rw-r--r--themes/hugo-theme-stack/layouts/_default/single.html46
-rw-r--r--themes/hugo-theme-stack/layouts/index.html19
-rw-r--r--themes/hugo-theme-stack/layouts/page/search.html33
-rw-r--r--themes/hugo-theme-stack/layouts/page/search.json26
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article-list/compact.html40
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article-list/default.html4
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article-list/tile.html39
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article/article.html11
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article/components/content.html5
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article/components/details.html61
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article/components/footer.html19
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article/components/header.html35
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article/components/links.html30
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article/components/math.html13
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article/components/photoswipe.html68
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article/components/related-content.html13
-rw-r--r--themes/hugo-theme-stack/layouts/partials/article/components/tags.html7
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/include.html3
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/beaudar.html46
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/cactus.html29
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/cusdis.html21
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/disqus.html22
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/disqusjs.html61
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/giscus.html52
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/gitalk.html31
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/remark42.html29
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/twikoo.html58
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/utterances.html46
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html27
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/waline.html34
-rw-r--r--themes/hugo-theme-stack/layouts/partials/data/description.html17
-rw-r--r--themes/hugo-theme-stack/layouts/partials/data/title.html38
-rw-r--r--themes/hugo-theme-stack/layouts/partials/footer/components/custom-font.html11
-rw-r--r--themes/hugo-theme-stack/layouts/partials/footer/components/script.html12
-rw-r--r--themes/hugo-theme-stack/layouts/partials/footer/custom.html0
-rw-r--r--themes/hugo-theme-stack/layouts/partials/footer/footer.html23
-rw-r--r--themes/hugo-theme-stack/layouts/partials/footer/include.html3
-rw-r--r--themes/hugo-theme-stack/layouts/partials/head/colorScheme.html39
-rw-r--r--themes/hugo-theme-stack/layouts/partials/head/custom.html0
-rw-r--r--themes/hugo-theme-stack/layouts/partials/head/head.html26
-rw-r--r--themes/hugo-theme-stack/layouts/partials/head/opengraph/include.html2
-rw-r--r--themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/base.html43
-rw-r--r--themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/twitter.html16
-rw-r--r--themes/hugo-theme-stack/layouts/partials/head/script.html0
-rw-r--r--themes/hugo-theme-stack/layouts/partials/head/style.html3
-rw-r--r--themes/hugo-theme-stack/layouts/partials/helper/external.html29
-rw-r--r--themes/hugo-theme-stack/layouts/partials/helper/icon.html6
-rw-r--r--themes/hugo-theme-stack/layouts/partials/helper/image.html61
-rw-r--r--themes/hugo-theme-stack/layouts/partials/pagination.html26
-rw-r--r--themes/hugo-theme-stack/layouts/partials/sidebar/left.html103
-rw-r--r--themes/hugo-theme-stack/layouts/partials/sidebar/right.html16
-rw-r--r--themes/hugo-theme-stack/layouts/partials/widget/archives.html35
-rw-r--r--themes/hugo-theme-stack/layouts/partials/widget/categories.html16
-rw-r--r--themes/hugo-theme-stack/layouts/partials/widget/search.html16
-rw-r--r--themes/hugo-theme-stack/layouts/partials/widget/tag-cloud.html16
-rw-r--r--themes/hugo-theme-stack/layouts/partials/widget/toc.html12
-rw-r--r--themes/hugo-theme-stack/layouts/shortcodes/bilibili.html23
-rw-r--r--themes/hugo-theme-stack/layouts/shortcodes/gitlab.html4
-rw-r--r--themes/hugo-theme-stack/layouts/shortcodes/quote.html15
-rw-r--r--themes/hugo-theme-stack/layouts/shortcodes/tencent.html10
-rw-r--r--themes/hugo-theme-stack/layouts/shortcodes/video.html14
-rw-r--r--themes/hugo-theme-stack/layouts/shortcodes/youtube.html13
-rw-r--r--themes/hugo-theme-stack/netlify.toml26
-rw-r--r--themes/hugo-theme-stack/theme.toml27
284 files changed, 12701 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..14119b5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.lock
+public/ \ No newline at end of file
diff --git a/archetypes/categories.md b/archetypes/categories.md
new file mode 100644
index 0000000..d771b29
--- /dev/null
+++ b/archetypes/categories.md
@@ -0,0 +1,7 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+image:
+style:
+ background: "#2a9d8f"
+ color: "#fff"
+--- \ No newline at end of file
diff --git a/archetypes/default.md b/archetypes/default.md
new file mode 100644
index 0000000..0556d3a
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,11 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+description:
+date: {{ .Date }}
+image:
+math:
+license:
+hidden: false
+comments: true
+draft: true
+--- \ No newline at end of file
diff --git a/archetypes/tags.md b/archetypes/tags.md
new file mode 100644
index 0000000..2fd2fd7
--- /dev/null
+++ b/archetypes/tags.md
@@ -0,0 +1,5 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+description:
+image:
+--- \ No newline at end of file
diff --git a/assets/img/logo.png b/assets/img/logo.png
new file mode 100644
index 0000000..4393a02
--- /dev/null
+++ b/assets/img/logo.png
Binary files differ
diff --git a/assets/jsconfig.json b/assets/jsconfig.json
new file mode 100644
index 0000000..d0d7a6e
--- /dev/null
+++ b/assets/jsconfig.json
@@ -0,0 +1,10 @@
+{
+ "compilerOptions": {
+ "baseUrl": ".",
+ "paths": {
+ "*": [
+ "../themes/hugo-theme-stack/assets/*"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/content/pages/jabber.md b/content/pages/jabber.md
new file mode 100644
index 0000000..0e9354d
--- /dev/null
+++ b/content/pages/jabber.md
@@ -0,0 +1,78 @@
+---
+title: "Jabber"
+date: 2024-11-03T16:10:32+03:00
+draft: false
+---
+
+<a href='https://compliance.conversations.im/server/neonxp.ru'><img src='https://compliance.conversations.im/badge/neonxp.ru'></a>
+
+## Быстрое вкатывание
+
+1. Регистрация через клиент или [через веб браузер на этой странице](https://neonxp.ru/pages/jabber/#регистрация)
+2. Быстрее всего использовать веб клиент: [https://neonxp.ru/chat](https://neonxp.ru/chat) или можно использовать клиент из списка ниже
+3. Добавить в список меня [i@neonxp.ru](xmpp:i@neonxp.ru) и войти в общий чат сервера [main@conf.neonxp.ru](xmpp:main@conf.neonxp.ru?join)
+
+## Возможности сервера
+
+- Аудио и видео звонки (есть свой turn-сервер)
+- Обмен файлами через сервер (300 мб на файл, 10 гб на пользователя. Пока так, нужно будет больше - подниму лимиты)
+- Полная совместимость с современными стандартами: https://compliance.conversations.im/server/neonxp.ru/
+- Мощный, быстрый и, главное, ненагруженный сервер!
+
+## Современные нативные клиенты:
+
+- Gajim для PC/Mac/Linux [Ссылка](https://gajim.org/download/)
+- Dino.im для PC/Mac/Linux [Ссылка](https://dino.im/#download)
+- Conversations для Android [Ссылка](https://f-droid.org/packages/eu.siacs.conversations/)
+- Conversations Classic для Android [Ссылка](https://dev.narayana.im/narayana/conversations-classic/releases)
+- Monal IM для iOS/Mac [Ссылка](https://monal-im.org/)
+- Siskin IM для iOS/Mac [Ссылка](https://siskin.im/)
+
+## Регистрация
+<form action="/register_web" method="POST">
+ <table style="border:0">
+ <tbody>
+ <tr>
+ <th style="border:0">Имя пользователя:</th>
+ <td style="border:0"><input name="username" required>@neonxp.ru</td>
+ </tr>
+ <tr>
+ <th style="border:0">Пароль:</th>
+ <td style="border:0"><input name="password" required type="password"></td>
+ </tr>
+ <tr>
+ <th style="border:0">Повтор пароля:</th>
+ <td style="border:0"><input name="confirm_password" required type="password"></td>
+ </tr>
+ <tr>
+ <td style="border:0" colspan="2">
+ <script src="https://www.google.com/recaptcha/api.js" async defer></script>
+ <div class="g-recaptcha" data-sitekey="6Le-lPwpAAAAAFDh-5V206r0JiravJ9V9tsFe1ju"></div>
+ <noscript>
+ <div style="width: 302px; height: 352px;">
+ <div style="width: 302px; height: 352px; position: relative;">
+ <div style="width: 302px; height: 352px; position: absolute;">
+ <iframe src="https://www.google.com/recaptcha/api/fallback?k=6Le-lPwpAAAAAFDh-5V206r0JiravJ9V9tsFe1ju"
+ frameborder="0" scrolling="no"
+ style="width: 302px; height:352px; border-style: none;">
+ </iframe>
+ </div>
+ <div style="width: 250px; height: 80px; position: absolute; border-style: none;
+ bottom: 21px; left: 25px; margin: 0px; padding: 0px; right: 25px;">
+ <textarea id="g-recaptcha-response" name="g-recaptcha-response"
+ class="g-recaptcha-response"
+ style="width: 250px; height: 80px; border: 1px solid #c1c1c1;
+ margin: 0px; padding: 0px; resize: none;" value="">
+ </textarea>
+ </div>
+ </div>
+ </div>
+ </noscript>
+ </td>
+ </tr>
+ <tr>
+ <td style="border:0" colspan="2"><input type="submit" value="Регистрация"></td>
+ </tr>
+ </tbody>
+ </table>
+</form> \ No newline at end of file
diff --git a/content/pages/me.md b/content/pages/me.md
new file mode 100644
index 0000000..4ea3195
--- /dev/null
+++ b/content/pages/me.md
@@ -0,0 +1,16 @@
+---
+title: "Обо мне"
+date: 2024-11-03T16:10:32+03:00
+draft: false
+---
+
+- E-mail: i@neonxp.ru
+- Jabber: [i@neonxp.ru](xmpp:i@neonxp.ru)
+- PGP: 7282 5661 A858 FFBD 0EF3 8BD5 35E3 3E1A B777 6B39
+- Казань, Татарстан, Российская Федерация
+
+Другие ссылки:
+- [Мой git](https://git.neonxp.ru)
+- [Мои Go пакеты](https://go.neonxp.ru)
+- [Хранилище ссылок](https://links.neonxp.ru)
+- [Telegram Канал](https://t.me/neonxplog)
diff --git a/content/pages/projects.md b/content/pages/projects.md
new file mode 100644
index 0000000..8751a56
--- /dev/null
+++ b/content/pages/projects.md
@@ -0,0 +1,11 @@
+---
+title: "Мои проекты"
+date: 2024-11-03T16:10:32+03:00
+draft: false
+---
+
+- [Джаббер сервер](/pages/jabber/)
+- https://sh.org.ru — возрождённый цитатник Рунета [исходники: https://gitrepo.ru/neonxp/ShOrgRu]
+- https://nixshare.ru — обмен буфером обмена для гиков [исходники: https://gitrepo.ru/neonxp/nixshare]
+- https://gist.neonxp.ru — мой pastebin
+- https://pic.neonxp.ru — хостинг картинок
diff --git a/content/post/2007-11-05.md b/content/post/2007-11-05.md
new file mode 100644
index 0000000..5002408
--- /dev/null
+++ b/content/post/2007-11-05.md
@@ -0,0 +1,13 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2007-11-05T16:54:00Z"
+guid: https://neonxp.ru/?p=90
+id: 90
+tags:
+- из ЖЖ
+title: прямой эфир &#8212; продолжение
+---
+
+только что досмотрели с джо все что было с кирком… грустно что больше НИКОГДА не будет продолжения… мне так будет не хватать пафоса ТОСа и лично тов. кирка…. \ No newline at end of file
diff --git a/content/post/2007-11-06.md b/content/post/2007-11-06.md
new file mode 100644
index 0000000..b2d2c2e
--- /dev/null
+++ b/content/post/2007-11-06.md
@@ -0,0 +1,13 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2007-11-06T16:53:00Z"
+guid: https://neonxp.ru/?p=88
+id: 88
+tags:
+- из ЖЖ
+title: прямой эфир &#8212; база гамма
+---
+
+сегодня лег в 5 утра, встал в 2… хожу как ни от мира сего… Когда вышел под вечер за сигаретами на меня нахлынул поток разных грустных воспоминаний о 2003-2004 годах… еще сегодня написала одна девушка которая достаточно давно перестала со мной разговаривать… странно… до сдачи работы не считая сегодняшнего дня остался один день… а сегодня я нифига не работал. завтра коллоквиум по физике.. почитал лекции три больше не мог… завтра самый ужасный день, среда… ненавижу среды… и почему они бывают чаще чем например четверги… \ No newline at end of file
diff --git a/content/post/2007-11-08.md b/content/post/2007-11-08.md
new file mode 100644
index 0000000..8e0d0c0
--- /dev/null
+++ b/content/post/2007-11-08.md
@@ -0,0 +1,13 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2007-11-08T16:51:00Z"
+guid: https://neonxp.ru/?p=86
+id: 86
+tags:
+- из ЖЖ
+title: прямой эфир &#8212; призрак оперы
+---
+
+сегодня с друзьями (не буду показывать пальцем на скудный френд лист) ходили на семинар Opera Software, была прекрасная дружеская атмосфера, обсирание мелкомягких, раздача футболок, дисков и автографов, диалоги “по делу” с разработчиками, умные рассказы, интересные презентации новых продуктов, таких как операмини 4.0 и опера 9.5 бета, которая во время синхронизации умудрилась очень неплохо обвалиться, хотя это не испортило впечатления от новых технологий. кстати, о технологиях, в бете меня больше всего поразила до глубины души поддержка технологии svg(замена флешу на xml) и маленький демо ролик на ней в котором было вставленно 3(!!!) видео ролика и выступающи разработчик вращал их мышкой. собственно семинар удался на славу, даже есть желание к ним идти работать. \ No newline at end of file
diff --git a/content/post/2007-12-11.md b/content/post/2007-12-11.md
new file mode 100644
index 0000000..01efb6f
--- /dev/null
+++ b/content/post/2007-12-11.md
@@ -0,0 +1,13 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2007-12-11T16:50:00Z"
+guid: https://neonxp.ru/?p=84
+id: 84
+tags:
+- из ЖЖ
+title: прямой эфир &#8212; подъезд дубль 2
+---
+
+стоим в подъезде, джо ненароко сказал слово “проблема”. я бы не придал этому бы этому значения если бы игорь не сказал “проблема….. проблема….. \*ЛЯ!!!” и тут вспомнили про проблемы на учебном фронте….. настроение упало до 0….. сейчас медленно пошло в минус….. и как так жить??! \ No newline at end of file
diff --git a/content/post/2007-12-26.md b/content/post/2007-12-26.md
new file mode 100644
index 0000000..a790481
--- /dev/null
+++ b/content/post/2007-12-26.md
@@ -0,0 +1,13 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2007-12-26T16:49:00Z"
+guid: https://neonxp.ru/?p=82
+id: 82
+tags:
+- из ЖЖ
+title: Ну вот и сессия пришла&#8230;
+---
+
+Хоть и начнется зачетная сессия 28го(!!!! это еще одна особенность моего ВУЗа) числа, но зачеты уже идут во всю. “И на нашей улице будет праздник”. У мну сдано уже 4 зачода есть. Неужели все будет хорошо?… \ No newline at end of file
diff --git a/content/post/2011-05-10.md b/content/post/2011-05-10.md
new file mode 100644
index 0000000..14914fe
--- /dev/null
+++ b/content/post/2011-05-10.md
@@ -0,0 +1,13 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2011-05-10T16:48:00Z"
+guid: https://neonxp.ru/?p=80
+id: 80
+tags:
+- разное
+title: Странное д.р.
+---
+
+Сегодня было самое странное из моих д.р.! Хоть я и узнал что дофига народа не придет, зато сегодня было запоздалое(или слишком ранее?) отмечание моей д.р.! Владимир(шеф мой) позвал меня после салюта в клуб “Джокер”, где выступали его знакомые (гр. “Листья травы”, “Макс и Ко.”, “Большой куш” и там к моему удивлению по его просьбе группа “Большой Куш” исполнила для меня песню группы Red Hot Chilli Peppers — Can’t stop! Я был поражен, удивлен, рад! Вот только приехал оттуда, еще не совсем трезв, но полон впечатлений! Вау! Это просто почти невероятно!!!! Уже можно сказать, что денюха удалась!! Посмотрим, что будет завтра! \ No newline at end of file
diff --git a/content/post/2011-09-11-1.md b/content/post/2011-09-11-1.md
new file mode 100644
index 0000000..b2927fd
--- /dev/null
+++ b/content/post/2011-09-11-1.md
@@ -0,0 +1,15 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2011-09-11T16:47:00Z"
+guid: https://neonxp.ru/?p=76
+id: 76
+tags:
+- разное
+title: Дождь идёт весь день
+---
+
+Люблю такую погоду, она настраивает на рабочий лад. Или на долгие прогулки под ним. Вечером нужно будет обязательно выбраться гулять.
+
+<figure class="wp-block-image">![](http://localhost:1313/img/posts/1315741048720.png)</figure><figure class="wp-block-image">![](http://localhost:1313/img/posts/1315741048721.png)</figure> \ No newline at end of file
diff --git a/content/post/2011-09-11-2.md b/content/post/2011-09-11-2.md
new file mode 100644
index 0000000..7472458
--- /dev/null
+++ b/content/post/2011-09-11-2.md
@@ -0,0 +1,13 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2011-09-11T16:48:00Z"
+guid: https://neonxp.ru/?p=78
+id: 78
+tags:
+- из ЖЖ
+title: Новая жизнь
+---
+
+Пора начинать новую жизнь. Вот и блог обновил. Всё старьё выкинул и сделал внешнюю уборку. Только ради всего, буду стараться не забивать на блог. Ибо уже не в первый раз. \ No newline at end of file
diff --git a/content/post/2011-09-11-3.md b/content/post/2011-09-11-3.md
new file mode 100644
index 0000000..374e49c
--- /dev/null
+++ b/content/post/2011-09-11-3.md
@@ -0,0 +1,13 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2011-09-11T16:46:00Z"
+guid: https://neonxp.ru/?p=74
+id: 74
+tags:
+- разное
+title: Традиционная картинка
+---
+
+<figure class="wp-block-image">![](http://localhost:1313/img/posts/76290b19.gif)</figure> \ No newline at end of file
diff --git a/content/post/2011-09-12.md b/content/post/2011-09-12.md
new file mode 100644
index 0000000..8ba3cf9
--- /dev/null
+++ b/content/post/2011-09-12.md
@@ -0,0 +1,17 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2011-09-12T16:45:00Z"
+guid: https://neonxp.ru/?p=72
+id: 72
+tags:
+- разное
+title: Очередное начало очередной безумной недели
+---
+
+Как же всё это уныло… Буэ… Зато сегодня ждем на собеседование нового человека. По резюме, вроде, адекватный человек. Не как ТОТ. Тьфу тьфу тьфу, чтоб не сглазить!
+
+*UPD:* Фейл, сглазил.
+
+*UPD2:* дабл фейл. Оба слились. \ No newline at end of file
diff --git a/content/post/2011-09-24.md b/content/post/2011-09-24.md
new file mode 100644
index 0000000..b25e94f
--- /dev/null
+++ b/content/post/2011-09-24.md
@@ -0,0 +1,34 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2011-09-24T16:44:00Z"
+guid: https://neonxp.ru/?p=70
+id: 70
+tags:
+- DozoR
+title: Отчет за неделю
+---
+
+Достаточно давно не писал, да и не о чём было особо писать. Работал, учился, болел. Сейчас на улице опять моя любимая погода: пасмурно и дождь, а я сижу на работе. Решил вот выйти в субботу, чтобы побольше всего сделать. Никого нет, тихо, спокойно, лепота!
+
+Вчера был на очередной игре DozoR’а. Игра была очень даже ничего. Хорошая, добротная, динамичная. Местами было действительно мало логики, чего только стоили строчки «стиха»:
+
+```
+«Большой пирог без пирога
+Выкину на улицу в траву»
+
+```
+
+Логика здесь такая:
+
+1. Большой пирог без пирога — остаётся слово «большой»
+2. В строке есть слово «улица»
+3. В итоге имеем «большую улицу»
+4. Переводим на татарский язык (зачем? почему? этого я так и не понял), получаем «зур урам»
+
+И большинство заданий были примерно такими же.
+
+Ну и картинки оставшиеся в телефоне после игры под катом, если интересно:
+
+<figure class="wp-block-image">![](http://localhost:1313/img/posts/2011-09-24_00.31.09.jpg)</figure><figure class="wp-block-image">![](http://localhost:1313/img/posts/2011-09-23_22.20.19.jpg)</figure><figure class="wp-block-image">![](http://localhost:1313/img/posts/2011-09-23_22.20.33.jpg)</figure> \ No newline at end of file
diff --git a/content/post/2011-11-20.md b/content/post/2011-11-20.md
new file mode 100644
index 0000000..6ebc7cd
--- /dev/null
+++ b/content/post/2011-11-20.md
@@ -0,0 +1,17 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2011-11-20T16:43:00Z"
+guid: https://neonxp.ru/?p=68
+id: 68
+tags:
+- разное
+title: Чем развлечься в субботу
+---
+
+Сегодня днём, совершенно неожиданно для себя, был приглашен на игру в пейнтбол. Играл я в первый раз, хотя уже давно имел желание открыть для себя это вид развлечения.
+
+<figure class="wp-block-image">![](http://localhost:1313/img/posts/paintball.jpg)</figure>Впечатления от игры сложно описать словами, ведь слова не способны передать то обилие положительных эмоций, что я получил. Конечно же, не обошлось и без мелких травм. В частности, на приложенном фото видны последствия для моей многострадальной спины попадания шариков с краской с близкой дистанции. Так же достаточно болезненным оказалось попадание в голову и локоть. Ощущение, как после удара камнем. Но, как ни странно, эти «боевые ранения» никак отрицательно не сказались на общем фане от игры.
+
+Так же, хотелось поблагодарить людей игравших со мной за отлично проведенное время. Надо будет как-нибудь повторить 😉 \ No newline at end of file
diff --git a/content/post/2011-11-21.md b/content/post/2011-11-21.md
new file mode 100644
index 0000000..76f6994
--- /dev/null
+++ b/content/post/2011-11-21.md
@@ -0,0 +1,18 @@
+---
+author: NeonXP
+categories:
+- Архив
+date: "2011-11-21T16:42:00Z"
+guid: https://neonxp.ru/?p=66
+id: 66
+tags:
+- 2ГИС
+- wine
+title: Решение проблемы с 2Гис
+---
+
+Из-за особенностей своего хобби мне часто приходится задействовать 2Гис. Но после ноябрьских обновлений данная программа перестала у меня адекватно работать, а именно начала зависать буквально от всего — от движения мыши, нажатия кнопок интерфейса и т.п. Что только я уже не пытался с этим с делать! В один момент уже был готов похоронить его и пытаться найти ему альтернативу.
+
+Но после упорного гугления проблема таки была решена! Не известно, в чем была проблема, но совместимость у дубля поломалась только с 1.3 веткой wine. Достаточно было откатиться на wine1.2, как всё тут же заработало!
+
+Казалось бы, такое мелкое решение не достойно такого повествования, но тем не менее, решение проблемы не было очевидным и потенциально, это может пригодится тому, кто как и я столкнется с этой проблемой. \ No newline at end of file
diff --git a/content/post/2021-02-13-jsonnet.md b/content/post/2021-02-13-jsonnet.md
new file mode 100644
index 0000000..36294b5
--- /dev/null
+++ b/content/post/2021-02-13-jsonnet.md
@@ -0,0 +1,49 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2021-02-13T22:08:19Z"
+guid: http://14
+id: 59
+tags:
+- go
+- it
+- разное
+title: Jsonnet
+---
+
+Редко такое бывает, что случайно натыкаешься на какую-то технологию и она вызывает вау-эффект и буквально переворачивает всё верх дном. На днях для меня такой технологией стал [Jsonnet](https://jsonnet.org/) от Google.
+
+<figure class="wp-block-image">![Jsonnet logo](/img/jsonnet.svg)</figure>В кратце, это надмножество JSON являющееся языком описания шаблонов. Пока звучит не очень круто, да? На деле это офигенный Тьюринг полный функциональный язык, результатом выполнения которого будет сформированый JSON (и не только) документ([или несколько документов](https://jsonnet.org/learning/getting_started.html#multi)).
+
+[Если интересно, рекомендую сразу переходить к туториалу.](https://jsonnet.org/learning/tutorial.html)
+
+## Почему же это круто?
+
+Ну, во-первых, он реально мощный и простой. С его помощью можно формировать документы любой сложности.
+
+Во-вторых, его можно встроить в свою программу на Go ([и не только, но на Go — проще всего](https://jsonnet.org/ref/bindings.html)), и это даст бесплатно мощный DSL для написания очень гибких конфигов.
+
+В третьих, ну камон, приятно же когда компьютер берет на себя рутинную работу по формированию больших и сложных JSON’ов!
+
+## Пример
+
+Накидал простенький пример который формирует конфигурацию пайплайна для гипотетической CI системы:
+
+```
+local map(arr, predicate) = // определяем функцию map if std.length(arr) == 0 then [] else [predicate(arr[0])] + map(arr[1:], predicate) // функциональненько!;local tasks = [['go1.14', '1.14-alpine'],['go1.15', '1.15-alpine'],['go1.16-RC', '1.16-rc-alpine']];local commands = ['go build', 'go test']; // Общая часть{ // Результирующий JSON pipeline: map(tasks, function (task) { // Вызов map от tasks name: task[0], image: "golang:"+task[1], commands: commands, })}
+```
+
+Результат:
+
+```
+{ "pipeline": [ { "commands": [ "go build", "go test" ], "image": "golang:1.14-alpine", "name": "go1.14" }, { "commands": [ "go build", "go test" ], "image": "golang:1.15-alpine", "name": "go1.15" }, { "commands": [ "go build", "go test" ], "image": "golang:1.16-rc-alpine", "name": "go1.16-RC" } ]}
+```
+
+Круть же!
+
+Да, на небольшом примере не очень показательно, но даже тут, скажем, при добавлении новой цели сборки будет достаточно слегка подправить массив tasks и автоматически сформируется все остальное, а не копипаст целой секции и ручная правка в нужных местах.
+
+Я оставил за скобками то, что этот шаблонизатора позволяет формировать не только JSON но и фактически любой другой текстовый формат. И даже из одного скрипта формировать несколько документов разного формата. При этом локальные переменные будут использоваться общие. Теоретически, если упороться, можно одним скриптом сформировать весь /etc на новом сервере. Почему бы и нет?)
+
+Не знаю смог ли передать ощущение своего восторга, но я охренеть как рад и жду выходных, чтобы с головой нырнуть в эту технологию, которая открывает столько новых интересных перспектив! \ No newline at end of file
diff --git a/content/post/2021-05-13.md b/content/post/2021-05-13.md
new file mode 100644
index 0000000..54af8a9
--- /dev/null
+++ b/content/post/2021-05-13.md
@@ -0,0 +1,56 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2021-05-13T15:37:01Z"
+guid: http://13
+id: 58
+tags:
+- it
+- паранойя
+- разное
+title: Немного о цифровой гигиене
+---
+
+## Вступление
+
+Как раз вступление тут особо и не нужно. Ни для кого не открою америки, что в современном цифровом обществе все мы являемся товаром для интернет-медиа гигантов, того же фейсбука да гугла. Не скажу что это для меня, как личности опасно или вредно, но мне это неприятно. Решил с этим что-то делать.
+
+## Вводные
+
+- В интернетах я уже очень давно и много где и как “наследил” своими данными. И с этим уже ничего не поделать.
+- У меня в телефоне и на всех компьютерах куча приложений работающих с интернетом, и не только мессенджеры.
+- У меня достаточно узкий круг людей с кем бы я хотел быть на связи, и не хочу чтобы мои действия как-то ухудшили или усложнили их жизнь.
+- Вопрос анонимности для меня не стоит, я не анонимен и это моё осознанное решение. Я законопослушный человек и прятаться мне не от кого. И да, я знаю что этот тезис стараниями либерах нынче пытаются выставить как глупость, но нет. Глупость — это слушать либерах, а не иметь свою голову на плечах. И контртезис “Гы гы гы, ну раз тебе нечего скрывать — поставь камеру у себя в спальне и ванной” даже комментировать не буду в силу его ущербности.
+- Я пользователь техники Apple и с этим уже ничего не поделать, менять целиком экосистему для меня не вариант (это очень дорого, бессмысленно, а местами и невозможно, например, рабочий мак мне поменять не на что). И да, есть наивная надежда что у яблок в плане приватности всё получше чем у ведроидов. Во всяком случае по сравнению со стоком. Гиковские прошивки с вырезанными зондами в расчет не беру, верю что у них совсем всё хорошо.
+
+## Цели
+
+1. Уменьшить информационный шум вокруг себя и тем самым улучшить качество жизни.
+2. Уменьшить свой “информационный след”
+3. Иметь больше контроля над своими данными, чтобы мои волосы стали мягкими и шелковистыми.
+
+## Наброски плана
+
+1. Перейти максимально на собственные ресурсы, которые я контролирую и которые *точно* не сливают ничего налево.Примерно так: социалки =&gt; <https://soc.neonxp.ru/> , GitHub =&gt; <https://gitrepo.ru/> , Облачные диски =&gt; локальный NAS Synology и т.д.
+2. Мне надо сократить мессенджеры в идеале до одного, не считая корпоративного рабочего. Тут всё просто — оставляю Telegram, остальные сношу.
+3. Мне надо отказаться от неэтичных социальных сетей, где я не могу полностью контролировать свои данные.
+4. При отказе от социальных сетей чтобы не доставить проблем моим контактам надо оставить “новый адрес” по которому со мной можно связаться и, например, этот пост. Я не хочу чтобы для всех мои действия были прозрачны и понятны, а не “молча удалиться” оставив кого-то в недоумении.
+5. Везде где возможно отключить или заблокировать телеметрию, чтобы как можно меньше моих данных неконтролируемо утекало. Да, полностью не перекрыть, но сократить возможно.
+6. Для связи с “миром” оставить только e-mail как наиболее удобный асинхронный метод коммуникации.
+
+## Дальнейшие шаги
+
+1. Превратить наброски плана в цельный план. Написать манифест? Возможно.
+2. Подготовить “визитку” с актуальными контактами и объяснением что произошло. Причем как в виде изображения, так и текста.
+3. Вышеуказанную визитку поместить на уже неактуальных для меня местах обитания (инстаграм, вк и проч). Удаляться не хочу. Жалко контент за столько лет, да и пункт 3 предыдущего абзаца.
+4. Удалить “лишние” приложения от вышеуказанных сервисов.
+5. Разлогиниться в этих сервисах и очистить браузеры от них, чтобы исключить треккинг на сторонних сайтах.
+6. ?????
+7. PROFIT!
+
+## Обратная связь
+
+Очень бы хотелось получить обратную связь по моему плану. Комментарии про то что упустил и предложения улучшений приветствуются в комментариях к посту, в комментариях к [телеграм каналу](https://t.me/neonxp), или на почту <a.kiryukhin@mail.ru> (кстати, стоит наверное и почту перевести к себе? Но пока уровень сервиса врядли смогу адекватный обеспечить)
+
+*UPD:* Да, я знаю что уже данные так и останутся в чужих руках, но со временем они будут всё больше и больше протухать, а мой “цифровой профиль” терять актуальность. Ведь я не скала, я тоже меняюсь и ухожу от этого профиля. \ No newline at end of file
diff --git a/content/post/2022-05-30.md b/content/post/2022-05-30.md
new file mode 100644
index 0000000..2ea3d0d
--- /dev/null
+++ b/content/post/2022-05-30.md
@@ -0,0 +1,25 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2022-05-30T23:37:00Z"
+guid: http://12
+id: 57
+tags:
+- блог
+- моё
+title: Возрождение?
+---
+
+Определенно, вести блог это не мое. Учитывая, что последний пост был год назад — sad but true.
+
+Не буду говорить, что “вот сейчас то уж точно буду вести регулярно”. Нет не буду.
+
+Но раз в полгода-год, наверное все же буду.
+
+Из новостей, что не писал в канал, наверное, только парочка:
+
+1. сейчас всё свободное время пилю свой петпроджект 😉 Пока что выходит ух какая красота. Но об этом как-нибудь в другой раз, как говорится, пол работы не показывают 🙂
+2. в ленивом режиме начали заниматься вопросами улучшения жилищных условий. Давно пора.
+
+До встречи когда-нибудь потом 🙂 \ No newline at end of file
diff --git a/content/post/2022-05-31-golang-1.md b/content/post/2022-05-31-golang-1.md
new file mode 100644
index 0000000..87514e0
--- /dev/null
+++ b/content/post/2022-05-31-golang-1.md
@@ -0,0 +1,36 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2022-05-31T01:00:00Z"
+guid: http://11
+id: 56
+tags:
+- go
+- it
+title: Golang подборка 1
+---
+
+Просто собираю подборку интересных ссылок по гошке на почитать потом.
+
+<figure class="wp-block-image">![Golang links](/img/go.jpg)</figure>- [Extra](https://github.com/neonxp/extra) — Моё. Пакет с разными полезными функциями без дополнительных зависимостей.
+- [Серия видосов про создание игры в стиле Animal Crossing на golang с помощью raylib](https://www.youtube.com/watch?v=iWp-mCIQgMU&list=PLVotA8ycjnCsy30WQCwVU5RrZkt4lLgY5&index=1)
+- [Самописный распределенный типа Postgres](https://notes.eatonphil.com/distributed-postgres.html). Под капотом raft от hashicorp, boltdb и самое интересное — парсинг SQL
+- Рассчет расстояния между двумя Geo точками:
+
+```
+import "math"
+...
+// https://en.wikipedia.org/wiki/Haversine_formula
+func GetDistance(lat1, lon1, lat2, lon2 float64) float64 {
+ lat1 *= math.Pi / 180
+ lon1 *= math.Pi / 180
+ lat2 *= math.Pi / 180
+ lon2 *= math.Pi / 180
+ return 12742 * math.Asin(math.Sqrt(math.Pow(math.Sin((lat2-lat1)/2), 2)+math.Cos(lat1)*math.Cos(lat2)*math.Pow(math.Sin((lon2-lon1)/2), 2)))
+}
+
+
+```
+
+- [god](https://github.com/pioz/god) — Утилита подгатавливающая демоны из go программы. Для меня ценное — что генерит systemd конфиги. \ No newline at end of file
diff --git a/content/post/2023-01-12-gitrepo.md b/content/post/2023-01-12-gitrepo.md
new file mode 100644
index 0000000..8635d1d
--- /dev/null
+++ b/content/post/2023-01-12-gitrepo.md
@@ -0,0 +1,55 @@
+---
+author: NeonXP
+categories:
+- Мои проекты
+date: "2023-01-12T20:22:00Z"
+guid: http://10
+id: 55
+tags:
+- it
+- моё
+title: GitRepo.ru
+---
+
+# Сегодня серьезно переделал свой хостинг [репозиториев кода](https://gitrepo.ru/):
+
+- Переехал на большой арендованный сервак
+- Привел в порядок оркестрацию вокруг сервака с использованием Docker Compose
+- Gitea заменил на её форк [Forgejo](https://forgejo.org/)
+- Впилил CI/CD на основе [Woodpecker CI](https://woodpecker-ci.org/)
+
+Приглашаю пользоваться заместо бездуховного западного github: <https://gitrepo.ru/>
+
+Сервер физически находится в датацентре в Москве у весьма годного провайдера Selectel.
+
+Тем более, время сейчас неспокойное и неизвестно когда github станет недоступен для РФ, а GitRepo — он вот тут, в нашей стране.
+
+## Немного про устройство
+
+Расскажу немного как я организовал себе Ops сервиса.
+
+У меня на руках `docker-compose.yml` который полностью описывает всю конфигурацию сервака, примерно так:
+
+<div class="highlight">```yml
+<span style="display:flex;"><span><span style="color:#f92672">version</span>: <span style="color:#e6db74">"3"</span></span></span><span style="display:flex;"><span></span></span><span style="display:flex;"><span><span style="color:#f92672">services</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">caddy</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">image</span>: <span style="color:#ae81ff">caddy:2.6.2-alpine</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">container_name</span>: <span style="color:#ae81ff">gateway</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">restart</span>: <span style="color:#ae81ff">unless-stopped</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">ports</span>:</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">"80:80"</span></span></span><span style="display:flex;"><span> - <span style="color:#e6db74">"443:443"</span></span></span><span style="display:flex;"><span> - <span style="color:#e6db74">"443:443/udp"</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">volumes</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">./Caddyfile:/etc/caddy/Caddyfile</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">caddy_data:/data</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">caddy_config:/config</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">networks</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">gateway</span></span></span><span style="display:flex;"><span></span></span><span style="display:flex;"><span> <span style="color:#f92672">git</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">image</span>: <span style="color:#ae81ff">codeberg.org/forgejo/forgejo:1.18.0-1</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">container_name</span>: <span style="color:#ae81ff">git</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">environment</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">USER_UID=1000</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">USER_GID=1000</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">TZ=Europe/Moscow</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">USER=git</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">GITEA__database__DB_TYPE=postgres</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">GITEA__database__HOST=db:5432</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">GITEA__database__NAME=${PG_NAME}</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">GITEA__database__USER=${PG_USER}</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">GITEA__database__PASSWD=${PG_PASS}</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">restart</span>: <span style="color:#ae81ff">always</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">networks</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">gitea</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">gateway</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">volumes</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">/home/git/.ssh/:/data/git/.ssh</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">forgejo:/data</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">/etc/timezone:/etc/timezone:ro</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">/etc/localtime:/etc/localtime:ro</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">ports</span>:</span></span><span style="display:flex;"><span> - <span style="color:#e6db74">"127.0.0.1:2222:22"</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">depends_on</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">db</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">condition</span>: <span style="color:#ae81ff">service_healthy</span></span></span><span style="display:flex;"><span></span></span><span style="display:flex;"><span> <span style="color:#f92672">db</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">image</span>: <span style="color:#ae81ff">postgres:13</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">restart</span>: <span style="color:#ae81ff">always</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">environment</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">POSTGRES_USER=${PG_USER}</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">POSTGRES_PASSWORD=${PG_PASS}</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">POSTGRES_DB=${PG_NAME}</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">healthcheck</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">test</span>: <span style="color:#ae81ff">/usr/bin/pg_isready</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">interval</span>: <span style="color:#ae81ff">5s</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">timeout</span>: <span style="color:#ae81ff">10s</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">retries</span>: <span style="color:#ae81ff">120</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">networks</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">gitea</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">volumes</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">postgres:/var/lib/postgresql/data</span></span></span><span style="display:flex;"><span> </span></span><span style="display:flex;"><span> <span style="color:#f92672">woodpecker-server</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">image</span>: <span style="color:#ae81ff">woodpeckerci/woodpecker-server:latest</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">volumes</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">woodpecker-server-data:/var/lib/woodpecker/</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">environment</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">WOODPECKER_OPEN=true</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">WOODPECKER_GITEA=true</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">WOODPECKER_GITEA_URL=https://gitrepo.ru</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">WOODPECKER_GITEA_CLIENT=${GITEA_CLIENT}</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">WOODPECKER_GITEA_SECRET=${GITEA_SECRET}</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">WOODPECKER_HOST=https://ci.gitrepo.ru</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">WOODPECKER_ADMIN=neonxp</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">networks</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">gitea</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">gateway</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">depends_on</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">git</span></span></span><span style="display:flex;"><span></span></span><span style="display:flex;"><span> <span style="color:#f92672">woodpecker-agent</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">image</span>: <span style="color:#ae81ff">woodpeckerci/woodpecker-agent:latest</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">command</span>: <span style="color:#ae81ff">agent</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">restart</span>: <span style="color:#ae81ff">always</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">depends_on</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">woodpecker-server</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">volumes</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">/var/run/docker.sock:/var/run/docker.sock</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">environment</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">WOODPECKER_SERVER=woodpecker-server:9000</span></span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}</span></span></span><span style="display:flex;"><span> <span style="color:#f92672">networks</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">gitea</span></span></span><span style="display:flex;"><span> </span></span><span style="display:flex;"><span><span style="color:#f92672">volumes</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">woodpecker-server-data</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">caddy_data</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">caddy_config</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">forgejo</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">postgres</span>:</span></span><span style="display:flex;"><span></span></span><span style="display:flex;"><span><span style="color:#f92672">networks</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">gateway</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">gitea</span>:</span></span><span style="display:flex;"><span> <span style="color:#f92672">external</span>: <span style="color:#66d9ef">false</span></span></span>
+```
+
+</div>а рядом лежит `.env` файлик с значениями переменных `${...}`.
+
+Запускаю деплой я с локального компьютера, предварительно добавив удаленный сервер в [контекст докера](https://docs.docker.com/engine/context/working-with-contexts/):
+
+```
+docker context create gitrepo --docker "host=ssh://gitrepo.ru" # Создаю новый контекст для удаленного сервераdocker use gitrepo # Все последующие docker команды выполняются на удаленном сервереdocker use default # Возвращаюсь в локальный контекст
+```
+
+## Оставшиеся проблемы
+
+Сейчас так получается, что Caddyfile должен лежать на удаленном сервере, т.к. часть конфига
+
+<div class="highlight">```yml
+<span style="display:flex;"><span><span style="color:#f92672">volumes</span>:</span></span><span style="display:flex;"><span> - <span style="color:#ae81ff">./Caddyfile:/etc/caddy/Caddyfile</span></span></span>
+```
+
+</div>выполняется в контексте именно удаленного сервера, а значит при его апдейте на локальном серваке приходится делать SCP этого файла на сервак. Такое себе.
+
+Как это решить — есть интересная идея, но это уже в другой раз. \ No newline at end of file
diff --git a/content/post/2023-05-26-gist.md b/content/post/2023-05-26-gist.md
new file mode 100644
index 0000000..f6aaa9c
--- /dev/null
+++ b/content/post/2023-05-26-gist.md
@@ -0,0 +1,20 @@
+---
+author: NeonXP
+categories:
+- Мои проекты
+date: "2023-05-26T17:40:21Z"
+guid: http://9
+id: 54
+tags:
+- it
+- моё
+title: Импортозамещение Gist
+---
+
+И в догонку к комментариям, запустил на своём серваке свой аналог Gist’ов от GitHub.
+
+Вот и он: [gist.neonxp.ru](https://gist.neonxp.ru/)
+
+Пользуйтесь 🙂
+
+[Другие мои проекты](/projects) \ No newline at end of file
diff --git a/content/post/2023-07-24-tls.md b/content/post/2023-07-24-tls.md
new file mode 100644
index 0000000..4bd6cea
--- /dev/null
+++ b/content/post/2023-07-24-tls.md
@@ -0,0 +1,48 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2023-07-24T20:04:17Z"
+guid: http://8
+id: 53
+tags:
+- it
+- Россия
+title: Немного мыслей о TLS (HTTPS) в России
+---
+
+Накопилось немного мыслей относительно того, что может грозить нам (и мне) в связи с трендом на “балканизацию” рунета.
+
+И самое болезненное место — HTTPS который нынче стандарт де-факто в современных интернетах. А болезненное оно потому, что целиком и полностью контролируется другой стороной нынешного противостояния. Все доверенные удостоверяющие центры принадлежат странам “коллективного запада”. Помню, были ещё какие-то китайские, вроде, но с ними был какой-то скандал и не факт что они есть.
+
+Есть относительно [доверенный УЦ от Минцифры](https://www.gosuslugi.ru/tls). Это здорово и я это всецело поддерживаю. Вот только есть момент. Он не для нас, простых людей, и при попытке его получить видим то, что на скриншоте ниже. А сранный Firefox вообще хочет его внести в черный список, чтобы даже специально его нельзя было установить. В общем, пока его я поставить не могу даже при всём желании.
+
+<figure class="wp-block-image">![Услуга предоставляется только юридическим лицам](/img/posts/20230724_202627.png)</figure>Какие ещё альтернативы есть, если нас вдруг прокинет Let’s encrypt?
+
+1. Не использовать HTTPS вообще. Я же не магазин и у меня нет форм логина, которые требуют шифрования. Так-то оно так, да не так. Браузеры уже сейчас очень косо смотрят на “обычные”, не HTTPS сайты, а в дальнейшем, не удивлюсь если перестанут открывать вообще. Так же на HTTP сайтах не работают прикольные браузерные API типа геолокации (наверное, это в каком-то роде даже плюс 😉 ). Ну и ещё проблема, что, например, этот сайт без HTTPS вообще не может работать, ибо для доменов зоны .dev насильно включено HSTS и они не могут работать не по HTTPS. Последнее то я решу старым добрым доменом neonxp.ru, но тем не менее.
+2. Самоподписанные сертификаты. Вот это уже более менее похоже на правду! Да, такие сайты надо добавлять в исключения и мороки с сертификатами чуть больше. Но тут та же история с доменами .dev. Для них самоподписаные не катят. Выход — опять таки старый добрый neonxp.ru.
+
+К чему я всё это? А то что в случае “балканизации” мы остаемся без нормального валидного HTTPS. Для себя я выбрал второй путь, с самоподписанными сертификатами. Чекнуть как работает можно на зеркале блога на <https://neonxp.ru> . Там я выпустил сам себе сертификат на домен от своего собственного удостоверяющего центра 🙂 А доверять ему или не доверять — дело посетителей сайта.
+
+Если доверяете мне то [вот сертификат моего УЦ](/files/root_ca.crt), а установка такая же как сертификата Минцифры 🙂
+
+Ну и совсем краткая инструкция как выпустить сертификат для себя:
+
+1. `openssl genrsa -out root_ca.key 4096` — создание секретного ключа УЦ (должен храниться в безопасности!)
+2. `openssl req -x509 -new -key root_ca.key -days 3650 -out root_ca.crt` — создаем сам сертификат УЦ (он НЕ секретный). Я указал срок действия 10 лет, но это потому что я ленивый и не хочу его перегенеривать каждый год. Так делать не советую.
+3. `openssl genrsa -out server.key 4096` — создаем секретный ключ уже для конкретного сайта (и поддоменов)
+4. `openssl req -new -key server.key -subj "/CN=neonxp.ru/CN=*.neonxp.ru" -out server.csr` — генерируем файл запроса для конкретного сайта
+5. Создаем файл `openssl.cnf` с примерно таким содержимым:
+ ```
+ ```
+
+ ``[SAN]``
+ `subjectAltName = @alt_names`
+ `[alt_names]`
+ `DNS.1 = neonxp.ru`
+ `DNS.2 = *.neonxp.ru`
+6. И, наконец, создаем сертификат для сайта, который будет подписан ключами server.key и root\_ca.key (то есть и своим удостоверяющим центром тоже): `openssl x509 -req -in server.csr -CA root_ca.crt -CAkey root_ca.key -CAcreateserial -out server.crt -days 365 -extensions SAN -extfile openssl.cnf`
+
+В общем, всё. Полученные root\_ca.crt (но не root\_ca.key!), server.key и server.crt можно вносить в конфигурацию используемого вебсервера. А так же внести root\_ca.crt в доверенные для себя.
+
+Так у меня выглядят [сертификат на сайт](/img/posts/20230724_204209.png) и [сертификат УЦ](/img/posts/20230724_204325.png). \ No newline at end of file
diff --git a/content/post/2023-12-29.md b/content/post/2023-12-29.md
new file mode 100644
index 0000000..3f80498
--- /dev/null
+++ b/content/post/2023-12-29.md
@@ -0,0 +1,22 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2023-12-29T00:15:44Z"
+guid: http://7
+id: 52
+tags:
+- блог
+- разное
+title: Переезд и проблемы обновления
+---
+
+Немного новостей.
+
+Начну с грустного. Крайне неудачно обновил forgejo на gitrepo.ru. В общем, БД побилась без возможности восстановления. Репозитории я спас, обращайтесь — пришлю архив репозиториев.
+
+Очень грустно, я был крайне расстроен. Штош, теперь настроил зато постоянные бекапы БД и данных на локальный NAS. Прошу прощения у пользователей, я очень виноват.
+
+А теперь о негрустном. Всё же решил что мне больше нравится основным домен не .dev, а именно .ru. Времена неспокойные — лучше перестраховаться и сделать ставку именно на национальный домен, а не на международный. К тому же у .dev домена есть неприятная особенность, что он требует обязательно валидного (то есть одобренного западными “партнерами”) сертификата. А это не дело, как я уже [писал в заметке](https://neonxp.ru/posts/2023-07-24-tls/).
+
+Пока что как-то так 🤷🏻‍♂️ \ No newline at end of file
diff --git a/content/post/2024-01-03.md b/content/post/2024-01-03.md
new file mode 100644
index 0000000..bda3cf0
--- /dev/null
+++ b/content/post/2024-01-03.md
@@ -0,0 +1,15 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2024-01-03T17:28:40Z"
+guid: http://6
+id: 51
+tags:
+- блог
+title: Архив
+---
+
+Покапавшись по вебархиву смог вытащить древние посты с разных моих старых блогов. В основном, кринжовые, конечно, но это моя жизнь, как она была в то время. Так что пусть будут.
+
+[Архив блога](https://neonxp.ru/category/archive/) \ No newline at end of file
diff --git a/content/post/2024-02-21-tls.md b/content/post/2024-02-21-tls.md
new file mode 100644
index 0000000..759f1e0
--- /dev/null
+++ b/content/post/2024-02-21-tls.md
@@ -0,0 +1,49 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2024-02-21T21:51:29Z"
+guid: http://5
+id: 50
+tags:
+- it
+- Россия
+title: Конфигурация HTTPS с сертификатом от Минцифры
+---
+
+Третьего дня потратил достаточно много времени на установку на данном сайте сертификата от Минцифры.А поскольку сертификат краткоживущий (90 дней) — заметка мне самому пригодится на будущее.
+
+Началось всё с того, что я с удивлением обнаружил, что на госуслугах теперь можно выпустить сертификат для домена физлицу.Это меня обрадовало, хотя ранее я приунывал что нет никакой альтернативы простым смертным. Теперь есть. <del>Закрывайте буржуйнет.</del>
+
+Поехали!
+
+1. Идём сюда: <https://www.gosuslugi.ru/627603/1/form>
+2. По приведенной инструкции генерируем файл запроса сертификата. Вкратце так (только вместо neonxp.ru указываем свой домен):
+ ```
+ ```
+
+ ``openssl req -out neonxp.ru.csr -new -subj "/C=RU/CN=neonxp.ru" -addext "keyUsage = digitalSignature, keyEncipherment" -addext "subjectAltName=DNS: neonxp.ru" -addext "extendedKeyUsage = serverAuth" -newkey rsa:2048 -nodes -keyout neonxp.ru.key``
+ Важно! Нужно сохранить файл ключа neonxp.ru.key в надежном месте. Если он попадет в чужие руки — нужно будет отзывать сертификат и начинать всё заново!SAN и Wildcard пока не поддерживается, но что имеем — то и имеем. Но по слухам таки будут, как минимум SAN.
+3. Полученный файл csr загружаем там же на госуслуги
+4. Ждём не долго (реально недолго, у меня прислали сертификат буквально через несколько минут!)
+5. В ответ придёт файл с рандомным названием. Сохраняем его туда, где лежат другие файлы под названием “домен.crt”
+6. Скачиваем корневой и промежуточные сертификаты:
+ ``wget https://gu-st.ru/content/Other/doc/russian_trusted_root_ca.cerwget https://gu-st.ru/content/Other/doc/russian_trusted_sub_ca.cer`````
+ ```
+7. Преобразуем скачанный сертификат в формат PEM:
+ ```
+ ```
+
+ `<pre tabindex="0">openssl x509 -in neonxp.ru.crt -out neonxp.cer -outform PEM</pre>`
+8. Соединяем свой сертификат и минцифровские в один бандл:
+ ```
+ ```
+
+ ``cat neonxp.cer russian_trusted_sub_ca_pem.cer russian_trusted_root_ca_pem.cer > chain.cer``
+9. Используем полученный бандл и сгенерированный в пункте 2 файл ключа в конфигурации вебсервера. У меня используется Caddy, поэтому мой конфиг выглядит так:
+ ```
+ ```
+
+ `<pre tabindex="0">neonxp.ru:443 { tls /data/ssl/chain.cer /data/ssl/neonxp.ru.key ...}</pre>`
+
+В общем-то, всё. Как настанет время продлевать — я дополню заметку деталями именно продления. Если будут вопросы — пишите, попробуем решить. \ No newline at end of file
diff --git a/content/post/2024-06-01.md b/content/post/2024-06-01.md
new file mode 100644
index 0000000..81148e1
--- /dev/null
+++ b/content/post/2024-06-01.md
@@ -0,0 +1,68 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2024-06-01T21:05:55Z"
+guid: http://4
+id: 49
+tags:
+- it
+- разное
+title: Вам не нужны пуши!
+---
+
+Я не шучу. Серьёзно.
+
+С неделю назад меня осенила крайне простая мысль, которая ранее, почему-то, мне не приходила.
+
+Но сначала, две вводных, или, скажем, тезиса, которые послужили для вывода этой мысли:
+
+**Тезис №1**
+
+Меня действительно огорчает количество пушей которые постоянно сыплются мне на телефон. Это вызывает раздражение сразуна нескольких уровнях:
+
+1. Сам момент их прихода — я автоматически смотрю на телефон, что же пришло
+2. Если я игнорирую пуш — он потом висит в шторке вызывая раздражение
+3. Очень часто это сранная реклама от какого-нибудь озона или магнит маркета (бывш. KazanExpress)
+
+Но бывают же и полезные пуши! Например, уведомления от Госуслуг или информация что заказ доставлен ну илисообщения в мессенджерах.
+
+То есть, как будто, ради вышеуказанных полезных пушей, я должен терпеть и тонну бесполезного говна!
+
+**Тезис №2**
+
+Ну и вторая вводная, которая, какмне кажется подтолкнула меня — я всегда любил *простые* и открытые технологии, какдревние, типа RSS, e-mail, irc, так и новые, но такие же простые и открытые, как, например, gemini (да, сейчас он наэтом сайте сломан, но я его починю на днях, честно!), федиверс и прочие подобные. Кстати, сейчас подумалось, что именноэти качества меня и так сильно влюбили в golang 🙂
+
+## Та самая простая мысль
+
+На стыке двух вышеуказанных тезисов у меня внезапно для себя самого и синтезировалась крайне простая мысль:
+
+> **<u>Действительно</u>** важные вещи всегда приходят на электропочту, а сообщения в мессенджерах — это не срочно!
+
+Таким образом, запретив на телефоне вообще все пуши кроме электропочты я избавился от этого угнетающего информационногошума, оставив только полезный сигнал.
+
+-Хей, да на почте же один спам! — скажешь ты мне
+
+На самом деле, уже давно нет. Я лично использую почту mail.ru (в данном случае, это не очень важно и относится к любой)и на ней спама как такового уже давно нет (если думаешь, что это не так, перепроверь, возможно, твои представленияустарели). При этом, самое великое в этом то, что почта (на самом деле, не важно, какая именно — mail.ru, yandex или,прости господи, гмейл) предоставляет гибкие фильтры входящей почты. И потратив буквально пару десятков минут можносформировать правила, чтобы, например, от того же озона пропускались только письма со статусом заказа и больше ничего.
+
+Вот так, древняя технология обычных, старых-добрых, писем позволяет решить проблему современных назойливых уведомлений!
+
+При этом, почта не пушит проверять её постоянно! Самое главное её преимущество для меня — это её ассинхронность, вотличие от мессенджеров. Можно отключить от нее уведомления тоже, но завести себе правило, что раз в Н времени выделятьвремя на ее проверку. Самое главное — делать это в *комфортное для себя* время.
+
+## Так же как и на мессенджеры, кстати!
+
+Выше я уже сказал, что мессенджеры — это не срочно. Ничего страшного не случится, если я отвечу через час-два-три иливообще вечером. Если будет что-то *действительно* срочное — мне можно и позвонить. Но, к счастью, мне повезло, что мояжизнь достаточно спокойная и *действительно* срочное почти не случается. Отрефлексируй, уважаемый читатель, насколько*действительно* срочные и важные вопросы, которые ты таковыми считаешь и которыми ежедневно дёргают тебя? И ответь себечестно, мир бы разрушился, если бы ты их отложил на комфортное для *себя*, а не других время?
+
+Такой эксперимент я ставлю на себе уже неделю. Я практически не захожу в мессенджеры, всё действительно важное мнеприходит на почту, лишней рекламы я не вижу, нет никакого информационного шума, который буквально стал бичомсовременности.
+
+## Вывод за неделю
+
+Моё внутреннее состояние ощущается как очень спокойное и, главное, комфортное. Я чувствую полный контроль над тем, чтои когда я потребляю и нет никакого информационного насилия, как его называет [Столяров](http://stolyarov.info/)(хоть мне этот персонаж и кажется чрезвычайно радикальным и оттого отталкивающим, но что-то в его словах таки есть).
+
+Считаю, что эксперимент оказался удачным, и я его продолжу!
+
+## Пишите письма!
+
+Напомню раз пришлось к слову, пожалуй, свою электропочту: <i@neonxp.ru> или <a.kiryukhin@mail.ru> обе почты абсолютноравноценны, писать можно на любую. Очевидно из поста, что молниеносный ответ я не гарантирую, но, сам факт ответа вобозримое время гарантирован!
+
+73! \ No newline at end of file
diff --git a/content/post/2024-06-02.md b/content/post/2024-06-02.md
new file mode 100644
index 0000000..f23346a
--- /dev/null
+++ b/content/post/2024-06-02.md
@@ -0,0 +1,20 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2024-06-02T01:48:16Z"
+guid: http://3
+id: 48
+tags:
+- книги
+- фантастика
+title: Книжные рекомендации 1
+---
+
+Подумалось, почему бы не рекомендовать понравившиеся мне книги.
+
+В прошлый раз, ещё [в VK рекомендовал](https://vk.com/wall-174034751_45) Азимовский цикл “Основание”. А в этот разрекомендую цикл фантастики Андре Нортона “Королева Солнца”.
+
+Если без спойлеров — цикл описывает приключения помощника супер-карго Дейла на космическом корабле вольных торговцев“Королева Солнца”. Читается легко и увлекательно. Книги небольшие, проглатываются за пару часов.
+
+[Скачать](https://neonxp.ru/wp-content/uploads/2024/09/andre_norton-queen_of_sun.zip) \ No newline at end of file
diff --git a/content/post/2024-07-13-joplin.md b/content/post/2024-07-13-joplin.md
new file mode 100644
index 0000000..1d874b7
--- /dev/null
+++ b/content/post/2024-07-13-joplin.md
@@ -0,0 +1,27 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2024-07-13T20:49:12Z"
+guid: http://2
+id: 47
+image: /wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01.jpg
+tags:
+- it
+- joplin
+title: Заметочник Joplin
+---
+
+Просто хочу поделиться отличным приложением для заметок, вместо популярного Notion и менее популярного Obsidian.
+
+Название на для русского уха звучит по дурацки — [Joplin](https://joplinapp.org/). Но, не смотря на такое название, самоприложение очень даже серьёзное.
+
+В общем и целом, это достаточно продвинутый опенсорсный заметочник. В качестве формата текста он использует[Markdown](https://skillbox.ru/media/code/yazyk-razmetki-markdown-shpargalka-po-sintaksisu-s-primerami/).
+
+Так же, из приятностей — большое количество плагинов (<https://github.com/topics/joplin-plugin>) и возможностьиспользовать свой сервер для синхронизации ([https://docs.vultr.com/how-to-host-a-joplin-server-with-docker-on-ubuntu)](https://docs.vultr.com/how-to-host-a-joplin-server-with-docker-on-ubuntu%29).Для себя я, конечно же, поставил на свой сервак. Ну, а более бюджетно, если нет своего сервера — можно использоватьлюбой WebDav сервер. В частности, [Облако Mail.Ru](https://help.mail.ru/cloud_web/app/webdav/) или Яндекс Диск (адрес<https://webdav.yandex.ru>, необходимо использовать[пароль приложения](https://yandex.ru/support/id/authorization/app-passwords.html)).
+
+Но почему же стоит поднять свой сервер? Ну хотя бы для того, чтобы иметь возможность спокойно публиковать заметки,например, вот так: <https://notes.neonxp.ru/shares/UKB6Rkgt2yA2q1yrwpvb8F>.
+
+Или возможность совместной работы, например, со своей парой над общим списком покупок.
+
+P.S. Если нужен аккаунт на моем сервере синхронизации Joplin — пишите на почту, самостоятельной регистрации на сервересинхронизации не предусмотренно. Вот только не забудьте при синхронизации включить в настройках шифрование заметок.Я не хочу потом получать подозрения в нарушение приватности. \ No newline at end of file
diff --git a/content/post/2024-07-21-bbs.md b/content/post/2024-07-21-bbs.md
new file mode 100644
index 0000000..04519f2
--- /dev/null
+++ b/content/post/2024-07-21-bbs.md
@@ -0,0 +1,27 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2024-07-21T20:28:34Z"
+guid: http://1
+id: 46
+tags:
+- разное
+title: Преемственность от BBS до Телеграма
+---
+
+Чисто на правах воскресной шизы.
+
+Обнаружил для себя интересную тенденцию, в характерных своему времени инструментах для общения за последние 40+ лет:
+
+Если взять эволюционный ряд BBS (в т.ч. Фидо) → Форумы → Соцсети → Мессенджеры, то можно выделить в них несколько общихчерт:
+
+- Возможность общения 1—1
+- Возможность общения 1—М (оператор BBS, администратор форума может сделать какую-то тему в read-only и сам туда писать,получая что-то типа каналов в телеге или блога)
+- Возможность общения М—М (обычный режим форума или многопользовательский чат в мессенджерах)
+- Возможность обмена файлами (в т.ч. картинками, не зависимо от того, сразу они отображаются у собеседника или нет)
+- Возможность проводить голосования (внезапно, да?)
+
+Что из этого следует? Да ничего, просто забавно. Интересно, что будет в постмессенджеровую эпоху? По идее, какой быинструмент ни был — эти же черты будут присущи и ему.
+
+P.S. Да, я тут не упомянул про мейллисты и условные IRC, но просто не знал куда и после чего их приткнуть. Но по факту,черты все те же самые. \ No newline at end of file
diff --git a/content/post/2024-09-26-hugo-wordpress.md b/content/post/2024-09-26-hugo-wordpress.md
new file mode 100644
index 0000000..15761dd
--- /dev/null
+++ b/content/post/2024-09-26-hugo-wordpress.md
@@ -0,0 +1,23 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2024-09-26T19:05:00Z"
+footnotes:
+- ""
+guid: https://neonxp.ru/?p=112
+id: 112
+image: /wp-content/uploads/2024/09/logo.png
+location:
+- На базе
+tags:
+- блог
+title: Hugo → WordPress
+---
+
+Поменял в блоге движок с модного Hugo на немодный бумерский WordPress. Почему? Да просто он удобнее.
+
+Серьёзно, неужели этот гиковский пердолинг с сборкой блога через Git CI удобнее чем просто написать пост в браузере?
+Ну если не врать себе, то конечно же нет.
+
+Так что да, с возрастом начинаешь ценить просто удобные, а не новомодные вещи. \ No newline at end of file
diff --git a/content/post/2024-10-06.md b/content/post/2024-10-06.md
new file mode 100644
index 0000000..f878ad7
--- /dev/null
+++ b/content/post/2024-10-06.md
@@ -0,0 +1,36 @@
+---
+author: NeonXP
+categories:
+- Мои проекты
+date: "2024-10-06T12:00:11Z"
+guid: https://neonxp.ru/?p=208
+id: 208
+image: /upload/bash_org.jpg
+tags:
+- go
+- it
+- моё
+title: Цитатник Рунета
+---
+
+В середине-конце нулевых был очень популярный сайт баш.орг.ру. Думаю, те, «кому за» помнят ещё такой.
+
+Сайт просто был сборником цитат из разных чатов, irc каналов или личных переписок. Изначально, был исключительно анимешно-айтишной направленности и тем самым для нас, студентов и гиков был крайне популярным местом. В своё время, он подарил мне много часов приятного времяпрепровождения и ламповых вечеров.
+
+Затем, когда БОР (как часто его сокращали) выиграл премию Рунета, на него хлынул поток, как сейчас бы сказали, «нормисов». Которые, уже в свою очередь, заполнили БОР всяким про отношения, офисно-планктонные темы, фейковыми цитатами, ответами на цитаты, ответами на ответы на цитаты и прочим подобным, далёким от изначального айтишного флёра, шлаком.
+
+В общем, как всегда, в андеграунд пришли нормисы и всё испортили. И да, баш скатился уже, по сути, к десятым годам.
+
+Примерно тогда же он для меня и закончился, ибо стал уже совсем не «торт». Потом он как-то жил больше декады за границами моего внимания. Успев при этом поменять адрес с зоны .ru на зону .im зачем-то. Ну а с началом СВО его админы окончательно сошли с ума и закрыли БОР который к тому времени и так едва ли был жив. На этом, его история окончательно закончилась.
+
+Однако, не смотря на это БОР был интересным и знаковым феноменом, который неотрывно вписан как в историю рунета так и в мою личную историю юности.
+
+Посему, я решил, так сказать, или возродить его, ну или, как минимум, сделать ему мемориал.
+
+Сказано — сделано. Купил домен, который отсылается к самому старому домену оригинала — [sh.org.ru](https://sh.org.ru) (sh является командной оболочкой, предком командной оболочки bash). За несколько часов написал скраппер по зеркалам и архивам бора, спарсил более 80К цитат. Затем, написал на golang простенький движок и всего за день запустил свой цитатник в свободное плавание!
+
+Из функций пока только вывод цитат по страницам, а так же вывод случайных 20 цитат + кнопка для выдачи других 20 случайных. Лично мне гораздо больше нравятся как раз случайные подборки. Их можно обновлять почти бесконечно!
+
+Да, он пока не умеет принимать новые цитаты (да и кто их будет слать то, лол?), да и нет других функций, типа голосований (классическими \[+\], \[-\], \[:|||:\]). Буду ли я это доделывать и как-то развивать? Не знаю. Возможно, время цитатника безвозвратно ушло. Но может быть и внезапный комбек. Кто знает 🤷‍♂️. В ближайшие дни я допилю и голосвалку и добавление цитат, но вряд ли буду в это инвестировать много времени. Есть ещё и мысль публиковать цитаты через ТГ бота простой пересылкой ему сообщений, а он уже их сам анонимизирует заменяя данные пользователей на обезличенные XXX и YYY и оформляет цитату как надо. Как вам такая идея?
+
+Вообще, я бы хотел это как-то, наверное, обсудить, относительно того как это развивать и стоит ли? \ No newline at end of file
diff --git a/content/post/2024-10-17.md b/content/post/2024-10-17.md
new file mode 100644
index 0000000..fe99889
--- /dev/null
+++ b/content/post/2024-10-17.md
@@ -0,0 +1,36 @@
+---
+author: NeonXP
+categories:
+- Без рубрики
+date: "2024-10-17T19:26:00Z"
+guid: https://neonxp.ru/?p=220
+id: 220
+image: /upload/Rama16wiki.jpg
+tags:
+- книги
+title: Книжные рекомендации №2
+---
+
+Продолжу, пожалуй.
+
+Сегодня хочу порекомендовать всего две книги:
+
+## Свидание с Рамой
+
+Артур Кларк, 1973
+
+Фантастическая повесть о встрече человечества с необитаемым(?) инопланетным кораблём, который прилетел в нашу солнечную систему. На изображении выше — вид этого корабля изнутри.
+
+- На сайте lib.ru: [www.lib.ru/KLARK/rama1.txt](http://www.lib.ru/KLARK/rama1.txt)
+- В виде аудиокниги: <https://akniga.org/klark-artur-svidanie-s-ramoy>
+- Если надо — могу выложить по запросу в формате fb2
+
+## Глубина в небе
+
+Вернор Виндж, 1999
+
+Об экспедиции двух разных человеческих колоний к странной звезде, имеющей свойство выключаться на 200 лет. Причиной отправки стали принятые с окрестной планеты радио сигналы, свидетельствующие о наличии разумной жизни на ней.
+
+Книга является частью цикла, и я прикладываю цикл целиком:
+
+<div class="wp-block-file">[Цикл «КенгХо»](https://neonxp.ru/upload/КенгХо.zip)[Скачать](https://neonxp.ru/upload/КенгХо.zip)</div> \ No newline at end of file
diff --git a/hugo.yaml b/hugo.yaml
new file mode 100644
index 0000000..0d36a44
--- /dev/null
+++ b/hugo.yaml
@@ -0,0 +1,114 @@
+baseURL: 'https://neonxp.ru/'
+languageCode: 'ru-RU'
+DefaultContentLanguage: ru
+title: '~/neonxp.log'
+theme: 'hugo-theme-stack'
+enableRobotsTXT: true
+
+params:
+ favicon: /img/logo.png
+ widgets:
+ homepage:
+ - type: search
+ - type: archives
+ params:
+ limit: 5
+ - type: categories
+ params:
+ limit: 10
+ - type: tag-cloud
+ params:
+ limit: 10
+ page:
+ - type: toc
+ sidebar:
+ emoji: 👨🏻‍💻
+ subtitle: Дневник разработчика
+ avatar:
+ enabled: true
+ local: true
+ src: /img/logo.png
+
+ article:
+ math: false
+ toc: true
+ readingTime: true
+ license:
+ enabled: true
+ default: Licensed under CC BY-NC-SA 4.0
+
+ imageProcessing:
+ cover:
+ enabled: true
+ content:
+ enabled: true
+ footer:
+ since: 2007
+ customText: Александр NeonXP Кирюхин
+
+ dateFormat:
+ published: 02.01.2006
+ lastUpdated: 15:04 02.01.2006
+
+ comments:
+ enabled: true
+ provider: remark42
+
+ remark42:
+ host: https://comments.neonxp.ru
+ site: neonxp_ru
+ locale: ru
+permalinks:
+ post: /p/:slug/
+ page: /:slug/
+
+related:
+ includeNewer: true
+ threshold: 60
+ toLower: false
+ indices:
+ - name: tags
+ weight: 100
+
+ - name: categories
+ weight: 200
+
+markup:
+ goldmark:
+ extensions:
+ passthrough:
+ enable: true
+ delimiters:
+ block:
+ - - \[
+ - \]
+ - - $$
+ - $$
+ inline:
+ - - \(
+ - \)
+ renderer:
+ ## Set to true if you have HTML content inside Markdown
+ unsafe: true
+ tableOfContents:
+ endLevel: 4
+ ordered: true
+ startLevel: 2
+ highlight:
+ noClasses: false
+ codeFences: true
+ guessSyntax: true
+ lineNoStart: 1
+ lineNos: true
+ lineNumbersInTable: true
+ tabWidth: 4
+
+menus:
+ main:
+ - name: Главная
+ URL: /
+ - name: Проекты
+ URL: /pages/projects
+ - name: Обо мне
+ URL: /pages/me
+
diff --git a/resources/_gen/assets/sass/print.scss_1b40c387e9e0dc928366b05b33018dc5.content b/resources/_gen/assets/sass/print.scss_1b40c387e9e0dc928366b05b33018dc5.content
new file mode 100644
index 0000000..f488e0e
--- /dev/null
+++ b/resources/_gen/assets/sass/print.scss_1b40c387e9e0dc928366b05b33018dc5.content
@@ -0,0 +1 @@
+@media print{.print-none,.pager,.mobile-nav,aside,nav,footer{display:none}}@media print{html{font-size:12pt}html,body,.page{background-color:white;border-color:black;box-shadow:none;color:black}.main{width:100%}:link,:visited{text-decoration:underline}abbr[title]::after{content:" (" attr(title) ")"}}
diff --git a/resources/_gen/assets/sass/print.scss_1b40c387e9e0dc928366b05b33018dc5.json b/resources/_gen/assets/sass/print.scss_1b40c387e9e0dc928366b05b33018dc5.json
new file mode 100644
index 0000000..a8da564
--- /dev/null
+++ b/resources/_gen/assets/sass/print.scss_1b40c387e9e0dc928366b05b33018dc5.json
@@ -0,0 +1 @@
+{"Target":"css/print.31e2819287afc91406f2fd43d21a8ba4a0cdfc272e439c90db0c6e47efc7c346.css","MediaType":"text/css","Data":{"Integrity":"sha256-MeKBkoevyRQG8v1D0hqLpKDN/CcuQ5yQ2wxuR+/Hw0Y="}} \ No newline at end of file
diff --git a/resources/_gen/assets/sass/print.scss_fac971ac3b65f0ecfa10b7ccf117eb9b.content b/resources/_gen/assets/sass/print.scss_fac971ac3b65f0ecfa10b7ccf117eb9b.content
new file mode 100644
index 0000000..deb4356
--- /dev/null
+++ b/resources/_gen/assets/sass/print.scss_fac971ac3b65f0ecfa10b7ccf117eb9b.content
@@ -0,0 +1,28 @@
+@media print {
+ .print-none,
+ .pager,
+ .mobile-nav,
+ aside,
+ nav,
+ footer {
+ display: none; } }
+
+@media print {
+ html {
+ font-size: 12pt; }
+ html,
+ body,
+ .page {
+ background-color: white;
+ border-color: black;
+ box-shadow: none;
+ color: black; }
+ .main {
+ width: 100%; }
+ :link,
+ :visited {
+ text-decoration: underline; }
+ abbr[title]::after {
+ content: " (" attr(title) ")"; } }
+
+/*# sourceMappingURL=print.css.map */ \ No newline at end of file
diff --git a/resources/_gen/assets/sass/print.scss_fac971ac3b65f0ecfa10b7ccf117eb9b.json b/resources/_gen/assets/sass/print.scss_fac971ac3b65f0ecfa10b7ccf117eb9b.json
new file mode 100644
index 0000000..820f6c9
--- /dev/null
+++ b/resources/_gen/assets/sass/print.scss_fac971ac3b65f0ecfa10b7ccf117eb9b.json
@@ -0,0 +1 @@
+{"Target":"css/print.css","MediaType":"text/css","Data":{}} \ No newline at end of file
diff --git a/resources/_gen/assets/sass/styles.scss_15d2610c0cb97b9efb592f553b76c9f9.content b/resources/_gen/assets/sass/styles.scss_15d2610c0cb97b9efb592f553b76c9f9.content
new file mode 100644
index 0000000..aadc1e6
--- /dev/null
+++ b/resources/_gen/assets/sass/styles.scss_15d2610c0cb97b9efb592f553b76c9f9.content
@@ -0,0 +1 @@
+:root{--color-brand: #333;--color-brand-alt: #999;--color-brand-light: #ccc;--color-brand-dark: #666;--color-text: #000;--color-text-bg: #fff;--color-text-meta: #666;--color-link: #333;--color-link-visited: #333;--color-link-hover: #999;--color-link-active: #c00;--color-link-inverted: #fff;--color-link-visited-inverted: #fff;--color-link-hover-inverted: #fff;--color-link-active-inverted: #c00;--color-border: #333;--color-border-light: #ccc;--color-border-dark: #666;--color-autocomplete: #000;--color-autocomplete-bg: #fff;--color-autocomplete-select: #fff;--color-autocomplete-select-bg: #0072b9;--color-body-bg: #fff;--color-header-bg: #fff;--color-footer-bg: #fff;--color-backdrop: #eee;--color-mobile-menu: #333;--color-mobile-menu-cover: rgba(0,0,0,0.2);--color-button: #333;--color-button-hover: #999;--color-button-text: #fff;--color-button-text-hover: #fff;--color-button-disabled: #999;--color-mark-highlight: #c00;--color-mark-bg: #fd0;--color-menu-active: #000;--color-preview-bg: #fffadb;--color-row-header: rgba(0,0,0,0);--color-row-odd: #f7f7f7;--color-row-even: rgba(0,0,0,0);--color-status: #43a808;--color-status-bg: #f4feee;--color-warning: #000;--color-warning-bg: #fffce6;--color-warning-border: #fd0;--color-error: #c00;--color-error-bg: #fff0f0;--color-watermark: #eee;--color-headings: #333;--color-code: #333;--color-highlight: #999;--fs-xxxxl: 3rem;--fs-xxxl: 2.5rem;--fs-xxl: 2rem;--fs-xl: 1.5rem;--fs-l: 1.25rem;--fs-m: 1rem;--fs-s: .889rem;--fs-xs: .778rem;--fw-headings: 700;--fw-bolder: 900;--fw-bold: 700;--fw-medium: 500;--fw-normal: 400;--fw-light: 300;--fw-lighter: 200;--ff-body: ui-serif,Charter,Bitstream Charter,Sitka Text,Cambria,serif;--ff-headings: ui-sans-serif,system-ui,sans-serif;--ff-alt: system-ui,sans-serif;--ff-monospace: ui-monospace,Cascadia Code,Source Code Pro,Menlo,Consolas,DejaVu Sans Mono,monospace;--radius-xl: 1rem;--radius-l: .75rem;--radius-m: .5rem;--radius-s: .3rem;--radius-xs: .125rem;--breakout: calc(5px + 1.5625vw);--gutters-reverse: calc(0px - (5px + 1.5625vw));--gutters: calc(5px + 1.5625vw);--heading-line-height: 1.3;--indent-amount: 2rem;--max-content-width: 1111px;--max-line-width: 70ch;--max-page-width: 1111px}html{-webkit-text-size-adjust:none;text-size-adjust:none;min-height:100%;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*::before,*::after{box-sizing:inherit}body{margin:0;padding:0}img,svg,picture,audio,video,canvas,iframe,embed,object{display:block}img,svg,video{max-width:100%;height:auto}figure{margin-inline:0}input,button,textarea,select{font:inherit;letter-spacing:inherit;word-spacing:inherit}@media (min-width: 666px){[type='search']{-webkit-appearance:textfield}}code,kbd,samp{font-family:var(--ff-monospace)}html{font-family:var(--ff-body);font-size:calc(18 / 16 * 100%);line-height:1.5;color:var(--color-text)}form{margin-block:0 1.5rem}input,textarea,select{margin-block:0 1.5rem}label{display:block;font-weight:var(--fw-bold)}label:has(+:required)::after{content:'*';color:var(--color-mark-highlight)}input,label,textarea,select{max-width:var(--max-line-width)}fieldset{border:1px solid var(--color-border)}input{width:Min(20em, 100%)}[type='text'],textarea{width:Min(30em, 100%)}input:not(:only-of-type)+[type='submit'],textarea+[type='submit']{display:block}@media (min-width: 666px){input:only-of-type:has(+[type='submit']){margin-right:.5rem}}blockquote{margin-block:0 1.5rem;margin-inline:var(--indent-amount)}dl,ol,ul,menu{margin-block:0 1.5rem}dd{margin:0;margin-inline-start:var(--indent-amount)}ol,ul,menu{padding:0;padding-inline-start:var(--indent-amount)}ol ol,ol ul,ol menu,ul ol,ul ul,ul menu,menu ol,menu ul,menu menu{margin:0}.main li{max-width:var(--max-line-width)}header{margin-block:0 .495rem}hr{height:0}p{margin-block:0 1.5rem;text-wrap:pretty}.main p{max-width:var(--max-line-width)}pre{margin-block:0 1.5rem;font-family:var(--ff-monospace)}code:not([data-lang]),kbd,samp{color:var(--color-code)}h1,h2,h3,h4,h5,h6{margin-block:1.5em .495em;color:var(--color-headings);font-family:var(--ff-headings);font-weight:var(--fw-headings);line-height:var(--heading-line-height);text-wrap:balance}h1+h1,h1+h2,h1+h3,h1+h4,h1+h5,h1+h6,h2+h1,h2+h2,h2+h3,h2+h4,h2+h5,h2+h6,h3+h1,h3+h2,h3+h3,h3+h4,h3+h5,h3+h6,h4+h1,h4+h2,h4+h3,h4+h4,h4+h5,h4+h6,h5+h1,h5+h2,h5+h3,h5+h4,h5+h5,h5+h6,h6+h1,h6+h2,h6+h3,h6+h4,h6+h5,h6+h6{margin-block-start:.75em}.main h1,.main h2,.main h3,.main h4,.main h5,.main h6{max-width:var(--max-line-width)}h1{margin-block:1.5rem .75rem;font-size:var(--fs-xxl);letter-spacing:-.01em}h2{font-size:var(--fs-xl);letter-spacing:-.01em}h3{font-size:var(--fs-l);letter-spacing:-.01em}h4{font-size:var(--fs-m)}h5{font-size:var(--fs-s)}h6{font-size:var(--fs-xs)}figure.image,img.image{--image-padding: .75rem}@media (min-width: 666px){figure.image.center,img.image.center{margin-inline:auto}figure.image.left,img.image.left{padding-inline-end:var(--image-padding);padding-block-end:var(--image-padding);margin:0;float:left;clear:both}figure.image.right,img.image.right{padding-inline-start:var(--image-padding);padding-block-end:var(--image-padding);margin:0;float:right;clear:both}}figure{margin-block:0 1.5rem}figure.image figcaption{padding-block-start:var(--image-padding)}@media (min-width: 666px){figure.image figcaption{display:table-caption;caption-side:bottom;padding-block-start:0}}figure.image figcaption p{margin:0}@media (min-width: 666px){figure.image{display:table}figure.image.left figcaption{padding-inline-end:var(--image-padding);padding-block-end:var(--image-padding)}figure.image.right figcaption{padding-inline-start:var(--image-padding);padding-block-end:var(--image-padding)}}figure.podcast audio{width:95%}img.image{margin-block:0 1.5rem}a{color:var(--color-link)}:visited{color:var(--color-link-visited)}a:hover,a:focus{color:var(--color-link-hover)}a:active{color:var(--color-link-active)}[aria-current]{text-decoration:none}@media (prefers-reduced-motion: no-preference){:has(:target){scroll-behavior:smooth;scroll-padding-block-start:var(--gutters)}}.link-nav a,.pagination a,.pager a{text-decoration:none}.link-nav a:hover,.link-nav a:focus,.pagination a:hover,.pager a:hover,.pagination a:focus,.pager a:focus{text-decoration:underline}.link-inverted a,.card--inverted a,.box--inverted a{color:var(--color-link-inverted)}.link-inverted a:visited,.card--inverted a:visited,.box--inverted a:visited{color:var(--color-link-visited-inverted)}.link-inverted a:hover,.link-inverted a:focus,.card--inverted a:hover,.box--inverted a:hover,.card--inverted a:focus,.box--inverted a:focus{color:var(--color-link-hover-inverted)}.link-inverted a:active,.card--inverted a:active,.box--inverted a:active{color:var(--color-link-active-inverted)}table{margin-block:0 1.5rem;border-collapse:collapse;width:100%}td,th{padding:0;vertical-align:text-top}th{vertical-align:bottom}caption,th{text-align:start}.layout__page{max-width:var(--max-page-width)}@media (min-width: 666px){.layout__page{margin-inline:auto;min-height:100vh;min-height:100svh}}.layout__header,.layout__footer,.layout__main,.layout__navigation,.layout__first-sidebar,.layout__second-sidebar,.layout__page-top,.layout__page-bottom,.layout__cookieconsent{padding-inline:var(--gutters);min-width:0}.layout__page{display:grid;grid-template-areas:'head' 'nav' 'top' 'main' 'side1' 'side2' 'bottom' 'foot' 'notice';grid-template-rows:auto auto auto 1fr auto auto auto auto auto;grid-template-columns:1fr}@media (min-width: 999px){.layout__page{grid-template-rows:auto auto auto 1fr auto auto auto}.layout__sidebar-first{grid-template-areas:'head head' 'nav nav' 'side1 top' 'side1 main' 'side1 bottom' 'foot foot' 'notice notice';grid-template-columns:1fr 2fr}.layout__sidebar-second{grid-template-areas:'head head' 'nav nav' 'top side2' 'main side2' 'bottom side2' 'foot foot' 'notice notice';grid-template-columns:2fr 1fr}.layout__sidebar-two{grid-template-areas:'head head head' 'nav nav nav' 'side1 top side2' 'side1 main side2' 'side1 bottom side2' 'foot foot foot' 'notice notice notice';grid-template-columns:1fr 2fr 1fr}}.layout__header{grid-area:head}.layout__navigation{grid-area:nav}.layout__page-top{grid-area:top}.layout__main{grid-area:main}.layout__first-sidebar{grid-area:side1}.layout__second-sidebar{grid-area:side2}.layout__page-bottom{grid-area:bottom}.layout__footer{grid-area:foot}.layout__cookieconsent{grid-area:notice}.box{margin-block:1.5rem;padding:.75rem;border:5px solid var(--color-border)}.box__title,.box .title{margin-top:0}.box--highlight{border-color:var(--color-highlight)}.box--fit{width:fit-content}.box--gutter{padding-inline:var(--gutters)}.box--inverted{background:var(--color-border);color:var(--color-text-bg)}.box--inverted *{color:var(--color-text-bg)}.box>*:first-child{margin-top:0}.box>*:last-child{margin-bottom:0}.button,button,[type='button'],[type='reset'],[type='submit']{display:inline-block;font-family:var(--ff-headings);text-decoration:none;text-align:center;width:fit-content;margin-right:1rem;margin-bottom:1rem;padding:.2rem 1rem;cursor:pointer;color:var(--color-button-text);background-color:var(--color-button);border:1px solid var(--color-button);border-radius:var(--radius-s)}.button:hover,.button:focus-visible,.button:active,button:hover,button:focus-visible,button:active,[type='button']:hover,[type='button']:focus-visible,[type='button']:active,[type='reset']:hover,[type='reset']:focus-visible,[type='reset']:active,[type='submit']:hover,[type='submit']:focus-visible,[type='submit']:active{text-decoration:none;color:var(--color-button-text-hover);background-color:var(--color-button-hover)}.button--small{font-size:var(--fs-xs);margin-right:.5rem;margin-bottom:.5rem;padding:.2rem .75rem}.button--alt{color:var(--color-button-text-hover);background-color:var(--color-button-hover)}.button--alt:hover,.button--alt:focus-visible,.button--alt:active{color:var(--color-button-text);background-color:var(--color-button)}.button--outline{color:var(--color-button);background-color:var(--color-button-text);border-color:var(--color-button)}.button--outline:hover,.button--outline:focus-visible,.button--outline:active{color:var(--color-button-text);background-color:var(--color-button)}.button--shadow:hover,main button:hover{box-shadow:2px 2px 5px 1px var(--color-button-hover)}.button--shadow:active,main button:active{box-shadow:inset 2px 2px 5px 1px var(--color-button)}[disabled].button,button[disabled],[disabled][type='button'],[disabled][type='reset'],[disabled][type='submit']{background-color:var(--color-grey-extra-light);border:1px solid var(--color-button-disabled);background-image:none;text-shadow:none}.cards{margin-block:1.5rem}.card{padding:.75rem;border:1px solid var(--color-border)}.card--highlight{border-color:var(--color-highlight)}.card--featured{grid-row:span 2;grid-column:span 2}.card--gutter{padding-inline:var(--gutters)}.card--inverted{background:var(--color-border);color:var(--color-text-bg)}.card>*:first-child{margin-top:0}.card>*:last-child{margin-bottom:0}.grid-center{display:grid;place-items:center}.text-center{text-align:center}.margin-center{margin-inline:auto}.clearfix::before{content:'';display:table}.clearfix::after{content:'';display:table;clear:both}.cookieconsent{display:flex;flex-flow:wrap;justify-content:center;gap:.5rem;position:sticky;bottom:0;width:100%;padding-block-start:.5rem;color:var(--color-warning);background-color:var(--color-warning-bg);border-top:4px solid var(--color-warning-border);font-size:var(--fs-s);transform:translateY(100vh);transition:all 130ms ease-out;z-index:99}.button--accept{border-color:var(--color-status)}.button--decline{border-color:var(--color-warning-border)}.js-cookieconsent-open{transform:translateY(0)}.divider,hr{margin-block:1.5rem;border:0;border-top:1px solid var(--color-border)}.divider>:first-child,hr>:first-child{margin-top:1.5rem}.disabled,.pagination .disabled .page-link,.pager .disabled .page-link,[disabled].button,button[disabled],[disabled][type='button'],[disabled][type='reset'],[disabled][type='submit']{cursor:default;color:var(--color-button-disabled)}.disabled:hover,.disabled:focus,.disabled:active,.pagination .disabled .page-link:hover,.pager .disabled .page-link:hover,[disabled].button:hover,button[disabled]:hover,[disabled][type='button']:hover,[disabled][type='reset']:hover,[disabled][type='submit']:hover,.pagination .disabled .page-link:focus,.pager .disabled .page-link:focus,[disabled].button:focus,button[disabled]:focus,[disabled][type='button']:focus,[disabled][type='reset']:focus,[disabled][type='submit']:focus,.pagination .disabled .page-link:active,.pager .disabled .page-link:active,[disabled].button:active,button[disabled]:active,[disabled][type='button']:active,[disabled][type='reset']:active,[disabled][type='submit']:active{color:var(--color-button-disabled);text-decoration:none}.flex-group{gap:1.5rem;display:flex;flex-wrap:wrap}.flex-group>*{flex:1;flex-basis:100%;flex-grow:0}.flex-group--grow{flex-grow:1}@media (min-width: 666px){.flex-group--2>*{flex-basis:calc(100% / 2 - 1.5rem)}.flex-group--3>*{flex-basis:calc(100% / 3 - 1.5rem)}.flex-group--4>*{flex-basis:calc(100% / 4 - 1.5rem)}.flex-group--5>*{flex-basis:calc(100% / 5 - 1.5rem)}.flex-group--6>*{flex-basis:calc(100% / 6 - 1.5rem)}}.flex-inline,.pagination,.pager,.navbar,.tags ul{--gap: .5rem;display:flex;flex-wrap:wrap;gap:var(--gap);padding:0;text-align:start}.flex-inline__item,.flex-inline li,.pagination li,.pager li,.navbar li,.tags ul li{list-style:none}.flex-inline--inline,.tags ul{display:inline-flex}.footer{padding-block:var(--gutters);background-color:var(--color-footer-bg);text-align:center}.footer p{margin:0}.grid-group,.cards{--column-min: 200px;--gap: 1.5rem;display:grid;gap:var(--gap);grid-template-columns:repeat(auto-fit, minmax(Min(var(--column-min), 100%), 1fr))}.grid-group--fill{grid-template-columns:repeat(auto-fill, minmax(Min(var(--column-min), 100%), 1fr))}.grid-group--100{--column-min: 100px}.grid-group--150{--column-min: 150px}.grid-group--200{--column-min: 200px}.grid-group--250{--column-min: 250px}.grid-group--300{--column-min: 300px}.grid-group--350{--column-min: 350px}.grid-group--400{--column-min: 400px}.grid-group--500{--column-min: 500px}.grid-group--600{--column-min: 600px}.grid-stack{display:grid}.grid-stack>*{grid-column:1 / 2;grid-row:1 / 2}.header{padding-block:var(--gutters);display:flex;flex-direction:column;gap:var(--gutters);background-color:var(--color-header-bg)}@media (min-width: 666px){.header{flex-direction:row}}.header__logo{width:fit-content}.header__logo-image{vertical-align:bottom}.header__site-name{margin:0;line-height:1}.header__site-link:link,.header__site-link:visited{color:var(--color-text);text-decoration:none}.header__site-link:hover,.header__site-link:focus{text-decoration:underline}@media (min-width: 666px){.header__region{margin-inline-start:auto}}.hidden,html.nojs .nojs-hidden,html.js .js-hidden{display:none}.icon-inline .icon-link{opacity:0;transition:all 130ms ease-in;text-decoration:none}.icon-inline:focus-visible .icon-link,.icon-inline:hover .icon-link{opacity:.3}.icon-inline:focus-visible .icon-link:focus-visible,.icon-inline:focus-visible .icon-link:hover,.icon-inline:hover .icon-link:focus-visible,.icon-inline:hover .icon-link:hover{opacity:1}.icon-inline svg{display:inline;vertical-align:middle}.language-selector{display:flex}.language-icon{margin-inline-end:.75rem;fill:var(--color-text)}.ul-straight-left,article>ul,aside>ul{display:table;list-style:none;padding:0}.ul-straight-left>li,article>ul>li,aside>ul>li{display:table-row}.ul-straight-left>li::before,article>ul>li::before,aside>ul>li::before{padding-inline-end:.75rem;display:table-cell;content:'\2981';font-size:var(--fs-s)}.ol-straight-left,article>ol,aside>ol{display:table;list-style:none;padding:0}.ol-straight-left>li,article>ol>li,aside>ol>li{display:table-row;counter-increment:table-ol}.ol-straight-left>li::before,article>ol>li::before,aside>ol>li::before{padding-inline-end:.75rem;display:table-cell;content:counter(table-ol) ".";font-size:var(--fs-s);text-align:end}.ul-straight-left--off{display:block;list-style:inherit}.ul-straight-left--off>li{display:list-item}.ul-straight-left--off>li::before{content:'';display:inline;padding:inherit}.message{padding:.5rem;outline-width:2px;outline-style:solid;width:95%}.message.status{background-color:var(--color-status-bg);color:var(--color-status);outline-color:var(--color-status)}.message.warning{background-color:var(--color-warning-bg);color:var(--color-warning);outline-color:var(--color-warning-border)}.message.error{background-color:var(--color-error-bg);color:var(--color-error);outline-color:var(--color-error)}.message--highlight{animation:2s linear infinite outline-highlight}@keyframes outline-highlight{50%{outline-width:.3rem}}.meta{font-family:var(--ff-headings);font-size:var(--fs-xs);color:var(--color-text-meta)}.responsive-video{--aspect-ratio: 9 / 16;position:relative;padding-bottom:calc(var(--aspect-ratio) * 100%);padding-top:25px;height:0}.responsive-video__embed,.responsive-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}.responsive-video--4-3{--aspect-ratio: 3 / 4}.mt--xxl{margin-block-start:4.5rem}.mb--xxl{margin-block-end:4.5rem}.mtb--xxl{margin-block:4.5rem}.mt--xl{margin-block-start:3rem}.mb--xl{margin-block-end:3rem}.mtb--xl{margin-block:3rem}.mt--l{margin-block-start:2.25rem}.mb--l{margin-block-end:2.25rem}.mtb--l{margin-block:2.25rem}.mt--m{margin-block-start:1.5rem}.mb--m{margin-block-end:1.5rem}.mtb--m{margin-block:1.5rem}.mt--s{margin-block-start:1.125rem}.mb--s{margin-block-end:1.125rem}.mtb--s{margin-block:1.125rem}.mt--xs{margin-block-start:.75rem}.mb--xs{margin-block-end:.75rem}.mtb--xs{margin-block:.75rem}.mt--xxs{margin-block-start:.45rem}.mb--xxs{margin-block-end:.45rem}.mtb--xxs{margin-block:.45rem}.mt--0{margin-block-start:0}.mb--0{margin-block-end:0}.mtb--0{margin-block:0}.zebra-table{--cell-padding: .5rem}@media (max-width: 666px){.zebra-table{--cell-padding: .3rem}}.zebra-table th,.zebra-table td{padding:var(--cell-padding)}.zebra-table thead tr{background-color:var(--color-row-header)}.zebra-table tbody tr:nth-child(odd){background-color:var(--color-row-odd)}.zebra-table tbody tr:nth-child(even){background-color:var(--color-row-even)}.responsive-table{--gap: .5rem}@media (max-width: 666px){.responsive-table th{display:none}.responsive-table td{display:grid;gap:var(--gap);grid-template-columns:12ch auto}.responsive-table td::before{content:attr(aria-label) ":";font-weight:var(--fw-bold)}.responsive-table td:first-of-type{padding-block-start:var(--gap)}.responsive-table td:last-of-type{padding-block-end:var(--gap)}}.tags ul{margin-block:0}.visually-hidden:not(:focus,:active){position:absolute;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}.navbar{margin-block:0}.pagination,.pager{margin-block:1.5rem;justify-content:center}.pagination__item,.pagination .page-link,.pager__item,.pager .page-link{padding-inline:2px}.pagination .active,.pager .active{font-weight:var(--fw-bold)}body{background-color:var(--color-backdrop)}.page{background-color:var(--color-body-bg)}.footer{border-top:2px solid var(--color-border)}th,label,legend,figcaption{font-size:var(--fs-s)}.language-selector,.footer{font-size:var(--fs-xs)}th,label,legend,.main-menu,.header,.footer{color:var(--color-headings);font-family:var(--ff-headings)}th,label{font-weight:var(--fw-headings)}@media (min-width: 666px){article .submitted,article .tags{display:inline-block;padding-inline-end:1rem}}article code{font-size:var(--fs-xs);overflow-wrap:break-word}article pre{border-radius:var(--radius-xs);padding:5px;border:1px solid var(--color-border-light);background-color:var(--color-text-bg);overflow:auto;max-height:300px;max-width:90vw}article pre.chroma{max-height:initial;overflow-x:scroll}article pre>code{display:inline-block;white-space:pre}.content-dates{text-align:end}.main-menu{margin-top:.75rem;outline:0}.main-menu li{margin-bottom:.75rem;padding:0}.main-menu a{display:block;background-color:var(--color-button);color:var(--color-text-bg);padding:2px 8px;text-decoration:none}.main-menu a:hover,.main-menu a:focus{background-color:var(--color-button-hover)}.main-menu a:active,.main-menu a[aria-current]{background-color:var(--color-button);text-decoration:underline}.search-text{font-size:var(--fs-l)}main input:not(:placeholder-shown):valid,main textarea:not(:placeholder-shown):valid{background-color:var(--color-status-bg)}main input:not(:placeholder-shown):invalid,main textarea:not(:placeholder-shown):invalid{background-color:var(--color-error-bg)}main input:focus:invalid,main textarea:focus:invalid{background-color:var(--color-warning-bg)}.js-submitted input:valid,.js-submitted textarea:valid{background-color:var(--color-status-bg)}.js-submitted input:invalid,.js-submitted textarea:invalid{background-color:var(--color-error-bg)}
diff --git a/resources/_gen/assets/sass/styles.scss_15d2610c0cb97b9efb592f553b76c9f9.json b/resources/_gen/assets/sass/styles.scss_15d2610c0cb97b9efb592f553b76c9f9.json
new file mode 100644
index 0000000..1e4fe40
--- /dev/null
+++ b/resources/_gen/assets/sass/styles.scss_15d2610c0cb97b9efb592f553b76c9f9.json
@@ -0,0 +1 @@
+{"Target":"css/styles.4fe048222d6e6e524b6510636b00f2cd8ddbe2df0106a15f42ab37b811bbf157.css","MediaType":"text/css","Data":{"Integrity":"sha256-T+BIIi1ublJLZRBjawDyzY3b4t8BBqFfQqs3uBG78Vc="}} \ No newline at end of file
diff --git a/resources/_gen/assets/sass/styles.scss_f3a5364e991a57c56f5dcd8d7251924a.content b/resources/_gen/assets/sass/styles.scss_f3a5364e991a57c56f5dcd8d7251924a.content
new file mode 100644
index 0000000..8ba08c3
--- /dev/null
+++ b/resources/_gen/assets/sass/styles.scss_f3a5364e991a57c56f5dcd8d7251924a.content
@@ -0,0 +1,1146 @@
+:root {
+ --color-brand: #333333;
+ --color-brand-alt: #999999;
+ --color-brand-light: #cccccc;
+ --color-brand-dark: #666666;
+ --color-text: #000;
+ --color-text-bg: #fff;
+ --color-text-meta: #666666;
+ --color-link: #333333;
+ --color-link-visited: #333333;
+ --color-link-hover: #999999;
+ --color-link-active: #c00;
+ --color-link-inverted: #fff;
+ --color-link-visited-inverted: #fff;
+ --color-link-hover-inverted: #fff;
+ --color-link-active-inverted: #c00;
+ --color-border: #333333;
+ --color-border-light: #cccccc;
+ --color-border-dark: #666666;
+ --color-autocomplete: #000;
+ --color-autocomplete-bg: #fff;
+ --color-autocomplete-select: #fff;
+ --color-autocomplete-select-bg: #0072b9;
+ --color-body-bg: #fff;
+ --color-header-bg: #fff;
+ --color-footer-bg: #fff;
+ --color-backdrop: #eeeeee;
+ --color-mobile-menu: #333333;
+ --color-mobile-menu-cover: rgba(0, 0, 0, 0.2);
+ --color-button: #333333;
+ --color-button-hover: #999999;
+ --color-button-text: #fff;
+ --color-button-text-hover: #fff;
+ --color-button-disabled: #999999;
+ --color-mark-highlight: #c00;
+ --color-mark-bg: #fd0;
+ --color-menu-active: #000;
+ --color-preview-bg: #fffadb;
+ --color-row-header: transparent;
+ --color-row-odd: #f7f7f7;
+ --color-row-even: transparent;
+ --color-status: #43a808;
+ --color-status-bg: #f4feee;
+ --color-warning: #000;
+ --color-warning-bg: #fffce6;
+ --color-warning-border: #fd0;
+ --color-error: #c00;
+ --color-error-bg: #fff0f0;
+ --color-watermark: #eeeeee;
+ --color-headings: #333333;
+ --color-code: #333333;
+ --color-highlight: #999999;
+ --fs-xxxxl: 3rem;
+ --fs-xxxl: 2.5rem;
+ --fs-xxl: 2rem;
+ --fs-xl: 1.5rem;
+ --fs-l: 1.25rem;
+ --fs-m: 1rem;
+ --fs-s: 0.889rem;
+ --fs-xs: 0.778rem;
+ --fw-headings: 700;
+ --fw-bolder: 900;
+ --fw-bold: 700;
+ --fw-medium: 500;
+ --fw-normal: 400;
+ --fw-light: 300;
+ --fw-lighter: 200;
+ --ff-body: ui-serif, Charter, Bitstream Charter, Sitka Text, Cambria, serif;
+ --ff-headings: ui-sans-serif, system-ui, sans-serif;
+ --ff-alt: system-ui, sans-serif;
+ --ff-monospace: ui-monospace, Cascadia Code, Source Code Pro, Menlo, Consolas, DejaVu Sans Mono, monospace;
+ --radius-xl: 1rem;
+ --radius-l: 0.75rem;
+ --radius-m: 0.5rem;
+ --radius-s: 0.3rem;
+ --radius-xs: 0.125rem;
+ --breakout: calc(5px + 1.5625vw);
+ --gutters-reverse: calc(0px - (5px + 1.5625vw));
+ --gutters: calc(5px + 1.5625vw);
+ --heading-line-height: 1.3;
+ --indent-amount: 2rem;
+ --max-content-width: 1111px;
+ --max-line-width: 70ch;
+ --max-page-width: 1111px; }
+
+html {
+ -webkit-text-size-adjust: none;
+ text-size-adjust: none;
+ min-height: 100%;
+ box-sizing: border-box;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale; }
+
+*,
+*::before,
+*::after {
+ box-sizing: inherit; }
+
+body {
+ margin: 0;
+ padding: 0; }
+
+img,
+svg,
+picture,
+audio,
+video,
+canvas,
+iframe,
+embed,
+object {
+ display: block; }
+
+img,
+svg,
+video {
+ max-width: 100%;
+ height: auto; }
+
+figure {
+ margin-inline: 0; }
+
+input,
+button,
+textarea,
+select {
+ font: inherit;
+ letter-spacing: inherit;
+ word-spacing: inherit; }
+
+@media (min-width: 666px) {
+ [type='search'] {
+ -webkit-appearance: textfield; } }
+
+code,
+kbd,
+samp {
+ font-family: var(--ff-monospace); }
+
+html {
+ font-family: var(--ff-body);
+ font-size: calc(18 / 16 * 100%);
+ line-height: 1.5;
+ color: var(--color-text); }
+
+form {
+ margin-block: 0 1.5rem; }
+
+input,
+textarea,
+select {
+ margin-block: 0 1.5rem; }
+
+label {
+ display: block;
+ font-weight: var(--fw-bold); }
+ label:has(+ :required)::after {
+ content: '*';
+ color: var(--color-mark-highlight); }
+
+input,
+label,
+textarea,
+select {
+ max-width: var(--max-line-width); }
+
+fieldset {
+ border: 1px solid var(--color-border); }
+
+input {
+ width: Min(20em, 100%); }
+
+[type='text'],
+textarea {
+ width: Min(30em, 100%); }
+
+input:not(:only-of-type) + [type='submit'],
+textarea + [type='submit'] {
+ display: block; }
+
+@media (min-width: 666px) {
+ input:only-of-type:has(+ [type='submit']) {
+ margin-right: .5rem; } }
+
+blockquote {
+ margin-block: 0 1.5rem;
+ margin-inline: var(--indent-amount); }
+
+dl,
+ol,
+ul,
+menu {
+ margin-block: 0 1.5rem; }
+
+dd {
+ margin: 0;
+ margin-inline-start: var(--indent-amount); }
+
+ol,
+ul,
+menu {
+ padding: 0;
+ padding-inline-start: var(--indent-amount); }
+ ol ol,
+ ol ul,
+ ol menu,
+ ul ol,
+ ul ul,
+ ul menu,
+ menu ol,
+ menu ul,
+ menu menu {
+ margin: 0; }
+
+.main li {
+ max-width: var(--max-line-width); }
+
+header {
+ margin-block: 0 0.495rem; }
+
+hr {
+ height: 0; }
+
+p {
+ margin-block: 0 1.5rem;
+ text-wrap: pretty; }
+ .main p {
+ max-width: var(--max-line-width); }
+
+pre {
+ margin-block: 0 1.5rem;
+ font-family: var(--ff-monospace); }
+
+code:not([data-lang]),
+kbd,
+samp {
+ color: var(--color-code); }
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin-block: 1.5em 0.495em;
+ color: var(--color-headings);
+ font-family: var(--ff-headings);
+ font-weight: var(--fw-headings);
+ line-height: var(--heading-line-height);
+ text-wrap: balance; }
+ h1 + h1, h1 + h2, h1 + h3, h1 + h4, h1 + h5, h1 + h6,
+ h2 + h1,
+ h2 + h2,
+ h2 + h3,
+ h2 + h4,
+ h2 + h5,
+ h2 + h6,
+ h3 + h1,
+ h3 + h2,
+ h3 + h3,
+ h3 + h4,
+ h3 + h5,
+ h3 + h6,
+ h4 + h1,
+ h4 + h2,
+ h4 + h3,
+ h4 + h4,
+ h4 + h5,
+ h4 + h6,
+ h5 + h1,
+ h5 + h2,
+ h5 + h3,
+ h5 + h4,
+ h5 + h5,
+ h5 + h6,
+ h6 + h1,
+ h6 + h2,
+ h6 + h3,
+ h6 + h4,
+ h6 + h5,
+ h6 + h6 {
+ margin-block-start: 0.75em; }
+ .main h1, .main h2, .main h3, .main h4, .main h5, .main h6 {
+ max-width: var(--max-line-width); }
+
+h1 {
+ margin-block: 1.5rem 0.75rem;
+ font-size: var(--fs-xxl);
+ letter-spacing: -.01em; }
+
+h2 {
+ font-size: var(--fs-xl);
+ letter-spacing: -.01em; }
+
+h3 {
+ font-size: var(--fs-l);
+ letter-spacing: -.01em; }
+
+h4 {
+ font-size: var(--fs-m); }
+
+h5 {
+ font-size: var(--fs-s); }
+
+h6 {
+ font-size: var(--fs-xs); }
+
+figure.image,
+img.image {
+ --image-padding: .75rem; }
+ @media (min-width: 666px) {
+ figure.image.center,
+ img.image.center {
+ margin-inline: auto; }
+ figure.image.left,
+ img.image.left {
+ padding-inline-end: var(--image-padding);
+ padding-block-end: var(--image-padding);
+ margin: 0;
+ float: left;
+ clear: both; }
+ figure.image.right,
+ img.image.right {
+ padding-inline-start: var(--image-padding);
+ padding-block-end: var(--image-padding);
+ margin: 0;
+ float: right;
+ clear: both; } }
+figure {
+ margin-block: 0 1.5rem; }
+ figure.image figcaption {
+ padding-block-start: var(--image-padding); }
+ @media (min-width: 666px) {
+ figure.image figcaption {
+ display: table-caption;
+ caption-side: bottom;
+ padding-block-start: 0; } }
+ figure.image figcaption p {
+ margin: 0; }
+ @media (min-width: 666px) {
+ figure.image {
+ display: table; }
+ figure.image.left figcaption {
+ padding-inline-end: var(--image-padding);
+ padding-block-end: var(--image-padding); }
+ figure.image.right figcaption {
+ padding-inline-start: var(--image-padding);
+ padding-block-end: var(--image-padding); } }
+ figure.podcast audio {
+ width: 95%; }
+
+img.image {
+ margin-block: 0 1.5rem; }
+
+a {
+ color: var(--color-link); }
+
+:visited {
+ color: var(--color-link-visited); }
+
+a:hover,
+a:focus {
+ color: var(--color-link-hover); }
+
+a:active {
+ color: var(--color-link-active); }
+
+[aria-current] {
+ text-decoration: none; }
+
+@media (prefers-reduced-motion: no-preference) {
+ :has(:target) {
+ scroll-behavior: smooth;
+ scroll-padding-block-start: var(--gutters); } }
+
+.link-nav a,
+.pagination a,
+.pager a {
+ text-decoration: none; }
+ .link-nav a:hover, .link-nav a:focus,
+ .pagination a:hover,
+ .pager a:hover,
+ .pagination a:focus,
+ .pager a:focus {
+ text-decoration: underline; }
+
+.link-inverted a,
+.card--inverted a,
+.box--inverted a {
+ color: var(--color-link-inverted); }
+ .link-inverted a:visited,
+ .card--inverted a:visited,
+ .box--inverted a:visited {
+ color: var(--color-link-visited-inverted); }
+ .link-inverted a:hover, .link-inverted a:focus,
+ .card--inverted a:hover,
+ .box--inverted a:hover,
+ .card--inverted a:focus,
+ .box--inverted a:focus {
+ color: var(--color-link-hover-inverted); }
+ .link-inverted a:active,
+ .card--inverted a:active,
+ .box--inverted a:active {
+ color: var(--color-link-active-inverted); }
+
+table {
+ margin-block: 0 1.5rem;
+ border-collapse: collapse;
+ width: 100%; }
+
+td,
+th {
+ padding: 0;
+ vertical-align: text-top; }
+
+th {
+ vertical-align: bottom; }
+
+caption,
+th {
+ text-align: start; }
+
+.layout__page {
+ max-width: var(--max-page-width); }
+ @media (min-width: 666px) {
+ .layout__page {
+ margin-inline: auto;
+ min-height: 100vh;
+ min-height: 100svh; } }
+.layout__header, .layout__footer, .layout__main, .layout__navigation, .layout__first-sidebar, .layout__second-sidebar, .layout__page-top, .layout__page-bottom, .layout__cookieconsent {
+ padding-inline: var(--gutters);
+ min-width: 0; }
+
+.layout__page {
+ display: grid;
+ grid-template-areas: 'head' 'nav' 'top' 'main' 'side1' 'side2' 'bottom' 'foot' 'notice';
+ grid-template-rows: auto auto auto 1fr auto auto auto auto auto;
+ grid-template-columns: 1fr; }
+
+@media (min-width: 999px) {
+ .layout__page {
+ grid-template-rows: auto auto auto 1fr auto auto auto; }
+ .layout__sidebar-first {
+ grid-template-areas: 'head head' 'nav nav' 'side1 top' 'side1 main' 'side1 bottom' 'foot foot' 'notice notice';
+ grid-template-columns: 1fr 2fr; }
+ .layout__sidebar-second {
+ grid-template-areas: 'head head' 'nav nav' 'top side2' 'main side2' 'bottom side2' 'foot foot' 'notice notice';
+ grid-template-columns: 2fr 1fr; }
+ .layout__sidebar-two {
+ grid-template-areas: 'head head head' 'nav nav nav' 'side1 top side2' 'side1 main side2' 'side1 bottom side2' 'foot foot foot' 'notice notice notice';
+ grid-template-columns: 1fr 2fr 1fr; } }
+
+.layout__header {
+ grid-area: head; }
+
+.layout__navigation {
+ grid-area: nav; }
+
+.layout__page-top {
+ grid-area: top; }
+
+.layout__main {
+ grid-area: main; }
+
+.layout__first-sidebar {
+ grid-area: side1; }
+
+.layout__second-sidebar {
+ grid-area: side2; }
+
+.layout__page-bottom {
+ grid-area: bottom; }
+
+.layout__footer {
+ grid-area: foot; }
+
+.layout__cookieconsent {
+ grid-area: notice; }
+
+.box {
+ margin-block: 1.5rem;
+ padding: 0.75rem;
+ border: 5px solid var(--color-border); }
+ .box__title,
+ .box .title {
+ margin-top: 0; }
+ .box--highlight {
+ border-color: var(--color-highlight); }
+ .box--fit {
+ width: fit-content; }
+ .box--gutter {
+ padding-inline: var(--gutters); }
+ .box--inverted {
+ background: var(--color-border);
+ color: var(--color-text-bg); }
+ .box--inverted * {
+ color: var(--color-text-bg); }
+ .box > *:first-child {
+ margin-top: 0; }
+ .box > *:last-child {
+ margin-bottom: 0; }
+
+.button,
+button,
+[type='button'],
+[type='reset'],
+[type='submit'] {
+ display: inline-block;
+ font-family: var(--ff-headings);
+ text-decoration: none;
+ text-align: center;
+ width: fit-content;
+ margin-right: 1rem;
+ margin-bottom: 1rem;
+ padding: .2rem 1rem;
+ cursor: pointer;
+ color: var(--color-button-text);
+ background-color: var(--color-button);
+ border: 1px solid var(--color-button);
+ border-radius: var(--radius-s); }
+ .button:hover, .button:focus-visible, .button:active,
+ button:hover,
+ button:focus-visible,
+ button:active,
+ [type='button']:hover,
+ [type='button']:focus-visible,
+ [type='button']:active,
+ [type='reset']:hover,
+ [type='reset']:focus-visible,
+ [type='reset']:active,
+ [type='submit']:hover,
+ [type='submit']:focus-visible,
+ [type='submit']:active {
+ text-decoration: none;
+ color: var(--color-button-text-hover);
+ background-color: var(--color-button-hover); }
+
+.button--small {
+ font-size: var(--fs-xs);
+ margin-right: .5rem;
+ margin-bottom: .5rem;
+ padding: .2rem .75rem; }
+
+.button--alt {
+ color: var(--color-button-text-hover);
+ background-color: var(--color-button-hover); }
+ .button--alt:hover, .button--alt:focus-visible, .button--alt:active {
+ color: var(--color-button-text);
+ background-color: var(--color-button); }
+
+.button--outline {
+ color: var(--color-button);
+ background-color: var(--color-button-text);
+ border-color: var(--color-button); }
+ .button--outline:hover, .button--outline:focus-visible, .button--outline:active {
+ color: var(--color-button-text);
+ background-color: var(--color-button); }
+
+.button--shadow:hover,
+main button:hover {
+ box-shadow: 2px 2px 5px 1px var(--color-button-hover); }
+
+.button--shadow:active,
+main button:active {
+ box-shadow: inset 2px 2px 5px 1px var(--color-button); }
+
+[disabled].button,
+button[disabled],
+[disabled][type='button'],
+[disabled][type='reset'],
+[disabled][type='submit'] {
+ background-color: var(--color-grey-extra-light);
+ border: 1px solid var(--color-button-disabled);
+ background-image: none;
+ text-shadow: none; }
+
+.cards {
+ margin-block: 1.5rem; }
+
+.card {
+ padding: 0.75rem;
+ border: 1px solid var(--color-border); }
+ .card--highlight {
+ border-color: var(--color-highlight); }
+ .card--featured {
+ grid-row: span 2;
+ grid-column: span 2; }
+ .card--gutter {
+ padding-inline: var(--gutters); }
+ .card--inverted {
+ background: var(--color-border);
+ color: var(--color-text-bg); }
+ .card > *:first-child {
+ margin-top: 0; }
+ .card > *:last-child {
+ margin-bottom: 0; }
+
+.grid-center {
+ display: grid;
+ place-items: center; }
+
+.text-center {
+ text-align: center; }
+
+.margin-center {
+ margin-inline: auto; }
+
+.clearfix::before {
+ content: '';
+ display: table; }
+
+.clearfix::after {
+ content: '';
+ display: table;
+ clear: both; }
+
+.cookieconsent {
+ display: flex;
+ flex-flow: wrap;
+ justify-content: center;
+ gap: .5rem;
+ position: sticky;
+ bottom: 0;
+ width: 100%;
+ padding-block-start: .5rem;
+ color: var(--color-warning);
+ background-color: var(--color-warning-bg);
+ border-top: 4px solid var(--color-warning-border);
+ font-size: var(--fs-s);
+ transform: translateY(100vh);
+ transition: all 130ms ease-out;
+ z-index: 99; }
+
+.button--accept {
+ border-color: var(--color-status); }
+
+.button--decline {
+ border-color: var(--color-warning-border); }
+
+.js-cookieconsent-open {
+ transform: translateY(0); }
+
+.divider,
+hr {
+ margin-block: 1.5rem;
+ border: 0;
+ border-top: 1px solid var(--color-border); }
+ .divider > :first-child,
+ hr > :first-child {
+ margin-top: 1.5rem; }
+
+.disabled,
+.pagination .disabled .page-link,
+.pager .disabled .page-link,
+[disabled].button,
+button[disabled],
+[disabled][type='button'],
+[disabled][type='reset'],
+[disabled][type='submit'] {
+ cursor: default;
+ color: var(--color-button-disabled); }
+ .disabled:hover, .disabled:focus, .disabled:active,
+ .pagination .disabled .page-link:hover,
+ .pager .disabled .page-link:hover,
+ [disabled].button:hover,
+ button[disabled]:hover,
+ [disabled][type='button']:hover,
+ [disabled][type='reset']:hover,
+ [disabled][type='submit']:hover,
+ .pagination .disabled .page-link:focus,
+ .pager .disabled .page-link:focus,
+ [disabled].button:focus,
+ button[disabled]:focus,
+ [disabled][type='button']:focus,
+ [disabled][type='reset']:focus,
+ [disabled][type='submit']:focus,
+ .pagination .disabled .page-link:active,
+ .pager .disabled .page-link:active,
+ [disabled].button:active,
+ button[disabled]:active,
+ [disabled][type='button']:active,
+ [disabled][type='reset']:active,
+ [disabled][type='submit']:active {
+ color: var(--color-button-disabled);
+ text-decoration: none; }
+
+.flex-group {
+ gap: 1.5rem;
+ display: flex;
+ flex-wrap: wrap; }
+ .flex-group > * {
+ flex: 1;
+ flex-basis: 100%;
+ flex-grow: 0; }
+ .flex-group--grow {
+ flex-grow: 1; }
+ @media (min-width: 666px) {
+ .flex-group--2 > * {
+ flex-basis: calc(100% / 2 - 1.5rem); }
+ .flex-group--3 > * {
+ flex-basis: calc(100% / 3 - 1.5rem); }
+ .flex-group--4 > * {
+ flex-basis: calc(100% / 4 - 1.5rem); }
+ .flex-group--5 > * {
+ flex-basis: calc(100% / 5 - 1.5rem); }
+ .flex-group--6 > * {
+ flex-basis: calc(100% / 6 - 1.5rem); } }
+.flex-inline,
+.pagination,
+.pager,
+.navbar,
+.tags ul {
+ --gap: .5rem;
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--gap);
+ padding: 0;
+ text-align: start; }
+ .flex-inline__item,
+ .flex-inline li,
+ .pagination li,
+ .pager li,
+ .navbar li,
+ .tags ul li {
+ list-style: none; }
+ .flex-inline--inline,
+ .tags ul {
+ display: inline-flex; }
+
+.footer {
+ padding-block: var(--gutters);
+ background-color: var(--color-footer-bg);
+ text-align: center; }
+ .footer p {
+ margin: 0; }
+
+.grid-group,
+.cards {
+ --column-min: 200px;
+ --gap: 1.5rem;
+ display: grid;
+ gap: var(--gap);
+ grid-template-columns: repeat(auto-fit, minmax(Min(var(--column-min), 100%), 1fr)); }
+ .grid-group--fill {
+ grid-template-columns: repeat(auto-fill, minmax(Min(var(--column-min), 100%), 1fr)); }
+ .grid-group--100 {
+ --column-min: 100px; }
+ .grid-group--150 {
+ --column-min: 150px; }
+ .grid-group--200 {
+ --column-min: 200px; }
+ .grid-group--250 {
+ --column-min: 250px; }
+ .grid-group--300 {
+ --column-min: 300px; }
+ .grid-group--350 {
+ --column-min: 350px; }
+ .grid-group--400 {
+ --column-min: 400px; }
+ .grid-group--500 {
+ --column-min: 500px; }
+ .grid-group--600 {
+ --column-min: 600px; }
+
+.grid-stack {
+ display: grid; }
+ .grid-stack > * {
+ grid-column: 1 / 2;
+ grid-row: 1 / 2; }
+
+.header {
+ padding-block: var(--gutters);
+ display: flex;
+ flex-direction: column;
+ gap: var(--gutters);
+ background-color: var(--color-header-bg); }
+ @media (min-width: 666px) {
+ .header {
+ flex-direction: row; } }
+ .header__logo {
+ width: fit-content; }
+ .header__logo-image {
+ vertical-align: bottom; }
+ .header__site-name {
+ margin: 0;
+ line-height: 1; }
+ .header__site-link:link, .header__site-link:visited {
+ color: var(--color-text);
+ text-decoration: none; }
+ .header__site-link:hover, .header__site-link:focus {
+ text-decoration: underline; }
+ @media (min-width: 666px) {
+ .header__region {
+ margin-inline-start: auto; } }
+.hidden,
+html.nojs .nojs-hidden,
+html.js .js-hidden {
+ display: none; }
+
+.icon-inline .icon-link {
+ opacity: 0;
+ transition: all 130ms ease-in;
+ text-decoration: none; }
+
+.icon-inline:focus-visible .icon-link, .icon-inline:hover .icon-link {
+ opacity: .3; }
+ .icon-inline:focus-visible .icon-link:focus-visible, .icon-inline:focus-visible .icon-link:hover, .icon-inline:hover .icon-link:focus-visible, .icon-inline:hover .icon-link:hover {
+ opacity: 1; }
+
+.icon-inline svg {
+ display: inline;
+ vertical-align: middle; }
+
+.language-selector {
+ display: flex; }
+
+.language-icon {
+ margin-inline-end: 0.75rem;
+ fill: var(--color-text); }
+
+.ul-straight-left,
+article > ul,
+aside > ul {
+ display: table;
+ list-style: none;
+ padding: 0; }
+ .ul-straight-left > li,
+ article > ul > li,
+ aside > ul > li {
+ display: table-row; }
+ .ul-straight-left > li::before,
+ article > ul > li::before,
+ aside > ul > li::before {
+ padding-inline-end: 0.75rem;
+ display: table-cell;
+ content: '\2981';
+ font-size: var(--fs-s); }
+
+.ol-straight-left,
+article > ol,
+aside > ol {
+ display: table;
+ list-style: none;
+ padding: 0; }
+ .ol-straight-left > li,
+ article > ol > li,
+ aside > ol > li {
+ display: table-row;
+ counter-increment: table-ol; }
+ .ol-straight-left > li::before,
+ article > ol > li::before,
+ aside > ol > li::before {
+ padding-inline-end: 0.75rem;
+ display: table-cell;
+ content: counter(table-ol) ".";
+ font-size: var(--fs-s);
+ text-align: end; }
+
+.ul-straight-left--off {
+ display: block;
+ list-style: inherit; }
+ .ul-straight-left--off > li {
+ display: list-item; }
+ .ul-straight-left--off > li::before {
+ content: '';
+ display: inline;
+ padding: inherit; }
+
+.message {
+ padding: .5rem;
+ outline-width: 2px;
+ outline-style: solid;
+ width: 95%; }
+ .message.status {
+ background-color: var(--color-status-bg);
+ color: var(--color-status);
+ outline-color: var(--color-status); }
+ .message.warning {
+ background-color: var(--color-warning-bg);
+ color: var(--color-warning);
+ outline-color: var(--color-warning-border); }
+ .message.error {
+ background-color: var(--color-error-bg);
+ color: var(--color-error);
+ outline-color: var(--color-error); }
+ .message--highlight {
+ animation: 2s linear infinite outline-highlight; }
+
+@keyframes outline-highlight {
+ 50% {
+ outline-width: .3rem; } }
+
+.meta {
+ font-family: var(--ff-headings);
+ font-size: var(--fs-xs);
+ color: var(--color-text-meta); }
+
+.responsive-video {
+ --aspect-ratio: 9 / 16;
+ position: relative;
+ padding-bottom: calc(var(--aspect-ratio) * 100%);
+ padding-top: 25px;
+ height: 0; }
+ .responsive-video__embed,
+ .responsive-video iframe {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%; }
+ .responsive-video--4-3 {
+ --aspect-ratio: 3 / 4; }
+
+.mt--xxl {
+ margin-block-start: 4.5rem; }
+
+.mb--xxl {
+ margin-block-end: 4.5rem; }
+
+.mtb--xxl {
+ margin-block: 4.5rem; }
+
+.mt--xl {
+ margin-block-start: 3rem; }
+
+.mb--xl {
+ margin-block-end: 3rem; }
+
+.mtb--xl {
+ margin-block: 3rem; }
+
+.mt--l {
+ margin-block-start: 2.25rem; }
+
+.mb--l {
+ margin-block-end: 2.25rem; }
+
+.mtb--l {
+ margin-block: 2.25rem; }
+
+.mt--m {
+ margin-block-start: 1.5rem; }
+
+.mb--m {
+ margin-block-end: 1.5rem; }
+
+.mtb--m {
+ margin-block: 1.5rem; }
+
+.mt--s {
+ margin-block-start: 1.125rem; }
+
+.mb--s {
+ margin-block-end: 1.125rem; }
+
+.mtb--s {
+ margin-block: 1.125rem; }
+
+.mt--xs {
+ margin-block-start: 0.75rem; }
+
+.mb--xs {
+ margin-block-end: 0.75rem; }
+
+.mtb--xs {
+ margin-block: 0.75rem; }
+
+.mt--xxs {
+ margin-block-start: 0.45rem; }
+
+.mb--xxs {
+ margin-block-end: 0.45rem; }
+
+.mtb--xxs {
+ margin-block: 0.45rem; }
+
+.mt--0 {
+ margin-block-start: 0; }
+
+.mb--0 {
+ margin-block-end: 0; }
+
+.mtb--0 {
+ margin-block: 0; }
+
+.zebra-table {
+ --cell-padding: .5rem; }
+ @media (max-width: 666px) {
+ .zebra-table {
+ --cell-padding: .3rem; } }
+ .zebra-table th,
+ .zebra-table td {
+ padding: var(--cell-padding); }
+ .zebra-table thead tr {
+ background-color: var(--color-row-header); }
+ .zebra-table tbody tr:nth-child(odd) {
+ background-color: var(--color-row-odd); }
+ .zebra-table tbody tr:nth-child(even) {
+ background-color: var(--color-row-even); }
+
+.responsive-table {
+ --gap: .5rem; }
+ @media (max-width: 666px) {
+ .responsive-table th {
+ display: none; }
+ .responsive-table td {
+ display: grid;
+ gap: var(--gap);
+ grid-template-columns: 12ch auto; }
+ .responsive-table td::before {
+ content: attr(aria-label) ":";
+ font-weight: var(--fw-bold); }
+ .responsive-table td:first-of-type {
+ padding-block-start: var(--gap); }
+ .responsive-table td:last-of-type {
+ padding-block-end: var(--gap); } }
+.tags ul {
+ margin-block: 0; }
+
+.visually-hidden:not(:focus, :active) {
+ position: absolute;
+ clip: rect(0 0 0 0);
+ clip-path: inset(50%);
+ height: 1px;
+ width: 1px;
+ overflow: hidden;
+ white-space: nowrap; }
+
+.navbar {
+ margin-block: 0; }
+
+.pagination,
+.pager {
+ margin-block: 1.5rem;
+ justify-content: center; }
+ .pagination__item,
+ .pagination .page-link,
+ .pager__item,
+ .pager .page-link {
+ padding-inline: 2px; }
+ .pagination .active,
+ .pager .active {
+ font-weight: var(--fw-bold); }
+
+body {
+ background-color: var(--color-backdrop); }
+
+.page {
+ background-color: var(--color-body-bg); }
+
+.footer {
+ border-top: 2px solid var(--color-border); }
+
+th,
+label,
+legend,
+figcaption {
+ font-size: var(--fs-s); }
+
+.language-selector,
+.footer {
+ font-size: var(--fs-xs); }
+
+th,
+label,
+legend,
+.main-menu,
+.header,
+.footer {
+ color: var(--color-headings);
+ font-family: var(--ff-headings); }
+
+th,
+label {
+ font-weight: var(--fw-headings); }
+
+@media (min-width: 666px) {
+ article .submitted,
+ article .tags {
+ display: inline-block;
+ padding-inline-end: 1rem; } }
+
+article code {
+ font-size: var(--fs-xs);
+ overflow-wrap: break-word; }
+
+article pre {
+ border-radius: var(--radius-xs);
+ padding: 5px;
+ border: 1px solid var(--color-border-light);
+ background-color: var(--color-text-bg);
+ overflow: auto;
+ max-height: 300px;
+ max-width: 90vw; }
+ article pre.chroma {
+ max-height: initial;
+ overflow-x: scroll; }
+ article pre > code {
+ display: inline-block;
+ white-space: pre; }
+
+.content-dates {
+ text-align: end; }
+
+.main-menu {
+ margin-top: .75rem;
+ outline: 0; }
+ .main-menu li {
+ margin-bottom: .75rem;
+ padding: 0; }
+ .main-menu a {
+ display: block;
+ background-color: var(--color-button);
+ color: var(--color-text-bg);
+ padding: 2px 8px;
+ text-decoration: none; }
+ .main-menu a:hover, .main-menu a:focus {
+ background-color: var(--color-button-hover); }
+ .main-menu a:active, .main-menu a[aria-current] {
+ background-color: var(--color-button);
+ text-decoration: underline; }
+
+.search-text {
+ font-size: var(--fs-l); }
+
+main input:not(:placeholder-shown):valid,
+main textarea:not(:placeholder-shown):valid {
+ background-color: var(--color-status-bg); }
+
+main input:not(:placeholder-shown):invalid,
+main textarea:not(:placeholder-shown):invalid {
+ background-color: var(--color-error-bg); }
+
+main input:focus:invalid,
+main textarea:focus:invalid {
+ background-color: var(--color-warning-bg); }
+
+.js-submitted input:valid,
+.js-submitted textarea:valid {
+ background-color: var(--color-status-bg); }
+
+.js-submitted input:invalid,
+.js-submitted textarea:invalid {
+ background-color: var(--color-error-bg); }
+
+/*# sourceMappingURL=styles.css.map */ \ No newline at end of file
diff --git a/resources/_gen/assets/sass/styles.scss_f3a5364e991a57c56f5dcd8d7251924a.json b/resources/_gen/assets/sass/styles.scss_f3a5364e991a57c56f5dcd8d7251924a.json
new file mode 100644
index 0000000..081a4be
--- /dev/null
+++ b/resources/_gen/assets/sass/styles.scss_f3a5364e991a57c56f5dcd8d7251924a.json
@@ -0,0 +1 @@
+{"Target":"css/styles.css","MediaType":"text/css","Data":{}} \ No newline at end of file
diff --git a/resources/_gen/assets/scss/style.scss_77b10c8e87ff110a62c52933fe3f7f11.content b/resources/_gen/assets/scss/style.scss_77b10c8e87ff110a62c52933fe3f7f11.content
new file mode 100644
index 0000000..9b90269
--- /dev/null
+++ b/resources/_gen/assets/scss/style.scss_77b10c8e87ff110a62c52933fe3f7f11.content
@@ -0,0 +1,10 @@
+/*!* Hugo Theme Stack
+*
+* @author: Jimmy Cai
+* @website: https://jimmycai.com
+* @link: https://github.com/CaiJimmy/hugo-theme-stack*/:root{--main-top-padding:35px;--body-background:#f5f5fa;--accent-color:#34495e;--accent-color-darker:#2c3e50;--accent-color-text:#fff;--body-text-color:#707070;--tag-border-radius:4px;--section-separation:40px;--scrollbar-thumb:hsl(0, 0%, 85%);--scrollbar-track:var(--body-background)}@media(min-width:1280px){:root{--main-top-padding:50px}}:root[data-scheme=dark]{--body-background:#303030;--accent-color:#ecf0f1;--accent-color-darker:#bdc3c7;--accent-color-text:#000;--body-text-color:rgba(255, 255, 255, 0.7);--scrollbar-thumb:hsl(0, 0%, 40%);--scrollbar-track:var(--body-background)}:root{--sys-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue";--zh-font-family:"PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei";--base-font-family:"Lato", var(--sys-font-family), var(--zh-font-family), sans-serif;--code-font-family:Menlo, Monaco, Consolas, "Courier New", var(--zh-font-family), monospace}:root{--card-background:#fff;--card-background-selected:#eaeaea;--card-text-color-main:#000;--card-text-color-secondary:#747474;--card-text-color-tertiary:#767676;--card-separator-color:rgba(218, 218, 218, 0.5);--card-border-radius:10px;--card-padding:20px;--small-card-padding:25px 20px}@media(min-width:768px){:root{--card-padding:25px}}@media(min-width:1280px){:root{--card-padding:30px}}@media(min-width:768px){:root{--small-card-padding:25px}}:root[data-scheme=dark]{--card-background:#424242;--card-background-selected:rgba(255, 255, 255, 0.16);--card-text-color-main:rgba(255, 255, 255, 0.9);--card-text-color-secondary:rgba(255, 255, 255, 0.7);--card-text-color-tertiary:rgba(255, 255, 255, 0.5);--card-separator-color:rgba(255, 255, 255, 0.12)}:root{--article-font-family:var(--base-font-family);--article-font-size:1.6rem;--article-line-height:1.85}@media(min-width:768px){:root{--article-font-size:1.7rem}}:root{--blockquote-border-size:4px;--blockquote-background-color:rgb(248 248 248);--heading-border-size:4px;--link-background-color:189, 195, 199;--link-background-opacity:0.5;--link-background-opacity-hover:0.7;--pre-background-color:#272822;--pre-text-color:#f8f8f2;--code-background-color:rgba(0, 0, 0, 0.12);--code-text-color:#808080;--table-border-color:#dadada;--tr-even-background-color:#efefee;--kbd-border-color:#dadada}:root[data-scheme=dark]{--code-background-color:#272822;--code-text-color:rgba(255, 255, 255, 0.9);--table-border-color:#717171;--tr-even-background-color:#545454;--blockquote-background-color:rgb(75 75 75)}:root{--shadow-l1:0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);--shadow-l2:0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);--shadow-l3:0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);--shadow-l4:0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
+ 0px 0px 1px rgba(0, 0, 0, 0.04)}[data-scheme=light]{--pre-text-color:#272822;--pre-background-color:#fafafa}[data-scheme=light] .chroma{color:#272822;background-color:#fafafa}[data-scheme=light] .chroma .err{color:#960050}[data-scheme=light] .chroma .lntd{vertical-align:top;padding:0;margin:0;border:0}[data-scheme=light] .chroma .lntable{border-spacing:0;padding:0;margin:0;border:0;width:100%;display:block}[data-scheme=light] .chroma .lntable>tbody{display:block;width:100%}[data-scheme=light] .chroma .lntable>tbody>tr{display:flex;width:100%}[data-scheme=light] .chroma .lntable>tbody>tr>td:last-child{overflow-x:auto}[data-scheme=light] .chroma .hl{display:block;width:100%;background-color:#ffc}[data-scheme=light] .chroma .lnt{margin-right:.4em;padding:0 .4em;color:#7f7f7f;display:block}[data-scheme=light] .chroma .ln{margin-right:.4em;padding:0 .4em;color:#7f7f7f}[data-scheme=light] .chroma .k{color:#00a8c8}[data-scheme=light] .chroma .kc{color:#00a8c8}[data-scheme=light] .chroma .kd{color:#00a8c8}[data-scheme=light] .chroma .kn{color:#f92672}[data-scheme=light] .chroma .kp{color:#00a8c8}[data-scheme=light] .chroma .kr{color:#00a8c8}[data-scheme=light] .chroma .kt{color:#00a8c8}[data-scheme=light] .chroma .n{color:#111}[data-scheme=light] .chroma .na{color:#75af00}[data-scheme=light] .chroma .nb{color:#111}[data-scheme=light] .chroma .bp{color:#111}[data-scheme=light] .chroma .nc{color:#75af00}[data-scheme=light] .chroma .no{color:#00a8c8}[data-scheme=light] .chroma .nd{color:#75af00}[data-scheme=light] .chroma .ni{color:#111}[data-scheme=light] .chroma .ne{color:#75af00}[data-scheme=light] .chroma .nf{color:#75af00}[data-scheme=light] .chroma .fm{color:#111}[data-scheme=light] .chroma .nl{color:#111}[data-scheme=light] .chroma .nn{color:#111}[data-scheme=light] .chroma .nx{color:#75af00}[data-scheme=light] .chroma .py{color:#111}[data-scheme=light] .chroma .nt{color:#f92672}[data-scheme=light] .chroma .nv{color:#111}[data-scheme=light] .chroma .vc{color:#111}[data-scheme=light] .chroma .vg{color:#111}[data-scheme=light] .chroma .vi{color:#111}[data-scheme=light] .chroma .vm{color:#111}[data-scheme=light] .chroma .l{color:#ae81ff}[data-scheme=light] .chroma .ld{color:#d88200}[data-scheme=light] .chroma .s{color:#d88200}[data-scheme=light] .chroma .sa{color:#d88200}[data-scheme=light] .chroma .sb{color:#d88200}[data-scheme=light] .chroma .sc{color:#d88200}[data-scheme=light] .chroma .dl{color:#d88200}[data-scheme=light] .chroma .sd{color:#d88200}[data-scheme=light] .chroma .s2{color:#d88200}[data-scheme=light] .chroma .se{color:#ae81ff}[data-scheme=light] .chroma .sh{color:#d88200}[data-scheme=light] .chroma .si{color:#d88200}[data-scheme=light] .chroma .sx{color:#d88200}[data-scheme=light] .chroma .sr{color:#d88200}[data-scheme=light] .chroma .s1{color:#d88200}[data-scheme=light] .chroma .ss{color:#d88200}[data-scheme=light] .chroma .m{color:#ae81ff}[data-scheme=light] .chroma .mb{color:#ae81ff}[data-scheme=light] .chroma .mf{color:#ae81ff}[data-scheme=light] .chroma .mh{color:#ae81ff}[data-scheme=light] .chroma .mi{color:#ae81ff}[data-scheme=light] .chroma .il{color:#ae81ff}[data-scheme=light] .chroma .mo{color:#ae81ff}[data-scheme=light] .chroma .o{color:#f92672}[data-scheme=light] .chroma .ow{color:#f92672}[data-scheme=light] .chroma .p{color:#111}[data-scheme=light] .chroma .c{color:#75715e}[data-scheme=light] .chroma .ch{color:#75715e}[data-scheme=light] .chroma .cm{color:#75715e}[data-scheme=light] .chroma .c1{color:#75715e}[data-scheme=light] .chroma .cs{color:#75715e}[data-scheme=light] .chroma .cp{color:#75715e}[data-scheme=light] .chroma .cpf{color:#75715e}[data-scheme=light] .chroma .gd{color:#f92672}[data-scheme=light] .chroma .ge{font-style:italic}[data-scheme=light] .chroma .gi{color:#75af00}[data-scheme=light] .chroma .gs{font-weight:700}[data-scheme=light] .chroma .gu{color:#75715e}[data-scheme=dark]{--pre-text-color:#f8f8f2;--pre-background-color:#272822}[data-scheme=dark] .chroma{color:#f8f8f2;background-color:#272822}[data-scheme=dark] .chroma .err{color:#bb0064}[data-scheme=dark] .chroma .lntd{vertical-align:top;padding:0;margin:0;border:0}[data-scheme=dark] .chroma .lntable{border-spacing:0;padding:0;margin:0;border:0;width:100%;display:block}[data-scheme=dark] .chroma .lntable>tbody{display:block;width:100%}[data-scheme=dark] .chroma .lntable>tbody>tr{display:flex;width:100%}[data-scheme=dark] .chroma .lntable>tbody>tr>td:last-child{overflow-x:auto}[data-scheme=dark] .chroma .hl{display:block;width:100%;background-color:#ffc}[data-scheme=dark] .chroma .lnt{margin-right:.4em;padding:0 .4em;color:#7f7f7f;display:block}[data-scheme=dark] .chroma .ln{margin-right:.4em;padding:0 .4em;color:#7f7f7f}[data-scheme=dark] .chroma .k{color:#66d9ef}[data-scheme=dark] .chroma .kc{color:#66d9ef}[data-scheme=dark] .chroma .kd{color:#66d9ef}[data-scheme=dark] .chroma .kn{color:#f92672}[data-scheme=dark] .chroma .kp{color:#66d9ef}[data-scheme=dark] .chroma .kr{color:#66d9ef}[data-scheme=dark] .chroma .kt{color:#66d9ef}[data-scheme=dark] .chroma .n{color:#f8f8f2}[data-scheme=dark] .chroma .na{color:#a6e22e}[data-scheme=dark] .chroma .nb{color:#f8f8f2}[data-scheme=dark] .chroma .bp{color:#f8f8f2}[data-scheme=dark] .chroma .nc{color:#a6e22e}[data-scheme=dark] .chroma .no{color:#66d9ef}[data-scheme=dark] .chroma .nd{color:#a6e22e}[data-scheme=dark] .chroma .ni{color:#f8f8f2}[data-scheme=dark] .chroma .ne{color:#a6e22e}[data-scheme=dark] .chroma .nf{color:#a6e22e}[data-scheme=dark] .chroma .fm{color:#f8f8f2}[data-scheme=dark] .chroma .nl{color:#f8f8f2}[data-scheme=dark] .chroma .nn{color:#f8f8f2}[data-scheme=dark] .chroma .nx{color:#a6e22e}[data-scheme=dark] .chroma .py{color:#f8f8f2}[data-scheme=dark] .chroma .nt{color:#f92672}[data-scheme=dark] .chroma .nv{color:#f8f8f2}[data-scheme=dark] .chroma .vc{color:#f8f8f2}[data-scheme=dark] .chroma .vg{color:#f8f8f2}[data-scheme=dark] .chroma .vi{color:#f8f8f2}[data-scheme=dark] .chroma .vm{color:#f8f8f2}[data-scheme=dark] .chroma .l{color:#ae81ff}[data-scheme=dark] .chroma .ld{color:#e6db74}[data-scheme=dark] .chroma .s{color:#e6db74}[data-scheme=dark] .chroma .sa{color:#e6db74}[data-scheme=dark] .chroma .sb{color:#e6db74}[data-scheme=dark] .chroma .sc{color:#e6db74}[data-scheme=dark] .chroma .dl{color:#e6db74}[data-scheme=dark] .chroma .sd{color:#e6db74}[data-scheme=dark] .chroma .s2{color:#e6db74}[data-scheme=dark] .chroma .se{color:#ae81ff}[data-scheme=dark] .chroma .sh{color:#e6db74}[data-scheme=dark] .chroma .si{color:#e6db74}[data-scheme=dark] .chroma .sx{color:#e6db74}[data-scheme=dark] .chroma .sr{color:#e6db74}[data-scheme=dark] .chroma .s1{color:#e6db74}[data-scheme=dark] .chroma .ss{color:#e6db74}[data-scheme=dark] .chroma .m{color:#ae81ff}[data-scheme=dark] .chroma .mb{color:#ae81ff}[data-scheme=dark] .chroma .mf{color:#ae81ff}[data-scheme=dark] .chroma .mh{color:#ae81ff}[data-scheme=dark] .chroma .mi{color:#ae81ff}[data-scheme=dark] .chroma .il{color:#ae81ff}[data-scheme=dark] .chroma .mo{color:#ae81ff}[data-scheme=dark] .chroma .o{color:#f92672}[data-scheme=dark] .chroma .ow{color:#f92672}[data-scheme=dark] .chroma .p{color:#f8f8f2}[data-scheme=dark] .chroma .c{color:#75715e}[data-scheme=dark] .chroma .ch{color:#75715e}[data-scheme=dark] .chroma .cm{color:#75715e}[data-scheme=dark] .chroma .c1{color:#75715e}[data-scheme=dark] .chroma .cs{color:#75715e}[data-scheme=dark] .chroma .cp{color:#75715e}[data-scheme=dark] .chroma .cpf{color:#75715e}[data-scheme=dark] .chroma .gd{color:#f92672}[data-scheme=dark] .chroma .ge{font-style:italic}[data-scheme=dark] .chroma .gi{color:#a6e22e}[data-scheme=dark] .chroma .gs{font-weight:700}[data-scheme=dark] .chroma .gu{color:#75715e}:root{--menu-icon-separation:40px;--container-padding:15px;--widget-separation:var(--section-separation)}.container{margin-left:auto;margin-right:auto}.container .left-sidebar{order:-3;max-width:var(--left-sidebar-max-width)}.container .right-sidebar{order:-1;max-width:var(--right-sidebar-max-width)}@media(min-width:1024px){.container .right-sidebar{display:flex}}@media(min-width:768px){.container.extended{max-width:1024px;--left-sidebar-max-width:25%;--right-sidebar-max-width:30%}}@media(min-width:1024px){.container.extended{max-width:1280px;--left-sidebar-max-width:20%;--right-sidebar-max-width:30%}}@media(min-width:1280px){.container.extended{max-width:1536px;--left-sidebar-max-width:15%;--right-sidebar-max-width:25%}}@media(min-width:768px){.container.compact{--left-sidebar-max-width:25%;max-width:768px}}@media(min-width:1024px){.container.compact{max-width:1024px;--left-sidebar-max-width:20%}}@media(min-width:1280px){.container.compact{max-width:1280px}}.flex{display:flex;flex-direction:row}.flex.column{flex-direction:column}.flex.on-phone--column{flex-direction:column}@media(min-width:768px){.flex.on-phone--column{flex-direction:unset}}.flex .full-width{width:100%}main.main{order:-2;min-width:0;max-width:100%;flex-grow:1;display:flex;flex-direction:column;gap:var(--section-separation)}@media(min-width:768px){main.main{padding-top:var(--main-top-padding)}}.main-container{min-height:100vh;align-items:flex-start;padding:0 15px;gap:var(--section-separation);padding-top:var(--main-top-padding)}@media(min-width:768px){.main-container{padding:0 20px}}/*!normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css*/html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}/*!* Hamburgers
+* @description Tasty CSS-animated hamburgers
+* @author Jonathan Suh @jonsuh
+* @site https://jonsuh.com/hamburgers
+* @link https://github.com/jonsuh/hamburgers*/.hamburger{padding-top:10px;display:inline-block;cursor:pointer;transition-property:opacity,filter;transition-duration:.15s;transition-timing-function:linear;font:inherit;color:inherit;text-transform:none;background-color:transparent;border:0;margin:0;overflow:visible}.hamburger:hover{opacity:.7}.hamburger.is-active:hover{opacity:.7}.hamburger.is-active .hamburger-inner,.hamburger.is-active .hamburger-inner::before,.hamburger.is-active .hamburger-inner::after{background-color:#000}.hamburger-box{width:30px;height:24px;display:inline-block;position:relative}.hamburger-inner{display:block;top:50%;margin-top:-2px}.hamburger-inner,.hamburger-inner::before,.hamburger-inner::after{width:30px;height:2px;background-color:var(--card-text-color-main);border-radius:4px;position:absolute;transition-property:transform;transition-duration:.15s;transition-timing-function:ease}.hamburger-inner::before,.hamburger-inner::after{content:"";display:block}.hamburger-inner::before{top:-10px}.hamburger-inner::after{bottom:-10px}.hamburger--spin .hamburger-inner{transition-duration:.22s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.hamburger--spin .hamburger-inner::before{transition:top .1s .25s ease-in,opacity .1s ease-in}.hamburger--spin .hamburger-inner::after{transition:bottom .1s .25s ease-in,transform .22s cubic-bezier(.55,.055,.675,.19)}.hamburger--spin.is-active .hamburger-inner{transform:rotate(225deg);transition-delay:.12s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.hamburger--spin.is-active .hamburger-inner::before{top:0;opacity:0;transition:top .1s ease-out,opacity .1s .12s ease-out}.hamburger--spin.is-active .hamburger-inner::after{bottom:0;transform:rotate(-90deg);transition:bottom .1s ease-out,transform .22s .12s cubic-bezier(.215,.61,.355,1)}#toggle-menu{background:0 0;border:none;position:absolute;right:0;top:0;z-index:2;cursor:pointer;outline:none}[dir=rtl] #toggle-menu{left:0;right:auto}@media(min-width:768px){#toggle-menu{display:none}}#toggle-menu.is-active .hamburger-inner,#toggle-menu.is-active .hamburger-inner::before,#toggle-menu.is-active .hamburger-inner::after{background-color:var(--accent-color)}#main-menu{list-style:none;overflow-y:auto;flex-grow:1;font-size:1.4rem;background-color:var(--card-background);box-shadow:var(--shadow-l1);display:none;margin:0 calc(var(--container-padding) * -1);padding:30px}@media(min-width:1280px){#main-menu{padding:15px 0}}#main-menu,#main-menu .menu-bottom-section ol{flex-direction:column;gap:30px}@media(min-width:1280px){#main-menu,#main-menu .menu-bottom-section ol{gap:25px}}#main-menu.show{display:flex}@media(min-width:768px){#main-menu{align-items:flex-end;display:flex;background-color:transparent;padding:0;box-shadow:none;margin:0}}#main-menu li{position:relative;vertical-align:middle;padding:0}@media(min-width:768px){#main-menu li{width:100%}}#main-menu li svg{stroke:currentColor;stroke-width:1.33;width:20px;height:20px}#main-menu li a{height:100%;display:inline-flex;align-items:center;color:var(--body-text-color);gap:var(--menu-icon-separation)}#main-menu li span{flex:1}#main-menu li.current a{color:var(--accent-color);font-weight:700}#main-menu li.menu-bottom-section{margin-top:auto}#main-menu li.menu-bottom-section ol{display:flex;padding-left:0}.menu-social{list-style:none;padding:0;margin:0;display:flex;flex-direction:row;gap:10px}.menu-social svg{width:24px;height:24px;stroke:var(--body-text-color);stroke-width:1.33}.article-list{display:flex;flex-direction:column;gap:var(--section-separation)}.article-list article{display:flex;flex-direction:column;background-color:var(--card-background);box-shadow:var(--shadow-l1);border-radius:var(--card-border-radius);overflow:hidden;transition:box-shadow .3s ease}.article-list article:hover{box-shadow:var(--shadow-l2)}.article-list article .article-image img{width:100%;height:150px;object-fit:cover}@media(min-width:768px){.article-list article .article-image img{height:200px}}@media(min-width:1280px){.article-list article .article-image img{height:250px}}.article-list article:nth-child(5n+1) .article-category a{background:#8ea885;color:#fff}.article-list article:nth-child(5n+2) .article-category a{background:#df7988;color:#fff}.article-list article:nth-child(5n+3) .article-category a{background:#0177b8;color:#fff}.article-list article:nth-child(5n+4) .article-category a{background:#ffb900;color:#fff}.article-list article:nth-child(5n+5) .article-category a{background:#6b69d6;color:#fff}.article-details{display:flex;flex-direction:column;justify-content:center;padding:var(--card-padding);gap:15px}.article-title{font-family:var(--article-font-family);font-weight:600;margin:0;color:var(--card-text-color-main);font-size:2.2rem}@media(min-width:1280px){.article-title{font-size:2.4rem}}.article-title a{color:var(--card-text-color-main)}.article-title a:hover{color:var(--card-text-color-main)}.article-subtitle{font-weight:400;color:var(--card-text-color-secondary);line-height:1.5;margin:0;font-size:1.75rem}@media(min-width:1280px){.article-subtitle{font-size:2rem}}.article-title-wrapper{display:flex;flex-direction:column;gap:8px}.article-time,.article-translations{display:flex;color:var(--card-text-color-tertiary);gap:15px}.article-time svg,.article-translations svg{vertical-align:middle;width:20px;height:20px;stroke-width:1.33;flex-shrink:0}.article-time time,.article-time a,.article-translations time,.article-translations a{font-size:1.4rem;color:var(--card-text-color-tertiary)}.article-time>div,.article-translations>div{display:inline-flex;align-items:center;gap:15px}.article-time{flex-wrap:wrap}.article-translations>div{flex-wrap:wrap}.article-category,.article-tags{display:flex;gap:10px;flex-wrap:wrap}.article-category a,.article-tags a{color:var(--accent-color-text);background-color:var(--accent-color);padding:8px 16px;border-radius:var(--tag-border-radius);display:inline-block;font-size:1.4rem;transition:background-color .5s ease}.article-category a:hover,.article-tags a:hover{color:var(--accent-color-text);background-color:var(--accent-color-darker)}.article-list--compact{border-radius:var(--card-border-radius);box-shadow:var(--shadow-l1);background-color:var(--card-background);--image-size:50px}@media(min-width:768px){.article-list--compact{--image-size:60px}}.article-list--compact article>a{display:flex;align-items:center;padding:var(--small-card-padding);gap:15px}.article-list--compact article:not(:last-of-type){border-bottom:1.5px solid var(--card-separator-color)}.article-list--compact article .article-details{flex-grow:1;padding:0;min-height:var(--image-size);gap:10px}.article-list--compact article .article-title{margin:0;font-size:1.6rem}@media(min-width:768px){.article-list--compact article .article-title{font-size:1.8rem}}.article-list--compact article .article-image img{width:var(--image-size);height:var(--image-size);object-fit:cover}.article-list--compact article .article-time{font-size:1.4rem}.article-list--compact article .article-preview{font-size:1.4rem;color:var(--card-text-color-tertiary);margin-top:10px;line-height:1.5}.article-list--tile article{border-radius:var(--card-border-radius);overflow:hidden;position:relative;height:350px;width:250px;box-shadow:var(--shadow-l1);transition:box-shadow .3s ease;background-color:var(--card-background)}.article-list--tile article:hover{box-shadow:var(--shadow-l2)}.article-list--tile article.has-image .article-details{background-color:rgba(0,0,0,.25)}.article-list--tile article.has-image .article-title{color:#fff}.article-list--tile article .article-image{position:absolute;top:0;left:0;width:100%;height:100%}.article-list--tile article .article-image img{width:100%;height:100%;object-fit:cover}.article-list--tile article .article-details{border-radius:var(--card-border-radius);position:relative;height:100%;width:100%;display:flex;flex-direction:column;justify-content:flex-end;z-index:2;padding:15px}@media(min-width:640px){.article-list--tile article .article-details{padding:20px}}.article-list--tile article .article-title{font-size:2rem;font-weight:500;color:var(--card-text-color-main)}@media(min-width:640px){.article-list--tile article .article-title{font-size:2.2rem}}.widget{display:flex;flex-direction:column}.widget .widget-icon svg{width:32px;height:32px;stroke-width:1.6;color:var(--body-text-color)}.tagCloud .tagCloud-tags{display:flex;flex-wrap:wrap;gap:10px}.tagCloud .tagCloud-tags a{background:var(--card-background);box-shadow:var(--shadow-l1);border-radius:var(--tag-border-radius);padding:8px 20px;color:var(--card-text-color-main);font-size:1.4rem;transition:box-shadow .3s ease}.tagCloud .tagCloud-tags a:hover{box-shadow:var(--shadow-l2)}.widget.archives .widget-archive--list{border-radius:var(--card-border-radius);box-shadow:var(--shadow-l1);background-color:var(--card-background)}.widget.archives .archives-year:not(:last-of-type){border-bottom:1.5px solid var(--card-separator-color)}.widget.archives .archives-year a{font-size:1.4rem;padding:18px 25px;display:flex}.widget.archives .archives-year a span.year{flex:1;color:var(--card-text-color-main);font-weight:700}.widget.archives .archives-year a span.count{color:var(--card-text-color-tertiary)}footer.site-footer{padding:20px 0 var(--section-separation);font-size:1.4rem;line-height:1.75}footer.site-footer:before{content:"";display:block;height:3px;width:50px;background:var(--body-text-color);margin-bottom:20px}footer.site-footer .copyright{color:var(--accent-color);font-weight:700;margin-bottom:5px}footer.site-footer .powerby{color:var(--body-text-color);font-weight:400;font-size:1.2rem}footer.site-footer .powerby a{color:var(--body-text-color)}.pagination{display:flex;background-color:var(--card-background);box-shadow:var(--shadow-l1);border-radius:var(--card-border-radius);overflow:hidden;flex-wrap:wrap}.pagination .page-link{padding:16px 32px;display:inline-flex;color:var(--card-text-color-secondary)}.pagination .page-link.current{font-weight:700;background-color:var(--card-background-selected);color:var(--card-text-color-main)}@media(min-width:768px){.sidebar.sticky{position:sticky}}.left-sidebar{display:flex;flex-direction:column;flex-shrink:0;align-self:stretch;gap:var(--sidebar-element-separation);max-width:none;width:100%;position:relative;--sidebar-avatar-size:100px;--sidebar-element-separation:20px;--emoji-size:40px;--emoji-font-size:20px}@media(min-width:768px){.left-sidebar{width:auto;padding-top:var(--main-top-padding);padding-bottom:var(--main-top-padding);max-height:100vh}}@media(min-width:1536px){.left-sidebar{--sidebar-avatar-size:120px;--sidebar-element-separation:25px;--emoji-size:40px}}.left-sidebar.sticky{top:0}.left-sidebar.compact{--sidebar-avatar-size:80px;--emoji-size:30px;--emoji-font-size:15px}@media(min-width:1024px){.left-sidebar.compact header{flex-direction:row}}.left-sidebar.compact header .site-meta{gap:5px}.left-sidebar.compact header .site-name{font-size:1.4rem}@media(min-width:1536px){.left-sidebar.compact header .site-name{font-size:1.75rem}}.left-sidebar.compact header .site-description{font-size:1.4rem}.right-sidebar{width:100%;display:none;flex-direction:column;gap:var(--widget-separation)}.right-sidebar.sticky{top:0}@media(min-width:1024px){.right-sidebar{padding-top:var(--main-top-padding);padding-bottom:var(--main-top-padding)}}.sidebar header{z-index:1;transition:box-shadow .5s ease;display:flex;flex-direction:column;gap:var(--sidebar-element-separation)}@media(min-width:768px){.sidebar header{padding:0}}.sidebar header .site-avatar{position:relative;margin:0;width:var(--sidebar-avatar-size);height:var(--sidebar-avatar-size);flex-shrink:0}.sidebar header .site-avatar .site-logo{width:100%;height:100%;border-radius:100%;box-shadow:var(--shadow-l1)}.sidebar header .site-avatar .emoji{position:absolute;width:var(--emoji-size);height:var(--emoji-size);line-height:var(--emoji-size);border-radius:100%;bottom:0;right:0;text-align:center;font-size:var(--emoji-font-size);background-color:var(--card-background);box-shadow:var(--shadow-l2)}.sidebar header .site-meta{display:flex;flex-direction:column;gap:10px;justify-content:center}.sidebar header .site-name{color:var(--accent-color);margin:0;font-size:1.6rem}@media(min-width:1536px){.sidebar header .site-name{font-size:1.8rem}}.sidebar header .site-description{color:var(--body-text-color);font-weight:400;margin:0;font-size:1.4rem}@media(min-width:1536px){.sidebar header .site-description{font-size:1.6rem}}[data-scheme=dark] #dark-mode-toggle{color:var(--accent-color);font-weight:700}[data-scheme=dark] #dark-mode-toggle .icon-tabler-toggle-left{display:none}[data-scheme=dark] #dark-mode-toggle .icon-tabler-toggle-right{display:unset}#dark-mode-toggle{margin-top:auto;color:var(--body-text-color);display:flex;align-items:center;cursor:pointer;gap:var(--menu-icon-separation)}#dark-mode-toggle .icon-tabler-toggle-right{display:none}#i18n-switch{color:var(--body-text-color);display:inline-flex;align-content:center;gap:var(--menu-icon-separation)}#i18n-switch select{border:0;background-color:transparent;color:var(--body-text-color)}#i18n-switch select option{color:var(--card-text-color-main);background-color:var(--card-background)}html{font-size:62.5%;overflow-y:scroll}*{box-sizing:border-box}body{background:var(--body-background);margin:0;font-family:var(--base-font-family);font-size:1.6rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb)transparent}::-webkit-scrollbar{height:auto}::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb)}::-webkit-scrollbar-track{background-color:transparent}.article-page.hide-sidebar-sm .left-sidebar{display:none}@media(min-width:768px){.article-page.hide-sidebar-sm .left-sidebar{display:inherit}}.article-page .main-article{background:var(--card-background);border-radius:var(--card-border-radius);box-shadow:var(--shadow-l1);overflow:hidden}.article-page .main-article .article-header .article-image img{height:auto;width:100%;max-height:50vh;object-fit:cover}.article-page .main-article .article-header .article-details{padding:var(--card-padding);padding-bottom:0}.article-page .main-article .article-content{margin:var(--card-padding)0;color:var(--card-text-color-main)}.article-page .main-article .article-content .footnotes{font-family:var(--base-font-family)}.article-page .main-article .article-content img{max-width:100%;height:auto}.article-page .main-article .article-footer{margin:var(--card-padding);margin-top:0}.article-page .main-article .article-footer section:not(:first-child){margin-top:var(--card-padding)}.article-page .main-article .article-footer section{color:var(--card-text-color-tertiary);text-transform:uppercase;display:flex;align-items:center;font-size:1.4rem;gap:15px}.article-page .main-article .article-footer section svg{width:20px;height:20px;stroke-width:1.33}.article-page .main-article .article-footer .article-tags{text-transform:unset}.article-page .main-article .article-footer .article-copyright a,.article-page .main-article .article-footer .article-lastmod a{color:var(--body-text-color)}.article-page .main-article .article-footer .article-copyright a.link,.article-page .main-article .article-footer .article-lastmod a.link{box-shadow:unset}.widget--toc{background-color:var(--card-background);border-radius:var(--card-border-radius);box-shadow:var(--shadow-l1);display:flex;flex-direction:column;color:var(--card-text-color-main);overflow:hidden}.widget--toc ::-webkit-scrollbar-thumb{background-color:var(--card-separator-color)}.widget--toc #TableOfContents{overflow-x:auto;max-height:75vh}.widget--toc #TableOfContents ol,.widget--toc #TableOfContents ul{margin:0;padding:0}.widget--toc #TableOfContents ol{list-style-type:none;counter-reset:item}.widget--toc #TableOfContents ol li a:first-of-type::before{counter-increment:item;content:counters(item,".")". ";font-weight:700;margin-right:5px}.widget--toc #TableOfContents>ul{padding:0 1em}.widget--toc #TableOfContents li{margin:15px 0 15px 20px;padding:5px}.widget--toc #TableOfContents li>ol,.widget--toc #TableOfContents li>ul{margin-top:10px;padding-left:10px;margin-bottom:-5px}.widget--toc #TableOfContents li>ol>li:last-child,.widget--toc #TableOfContents li>ul>li:last-child{margin-bottom:0}.widget--toc #TableOfContents li.active-class>a{border-left:var(--heading-border-size)solid var(--accent-color);font-weight:700}.widget--toc #TableOfContents ul li.active-class>a{display:block}.widget--toc #TableOfContents>ul>li.active-class>a{margin-left:calc(-25px - 1em);padding-left:calc(25px + 1em - var(--heading-border-size))}.widget--toc #TableOfContents>ol>li.active-class>a{margin-left:calc(-9px - 1em);padding-left:calc(9px + 1em - var(--heading-border-size));display:block}.widget--toc #TableOfContents>ul>li>ul>li.active-class>a{margin-left:calc(-60px - 1em);padding-left:calc(60px + 1em - var(--heading-border-size))}.widget--toc #TableOfContents>ol>li>ol>li.active-class>a{margin-left:calc(-44px - 1em);padding-left:calc(44px + 1em - var(--heading-border-size));display:block}.widget--toc #TableOfContents>ul>li>ul>li>ul>li.active-class>a{margin-left:calc(-95px - 1em);padding-left:calc(95px + 1em - var(--heading-border-size))}.widget--toc #TableOfContents>ol>li>ol>li>ol>li.active-class>a{margin-left:calc(-79px - 1em);padding-left:calc(79px + 1em - var(--heading-border-size));display:block}.widget--toc #TableOfContents>ul>li>ul>li>ul>li>ul>li.active-class>a{margin-left:calc(-130px - 1em);padding-left:calc(130px + 1em - var(--heading-border-size))}.widget--toc #TableOfContents>ol>li>ol>li>ol>li>ol>li.active-class>a{margin-left:calc(-114px - 1em);padding-left:calc(114px + 1em - var(--heading-border-size));display:block}.widget--toc #TableOfContents>ul>li>ul>li>ul>li>ul>li>ul>li.active-class>a{margin-left:calc(-165px - 1em);padding-left:calc(165px + 1em - var(--heading-border-size))}.widget--toc #TableOfContents>ol>li>ol>li>ol>li>ol>li>ol>li.active-class>a{margin-left:calc(-149px - 1em);padding-left:calc(149px + 1em - var(--heading-border-size));display:block}.related-content{overflow-x:auto;padding-bottom:15px}.related-content>.flex{float:left}.related-content article{margin-right:15px;flex-shrink:0;overflow:hidden;width:250px;height:150px}.related-content article .article-title{font-size:1.8rem;margin:0}.related-content article.has-image .article-details{padding:20px;background:linear-gradient(0deg,rgba(0,0,0,.25) 0%,rgba(0,0,0,.75) 100%)}.article-content{font-family:var(--article-font-family);font-size:var(--article-font-size);padding:0 var(--card-padding);line-height:var(--article-line-height)}.article-content>p{margin:1.5em 0}.article-content h1,.article-content h2,.article-content h3,.article-content h4,.article-content h5,.article-content h6{margin-inline-start:calc((var(--card-padding)) * -1);padding-inline-start:calc(var(--card-padding) - var(--heading-border-size));border-inline-start:var(--heading-border-size)solid var(--accent-color);position:relative}.article-content h1 a.header-anchor,.article-content h2 a.header-anchor,.article-content h3 a.header-anchor,.article-content h4 a.header-anchor,.article-content h5 a.header-anchor,.article-content h6 a.header-anchor{transition:opacity .3s ease;opacity:0;position:absolute;left:0;width:var(--card-padding);text-align:center;color:var(--accent-color)}.article-content h1 a.header-anchor:before,.article-content h2 a.header-anchor:before,.article-content h3 a.header-anchor:before,.article-content h4 a.header-anchor:before,.article-content h5 a.header-anchor:before,.article-content h6 a.header-anchor:before{content:"#"}.article-content h1:hover a.header-anchor,.article-content h1:focus a.header-anchor,.article-content h2:hover a.header-anchor,.article-content h2:focus a.header-anchor,.article-content h3:hover a.header-anchor,.article-content h3:focus a.header-anchor,.article-content h4:hover a.header-anchor,.article-content h4:focus a.header-anchor,.article-content h5:hover a.header-anchor,.article-content h5:focus a.header-anchor,.article-content h6:hover a.header-anchor,.article-content h6:focus a.header-anchor{opacity:1}.article-content figure{text-align:center}.article-content figure figcaption{font-size:1.4rem;color:var(--card-text-color-secondary)}.article-content blockquote{position:relative;margin:1.5em 0;border-inline-start:var(--blockquote-border-size)solid var(--card-separator-color);padding:15px calc(var(--card-padding) - var(--blockquote-border-size));background-color:var(--blockquote-background-color)}.article-content blockquote .cite{display:block;text-align:right;font-size:.75em}.article-content blockquote .cite a{text-decoration:underline}.article-content hr{width:100px;margin:40px auto;background:var(--card-text-color-tertiary);height:2px;border:0;opacity:.55}.article-content code{color:var(--code-text-color);background-color:var(--code-background-color);padding:2px 4px;border-radius:var(--tag-border-radius);font-family:var(--code-font-family)}.article-content a,.article-content code{word-break:break-word}.article-content .gallery{position:relative;display:flex;flex-direction:row;justify-content:center;margin:1.5em 0;gap:10px}.article-content .gallery figure{margin:0}.article-content pre{overflow-x:auto;display:block;background-color:var(--pre-background-color);color:var(--pre-text-color);font-family:var(--code-font-family);line-height:1.428571429;word-break:break-all;padding:var(--card-padding)}[dir=rtl] .article-content pre{direction:ltr}.article-content pre code{color:unset;border:none;background:0 0;padding:0}.article-content .highlight{background-color:var(--pre-background-color);padding:var(--card-padding);position:relative}.article-content .highlight:hover .copyCodeButton{opacity:1}[dir=rtl] .article-content .highlight{direction:ltr}.article-content .highlight pre{margin:initial;padding:0;margin:0;width:auto}.article-content .copyCodeButton{position:absolute;top:calc(var(--card-padding));right:calc(var(--card-padding));background:var(--card-background);border:none;box-shadow:var(--shadow-l2);border-radius:var(--tag-border-radius);padding:8px 16px;color:var(--card-text-color-main);cursor:pointer;font-size:14px;opacity:0;transition:opacity .3s ease}.article-content .table-wrapper{padding:0 var(--card-padding);overflow-x:auto;display:block}.article-content table{width:100%;border-collapse:collapse;border-spacing:0;margin-bottom:1.5em;font-size:.96em}.article-content th,.article-content td{text-align:left;padding:4px 8px 4px 10px;border:1px solid var(--table-border-color)}.article-content td{vertical-align:top}.article-content tr:nth-child(even){background-color:var(--tr-even-background-color)}.article-content .twitter-tweet{color:var(--card-text-color-main)}.article-content .video-wrapper{position:relative;width:100%;height:0;padding-bottom:56.25%;overflow:hidden}.article-content .video-wrapper>iframe,.article-content .video-wrapper>video{position:absolute;width:100%;height:100%;left:0;top:0;border:0}.article-content .gitlab-embed-snippets{margin:0!important}.article-content .gitlab-embed-snippets .file-holder.snippet-file-content{margin-block-end:0!important;margin-block-start:0!important;margin-left:calc((var(--card-padding)) * -1)!important;margin-right:calc((var(--card-padding)) * -1)!important;padding:0 var(--card-padding)!important}.article-content blockquote,.article-content figure,.article-content .highlight,.article-content pre,.article-content .gallery,.article-content .video-wrapper,.article-content .table-wrapper,.article-content .s_video_simple{margin-left:calc((var(--card-padding)) * -1);margin-right:calc((var(--card-padding)) * -1);width:calc(100% + var(--card-padding) * 2)}.article-content .katex-display>.katex{overflow-x:auto;overflow-y:hidden}.article-content kbd{border:1px solid var(--kbd-border-color);font-weight:700;font-size:.9em;line-height:1;padding:2px 4px;border-radius:4px;display:inline-block}.section-card{border-radius:var(--card-border-radius);background-color:var(--card-background);padding:var(--small-card-padding);box-shadow:var(--shadow-l1);display:flex;align-items:center;gap:20px;--separation:15px}.section-card .section-term{font-size:2.2rem;margin:0;color:var(--card-text-color-main)}.section-card .section-description{font-weight:400;color:var(--card-text-color-secondary);font-size:1.6rem;margin:0}.section-card .section-details{flex-grow:1;display:flex;flex-direction:column;gap:8px}.section-card .section-image img{width:60px;height:60px}.section-card .section-count{color:var(--card-text-color-tertiary);font-size:1.4rem;margin:0;font-weight:700;text-transform:uppercase}.subsection-list{overflow-x:auto}.subsection-list .article-list--tile{display:flex;padding-bottom:15px}.subsection-list .article-list--tile article{width:250px;height:150px;margin-right:20px;flex-shrink:0}.subsection-list .article-list--tile article .article-title{margin:0;font-size:1.8rem}.subsection-list .article-list--tile article .article-details{padding:20px}.not-found-card{background-color:var(--card-background);box-shadow:var(--shadow-l1);border-radius:var(--card-border-radius);padding:var(--card-padding)}.search-form{position:relative;--button-size:80px}.search-form.widget{--button-size:60px}.search-form.widget label{font-size:1.3rem;top:10px}.search-form.widget input{font-size:1.5rem;padding:30px 20px 15px}.search-form p{position:relative;margin:0}.search-form label{position:absolute;top:15px;inset-inline-start:20px;font-size:1.4rem;color:var(--card-text-color-tertiary)}.search-form input{padding:40px 20px 20px;border-radius:var(--card-border-radius);background-color:var(--card-background);box-shadow:var(--shadow-l1);color:var(--card-text-color-main);width:100%;border:0;-webkit-appearance:none;transition:box-shadow .3s ease;font-size:1.8rem}.search-form input:focus{outline:0;box-shadow:var(--shadow-l2)}.search-form button{position:absolute;inset-inline-end:0;top:0;height:100%;width:var(--button-size);cursor:pointer;background-color:transparent;border:0;padding:0 10px}.search-form button:focus{outline:0}.search-form button:focus svg{stroke-width:2;color:var(--accent-color)}.search-form button svg{color:var(--card-text-color-secondary);stroke-width:1.33;transition:all .3s ease;width:20px;height:20px}a{text-decoration:none;color:var(--accent-color)}a:hover{color:var(--accent-color-darker)}a.link{box-shadow:0 -2px rgba(var(--link-background-color),var(--link-background-opacity))inset;transition:all .3s ease}a.link:hover{box-shadow:0 calc(-1rem * var(--article-line-height))rgba(var(--link-background-color),var(--link-background-opacity-hover))inset}.section-title{text-transform:uppercase;margin-top:0;margin-bottom:10px;display:block;font-size:1.6rem;font-weight:700;color:var(--body-text-color)}.section-title a{color:var(--body-text-color)} \ No newline at end of file
diff --git a/resources/_gen/assets/scss/style.scss_77b10c8e87ff110a62c52933fe3f7f11.json b/resources/_gen/assets/scss/style.scss_77b10c8e87ff110a62c52933fe3f7f11.json
new file mode 100644
index 0000000..7d2227f
--- /dev/null
+++ b/resources/_gen/assets/scss/style.scss_77b10c8e87ff110a62c52933fe3f7f11.json
@@ -0,0 +1 @@
+{"Target":"/scss/style.min.663803bebe609202d5b39d848f2d7c2dc8b598a2d879efa079fa88893d29c49c.css","MediaType":"text/css","Data":{"Integrity":"sha256-ZjgDvr5gkgLVs52Ejy18Lci1mKLYee+gefqIiT0pxJw="}} \ No newline at end of file
diff --git a/resources/_gen/images/img/avatar_hu13739649187745961479.png b/resources/_gen/images/img/avatar_hu13739649187745961479.png
new file mode 100644
index 0000000..bab4bde
--- /dev/null
+++ b/resources/_gen/images/img/avatar_hu13739649187745961479.png
Binary files differ
diff --git a/resources/_gen/images/img/logo_hu12649729852859296353.png b/resources/_gen/images/img/logo_hu12649729852859296353.png
new file mode 100644
index 0000000..a630cb0
--- /dev/null
+++ b/resources/_gen/images/img/logo_hu12649729852859296353.png
Binary files differ
diff --git a/static/upload/Rama16wiki-150x150.jpg b/static/upload/Rama16wiki-150x150.jpg
new file mode 100644
index 0000000..67d9109
--- /dev/null
+++ b/static/upload/Rama16wiki-150x150.jpg
Binary files differ
diff --git a/static/upload/Rama16wiki-300x169.jpg b/static/upload/Rama16wiki-300x169.jpg
new file mode 100644
index 0000000..8dc78c8
--- /dev/null
+++ b/static/upload/Rama16wiki-300x169.jpg
Binary files differ
diff --git a/static/upload/Rama16wiki.jpg b/static/upload/Rama16wiki.jpg
new file mode 100644
index 0000000..4039369
--- /dev/null
+++ b/static/upload/Rama16wiki.jpg
Binary files differ
diff --git a/static/upload/bash_org-150x150.jpg b/static/upload/bash_org-150x150.jpg
new file mode 100644
index 0000000..aefef30
--- /dev/null
+++ b/static/upload/bash_org-150x150.jpg
Binary files differ
diff --git a/static/upload/bash_org-300x213.jpg b/static/upload/bash_org-300x213.jpg
new file mode 100644
index 0000000..05c4de7
--- /dev/null
+++ b/static/upload/bash_org-300x213.jpg
Binary files differ
diff --git a/static/upload/bash_org.jpg b/static/upload/bash_org.jpg
new file mode 100644
index 0000000..79ade77
--- /dev/null
+++ b/static/upload/bash_org.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-1024x624.jpg b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-1024x624.jpg
new file mode 100644
index 0000000..a35e972
--- /dev/null
+++ b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-1024x624.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-150x150.jpg b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-150x150.jpg
new file mode 100644
index 0000000..006c3ab
--- /dev/null
+++ b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-150x150.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-1536x936.jpg b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-1536x936.jpg
new file mode 100644
index 0000000..fbdf388
--- /dev/null
+++ b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-1536x936.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-2048x1247.jpg b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-2048x1247.jpg
new file mode 100644
index 0000000..c8fcae2
--- /dev/null
+++ b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-2048x1247.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-300x183.jpg b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-300x183.jpg
new file mode 100644
index 0000000..9564cb3
--- /dev/null
+++ b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-300x183.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-768x468.jpg b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-768x468.jpg
new file mode 100644
index 0000000..62c4465
--- /dev/null
+++ b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01-768x468.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01.jpg b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01.jpg
new file mode 100644
index 0000000..b74b1e3
--- /dev/null
+++ b/static/wp-content/uploads/2024/07/top-encrypted-todo-and-note-taking-apps-01.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/logo-150x150.png b/static/wp-content/uploads/2024/09/logo-150x150.png
new file mode 100644
index 0000000..f6df1ab
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/logo-150x150.png
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/logo-300x75.png b/static/wp-content/uploads/2024/09/logo-300x75.png
new file mode 100644
index 0000000..967b63f
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/logo-300x75.png
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/logo-768x192.png b/static/wp-content/uploads/2024/09/logo-768x192.png
new file mode 100644
index 0000000..f06e2a9
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/logo-768x192.png
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/logo.png b/static/wp-content/uploads/2024/09/logo.png
new file mode 100644
index 0000000..df7d2f1
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/logo.png
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/logo512-300x300.png b/static/wp-content/uploads/2024/09/logo512-300x300.png
new file mode 100644
index 0000000..98baa75
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/logo512-300x300.png
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/logo512-e1730113501989.png b/static/wp-content/uploads/2024/09/logo512-e1730113501989.png
new file mode 100644
index 0000000..4393a02
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/logo512-e1730113501989.png
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/logo512.png b/static/wp-content/uploads/2024/09/logo512.png
new file mode 100644
index 0000000..ff002db
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/logo512.png
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/photo-150x150.jpg b/static/wp-content/uploads/2024/09/photo-150x150.jpg
new file mode 100644
index 0000000..98d50ea
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/photo-150x150.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/photo-300x300.jpg b/static/wp-content/uploads/2024/09/photo-300x300.jpg
new file mode 100644
index 0000000..c596e41
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/photo-300x300.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/photo.jpg b/static/wp-content/uploads/2024/09/photo.jpg
new file mode 100644
index 0000000..d9a36da
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/photo.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/09/vcard.vcf b/static/wp-content/uploads/2024/09/vcard.vcf
new file mode 100644
index 0000000..916fd99
--- /dev/null
+++ b/static/wp-content/uploads/2024/09/vcard.vcf
@@ -0,0 +1,20 @@
+BEGIN:VCARD
+VERSION:3.0
+FN;CHARSET=UTF-8:Александр Кирюхин
+N;CHARSET=UTF-8:Кирюхин;Александр;;;
+NICKNAME;CHARSET=UTF-8:NeonXP
+GENDER:M
+BDAY:19890506
+EMAIL;CHARSET=UTF-8;type=HOME,INTERNET:i@neonxp.ru
+LOGO:https://neonxp.ru/img/logo512.png
+TEL;TYPE=CELL:+79377711142
+ADR;CHARSET=UTF-8;TYPE=HOME:;;;Казань;Татарстан;;Российская Федерация
+ROLE;CHARSET=UTF-8:Старший разработчик
+ORG;CHARSET=UTF-8:VK
+URL;CHARSET=UTF-8:https://neonxp.ru
+X-FEED;CHARSET=UTF-8:https://neonxp.ru/feed.atom
+SOURCE:https://neonxp.ru/files/vcard.vcf
+PHOTO:https://neonxp.ru/files/photo.jpg
+X-SOCIALPROFILE;TYPE=Mastodon:https://soc.neonxp.ru/@neonxp
+REV:2024-06-23T21:00:05.953Z
+END:VCARD
diff --git a/static/wp-content/uploads/2024/10/Rama16wiki-150x150.jpg b/static/wp-content/uploads/2024/10/Rama16wiki-150x150.jpg
new file mode 100644
index 0000000..67d9109
--- /dev/null
+++ b/static/wp-content/uploads/2024/10/Rama16wiki-150x150.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/10/Rama16wiki-300x169.jpg b/static/wp-content/uploads/2024/10/Rama16wiki-300x169.jpg
new file mode 100644
index 0000000..8dc78c8
--- /dev/null
+++ b/static/wp-content/uploads/2024/10/Rama16wiki-300x169.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/10/Rama16wiki.jpg b/static/wp-content/uploads/2024/10/Rama16wiki.jpg
new file mode 100644
index 0000000..4039369
--- /dev/null
+++ b/static/wp-content/uploads/2024/10/Rama16wiki.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/10/bash_org-150x150.jpg b/static/wp-content/uploads/2024/10/bash_org-150x150.jpg
new file mode 100644
index 0000000..aefef30
--- /dev/null
+++ b/static/wp-content/uploads/2024/10/bash_org-150x150.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/10/bash_org-300x213.jpg b/static/wp-content/uploads/2024/10/bash_org-300x213.jpg
new file mode 100644
index 0000000..05c4de7
--- /dev/null
+++ b/static/wp-content/uploads/2024/10/bash_org-300x213.jpg
Binary files differ
diff --git a/static/wp-content/uploads/2024/10/bash_org.jpg b/static/wp-content/uploads/2024/10/bash_org.jpg
new file mode 100644
index 0000000..79ade77
--- /dev/null
+++ b/static/wp-content/uploads/2024/10/bash_org.jpg
Binary files differ
diff --git a/themes/hugo-theme-stack/.devcontainer/Dockerfile b/themes/hugo-theme-stack/.devcontainer/Dockerfile
new file mode 100644
index 0000000..b601136
--- /dev/null
+++ b/themes/hugo-theme-stack/.devcontainer/Dockerfile
@@ -0,0 +1,31 @@
+# Update the NODE_VERSION arg in docker-compose.yml to pick a Node version: 10, 12, 14
+ARG NODE_VERSION=14
+FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${NODE_VERSION}
+
+# VARIANT can be either 'hugo' for the standard version or 'hugo_extended' for the extended version.
+ARG VARIANT=hugo
+# VERSION can be either 'latest' or a specific version number
+ARG VERSION=latest
+
+# Download Hugo
+RUN apt-get update && apt-get install -y ca-certificates openssl git curl && \
+ rm -rf /var/lib/apt/lists/* && \
+ case ${VERSION} in \
+ latest) \
+ export VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') ;;\
+ esac && \
+ echo ${VERSION} && \
+ wget -O ${VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${VARIANT}_${VERSION}_Linux-64bit.tar.gz && \
+ tar xf ${VERSION}.tar.gz && \
+ mv hugo /usr/bin/hugo
+
+# Hugo dev server port
+EXPOSE 1313
+
+# [Optional] Uncomment this section to install additional OS packages you may want.
+#
+# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
+# && apt-get -y install --no-install-recommends <your-package-list-here>
+
+# [Optional] Uncomment if you want to install more global node packages
+# RUN sudo -u node npm install -g <your-package-list-here>
diff --git a/themes/hugo-theme-stack/.devcontainer/devcontainer.json b/themes/hugo-theme-stack/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..4bf8a19
--- /dev/null
+++ b/themes/hugo-theme-stack/.devcontainer/devcontainer.json
@@ -0,0 +1,45 @@
+// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
+// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.3/containers/hugo
+{
+ "name": "Hugo (Community)",
+ "build": {
+ "dockerfile": "Dockerfile",
+ "args": {
+ // Update VARIANT to pick hugo variant.
+ // Example variants: hugo, hugo_extended
+ // Rebuild the container if it already exists to update.
+ "VARIANT": "hugo_extended",
+ // Update VERSION to pick a specific hugo version.
+ // Example versions: latest, 0.73.0, 0,71.1
+ // Rebuild the container if it already exists to update.
+ "VERSION": "latest",
+ // Update NODE_VERSION to pick the Node.js version: 12, 14
+ "NODE_VERSION": "14",
+ }
+ },
+
+ // Set *default* container specific settings.json values on container create.
+ "settings": {
+ "html.format.templating": true,
+ },
+
+ // Add the IDs of extensions you want installed when the container is created.
+ "extensions": [
+ "bungcip.better-toml",
+ "davidanson.vscode-markdownlint"
+ ],
+
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
+ "forwardPorts": [
+ 1313
+ ],
+
+ // Use 'postCreateCommand' to run commands after the container is created.
+ // "postCreateCommand": "uname -a",
+
+ // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
+ "remoteUser": "node",
+ "features": {
+ "golang": "latest"
+ }
+}
diff --git a/themes/hugo-theme-stack/.github/FUNDING.yml b/themes/hugo-theme-stack/.github/FUNDING.yml
new file mode 100644
index 0000000..95f0c18
--- /dev/null
+++ b/themes/hugo-theme-stack/.github/FUNDING.yml
@@ -0,0 +1,2 @@
+ko_fi: jimmycai
+github: CaiJimmy
diff --git a/themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/bug_report.yml b/themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 0000000..81f8833
--- /dev/null
+++ b/themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,65 @@
+name: Bug Report
+description: File a bug report
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Thanks for taking the time to fill out this bug report! Please provide as much information as possible and make sure you have checked the [documentation](https://stack.jimmycai.com/guide/).
+ - type: textarea
+ id: what-happened
+ attributes:
+ label: What happened?
+ description: Also tell us, what did you expect to happen? Please be as detailed as possible, including screenshots and any other information that might help us reproduce the problem.
+ placeholder: Tell us what you see!
+ validations:
+ required: true
+ - type: input
+ id: hugo-version
+ attributes:
+ label: Hugo version
+ description: "What is the version of Hugo you are using? (Note: this theme does not support non-extended version of Hugo)"
+ placeholder: ex. 0.100.0
+ validations:
+ required: true
+ - type: input
+ id: theme-version
+ attributes:
+ label: Theme version
+ description: "What is the version of Stack theme you are using?"
+ placeholder: ex. 3.12.0
+ validations:
+ required: true
+ - type: dropdown
+ id: browsers
+ attributes:
+ label: What browsers are you seeing the problem on?
+ multiple: true
+ options:
+ - Firefox
+ - Chrome
+ - Safari
+ - Microsoft Edge
+ - type: input
+ id: browser-info
+ attributes:
+ label: More information about the browser
+ description: "E.g: Browser version, OS version, etc."
+ placeholder: ex. Chrome 104, Windows 11
+ validations:
+ required: false
+ - type: textarea
+ id: logs
+ attributes:
+ label: Relevant log output
+ description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
+ render: shell
+ - type: input
+ id: minimal-reproduction-url
+ attributes:
+ label: Link to Minimal Reproducible Example
+ description: |
+ Use [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJimmy/hugo-theme-stack-starter) to create a minimal reproduction of the problem.
+ A minimal reproduction is required so that others can help debug your issue. If a report is vague (e.g. just a generic error message) and has no reproduction, it may be auto-closed.
+ placeholder: https://github.com/username/your-repository
+ validations:
+ required: true
diff --git a/themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/config.yml b/themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..f120c04
--- /dev/null
+++ b/themes/hugo-theme-stack/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,5 @@
+blank_issues_enabled: false
+contact_links:
+ - name: Discussions
+ url: https://github.com/CaiJimmy/hugo-theme-stack/discussions
+ about: Please ask and answer questions here.
diff --git a/themes/hugo-theme-stack/.gitignore b/themes/hugo-theme-stack/.gitignore
new file mode 100644
index 0000000..9ff142d
--- /dev/null
+++ b/themes/hugo-theme-stack/.gitignore
@@ -0,0 +1,4 @@
+public
+resources
+assets/jsconfig.json
+.hugo_build.lock \ No newline at end of file
diff --git a/themes/hugo-theme-stack/LICENSE b/themes/hugo-theme-stack/LICENSE
new file mode 100644
index 0000000..e72bfdd
--- /dev/null
+++ b/themes/hugo-theme-stack/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<https://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<https://www.gnu.org/licenses/why-not-lgpl.html>. \ No newline at end of file
diff --git a/themes/hugo-theme-stack/README.md b/themes/hugo-theme-stack/README.md
new file mode 100644
index 0000000..b071761
--- /dev/null
+++ b/themes/hugo-theme-stack/README.md
@@ -0,0 +1,28 @@
+![image](https://user-images.githubusercontent.com/5889006/190859441-141b5f81-8483-40d2-bd96-ebf85616a46d.png)
+
+# Hugo Theme Stack
+
+<img align="right" width="150" alt="logo" src="https://user-images.githubusercontent.com/5889006/190859553-5b229b4f-c476-4cbd-928f-890f5265ca4c.png">
+
+Card-style Hugo theme designed for bloggers.
+
+## Quickstart
+
+Use this template: [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJimmy/hugo-theme-stack-starter)
+
+## Demo
+
+* Starter template demo: [demo.stack.jimmycai.com](https://demo.stack.jimmycai.com)
+* Dev build: [dev.stack.jimmycai.com](https://dev.stack.jimmycai.com)
+
+## Documentation
+
+Visit [stack.jimmycai.com](https://stack.jimmycai.com)
+
+## Copyright
+
+**Licensed under the GNU General Public License v3.0**
+
+Please do not remove the "*Theme Stack designed by Jimmy*" text and link.
+
+If you want to port this theme to another blogging platform, please let me know🙏.
diff --git a/themes/hugo-theme-stack/archetypes/categories.md b/themes/hugo-theme-stack/archetypes/categories.md
new file mode 100644
index 0000000..d771b29
--- /dev/null
+++ b/themes/hugo-theme-stack/archetypes/categories.md
@@ -0,0 +1,7 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+image:
+style:
+ background: "#2a9d8f"
+ color: "#fff"
+--- \ No newline at end of file
diff --git a/themes/hugo-theme-stack/archetypes/default.md b/themes/hugo-theme-stack/archetypes/default.md
new file mode 100644
index 0000000..0556d3a
--- /dev/null
+++ b/themes/hugo-theme-stack/archetypes/default.md
@@ -0,0 +1,11 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+description:
+date: {{ .Date }}
+image:
+math:
+license:
+hidden: false
+comments: true
+draft: true
+--- \ No newline at end of file
diff --git a/themes/hugo-theme-stack/archetypes/tags.md b/themes/hugo-theme-stack/archetypes/tags.md
new file mode 100644
index 0000000..2fd2fd7
--- /dev/null
+++ b/themes/hugo-theme-stack/archetypes/tags.md
@@ -0,0 +1,5 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+description:
+image:
+--- \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/icons/archives.svg b/themes/hugo-theme-stack/assets/icons/archives.svg
new file mode 100644
index 0000000..cd96cbe
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/archives.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-archive" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <rect x="3" y="4" width="18" height="4" rx="2" />
+ <path d="M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10" />
+ <line x1="10" y1="12" x2="14" y2="12" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/arrow-back.svg b/themes/hugo-theme-stack/assets/icons/arrow-back.svg
new file mode 100644
index 0000000..0f7c5f4
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/arrow-back.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-back" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <path d="M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/back.svg b/themes/hugo-theme-stack/assets/icons/back.svg
new file mode 100644
index 0000000..ee52db4
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/back.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <polyline points="15 6 9 12 15 18" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/brand-github.svg b/themes/hugo-theme-stack/assets/icons/brand-github.svg
new file mode 100644
index 0000000..1fe7e0b
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/brand-github.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
+ <path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/brand-twitter.svg b/themes/hugo-theme-stack/assets/icons/brand-twitter.svg
new file mode 100644
index 0000000..17ab1b1
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/brand-twitter.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-twitter" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
+ <path d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/categories.svg b/themes/hugo-theme-stack/assets/icons/categories.svg
new file mode 100644
index 0000000..e00ab1d
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/categories.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-hash" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <line x1="5" y1="9" x2="19" y2="9" />
+ <line x1="5" y1="15" x2="19" y2="15" />
+ <line x1="11" y1="4" x2="7" y2="20" />
+ <line x1="17" y1="4" x2="13" y2="20" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/clock.svg b/themes/hugo-theme-stack/assets/icons/clock.svg
new file mode 100644
index 0000000..a7a8be6
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/clock.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <circle cx="12" cy="12" r="9" />
+ <polyline points="12 7 12 12 15 15" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/copyright.svg b/themes/hugo-theme-stack/assets/icons/copyright.svg
new file mode 100644
index 0000000..2ac45ff
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/copyright.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copyright" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <circle cx="12" cy="12" r="9" />
+ <path d="M14.5 9a3.5 4 0 1 0 0 6" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/date.svg b/themes/hugo-theme-stack/assets/icons/date.svg
new file mode 100644
index 0000000..ed92a90
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/date.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-calendar-time" width="56" height="56" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <path d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4" />
+ <circle cx="18" cy="18" r="4" />
+ <path d="M15 3v4" />
+ <path d="M7 3v4" />
+ <path d="M3 11h16" />
+ <path d="M18 16.496v1.504l1 1" />
+</svg> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/icons/hash.svg b/themes/hugo-theme-stack/assets/icons/hash.svg
new file mode 100644
index 0000000..e00ab1d
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/hash.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-hash" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <line x1="5" y1="9" x2="19" y2="9" />
+ <line x1="5" y1="15" x2="19" y2="15" />
+ <line x1="11" y1="4" x2="7" y2="20" />
+ <line x1="17" y1="4" x2="13" y2="20" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/home.svg b/themes/hugo-theme-stack/assets/icons/home.svg
new file mode 100644
index 0000000..ed5fd53
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/home.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <polyline points="5 12 3 12 12 3 21 12 19 12" />
+ <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
+ <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/infinity.svg b/themes/hugo-theme-stack/assets/icons/infinity.svg
new file mode 100644
index 0000000..fb40b24
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/infinity.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-infinity" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <path d="M9.828 9.172a4 4 0 1 0 0 5.656 a10 10 0 0 0 2.172 -2.828a10 10 0 0 1 2.172 -2.828 a4 4 0 1 1 0 5.656a10 10 0 0 1 -2.172 -2.828a10 10 0 0 0 -2.172 -2.828" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/language.svg b/themes/hugo-theme-stack/assets/icons/language.svg
new file mode 100644
index 0000000..66ede1c
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/language.svg
@@ -0,0 +1,10 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-language" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
+ <path d="M4 5h7" />
+ <path d="M9 3v2c0 4.418 -2.239 8 -5 8" />
+ <path d="M5 9c-.003 2.144 2.952 3.908 6.7 4" />
+ <path d="M12 20l4 -9l4 9" />
+ <path d="M19.1 18h-6.2" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/link.svg b/themes/hugo-theme-stack/assets/icons/link.svg
new file mode 100644
index 0000000..3c87803
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/link.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" />
+ <path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/messages.svg b/themes/hugo-theme-stack/assets/icons/messages.svg
new file mode 100644
index 0000000..725d75c
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/messages.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-messages" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <path d="M21 14l-3 -3h-7a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1h9a1 1 0 0 1 1 1v10" />
+ <path d="M14 15v2a1 1 0 0 1 -1 1h-7l-3 3v-10a1 1 0 0 1 1 -1h2" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/rss.svg b/themes/hugo-theme-stack/assets/icons/rss.svg
new file mode 100644
index 0000000..b92ea8f
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/rss.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-rss" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <circle cx="5" cy="19" r="1" />
+ <path d="M4 4a16 16 0 0 1 16 16" />
+ <path d="M4 11a9 9 0 0 1 9 9" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/search.svg b/themes/hugo-theme-stack/assets/icons/search.svg
new file mode 100644
index 0000000..a0b0ddc
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/search.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <circle cx="10" cy="10" r="7" />
+ <line x1="21" y1="21" x2="15" y2="15" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/tag.svg b/themes/hugo-theme-stack/assets/icons/tag.svg
new file mode 100644
index 0000000..ef7a63d
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/tag.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-tag" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <path d="M11 3L20 12a1.5 1.5 0 0 1 0 2L14 20a1.5 1.5 0 0 1 -2 0L3 11v-4a4 4 0 0 1 4 -4h4" />
+ <circle cx="9" cy="9" r="2" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/toggle-left.svg b/themes/hugo-theme-stack/assets/icons/toggle-left.svg
new file mode 100644
index 0000000..c3048d4
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/toggle-left.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <circle cx="8" cy="12" r="2" />
+ <rect x="2" y="6" width="20" height="12" rx="6" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/toggle-right.svg b/themes/hugo-theme-stack/assets/icons/toggle-right.svg
new file mode 100644
index 0000000..d3edd63
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/toggle-right.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <circle cx="16" cy="12" r="2" />
+ <rect x="2" y="6" width="20" height="12" rx="6" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/icons/user.svg b/themes/hugo-theme-stack/assets/icons/user.svg
new file mode 100644
index 0000000..9c92c87
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/icons/user.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <circle cx="12" cy="7" r="4" />
+ <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
+</svg>
+
+
diff --git a/themes/hugo-theme-stack/assets/img/avatar.png b/themes/hugo-theme-stack/assets/img/avatar.png
new file mode 100644
index 0000000..d90352c
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/img/avatar.png
Binary files differ
diff --git a/themes/hugo-theme-stack/assets/scss/breakpoints.scss b/themes/hugo-theme-stack/assets/scss/breakpoints.scss
new file mode 100644
index 0000000..e9e9de7
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/breakpoints.scss
@@ -0,0 +1,17 @@
+$breakpoints: (
+ sm: 640px,
+ md: 768px,
+ lg: 1024px,
+ xl: 1280px,
+ 2xl: 1536px,
+);
+
+@mixin respond($breakpoint) {
+ @if not map-has-key($breakpoints, $breakpoint) {
+ @warn "'#{$breakpoint}' is not a valid breakpoint";
+ } @else {
+ @media (min-width: map-get($breakpoints, $breakpoint)) {
+ @content;
+ }
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/custom.scss b/themes/hugo-theme-stack/assets/scss/custom.scss
new file mode 100644
index 0000000..61fa80f
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/custom.scss
@@ -0,0 +1 @@
+/* Place your custom SCSS in HUGO_SITE_FOLDER/assets/scss/custom.scss */ \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/scss/external/normalize.scss b/themes/hugo-theme-stack/assets/scss/external/normalize.scss
new file mode 100644
index 0000000..c45a85f
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/external/normalize.scss
@@ -0,0 +1,349 @@
+/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
+
+/* Document
+ ========================================================================== */
+
+/**
+ * 1. Correct the line height in all browsers.
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
+ */
+
+ html {
+ line-height: 1.15; /* 1 */
+ -webkit-text-size-adjust: 100%; /* 2 */
+ }
+
+ /* Sections
+ ========================================================================== */
+
+ /**
+ * Remove the margin in all browsers.
+ */
+
+ body {
+ margin: 0;
+ }
+
+ /**
+ * Render the `main` element consistently in IE.
+ */
+
+ main {
+ display: block;
+ }
+
+ /**
+ * Correct the font size and margin on `h1` elements within `section` and
+ * `article` contexts in Chrome, Firefox, and Safari.
+ */
+
+ h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+ }
+
+ /* Grouping content
+ ========================================================================== */
+
+ /**
+ * 1. Add the correct box sizing in Firefox.
+ * 2. Show the overflow in Edge and IE.
+ */
+
+ hr {
+ box-sizing: content-box; /* 1 */
+ height: 0; /* 1 */
+ overflow: visible; /* 2 */
+ }
+
+ /**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+ pre {
+ font-family: monospace, monospace; /* 1 */
+ font-size: 1em; /* 2 */
+ }
+
+ /* Text-level semantics
+ ========================================================================== */
+
+ /**
+ * Remove the gray background on active links in IE 10.
+ */
+
+ a {
+ background-color: transparent;
+ }
+
+ /**
+ * 1. Remove the bottom border in Chrome 57-
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
+ */
+
+ abbr[title] {
+ border-bottom: none; /* 1 */
+ text-decoration: underline; /* 2 */
+ text-decoration: underline dotted; /* 2 */
+ }
+
+ /**
+ * Add the correct font weight in Chrome, Edge, and Safari.
+ */
+
+ b,
+ strong {
+ font-weight: bolder;
+ }
+
+ /**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+ code,
+ kbd,
+ samp {
+ font-family: monospace, monospace; /* 1 */
+ font-size: 1em; /* 2 */
+ }
+
+ /**
+ * Add the correct font size in all browsers.
+ */
+
+ small {
+ font-size: 80%;
+ }
+
+ /**
+ * Prevent `sub` and `sup` elements from affecting the line height in
+ * all browsers.
+ */
+
+ sub,
+ sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+ }
+
+ sub {
+ bottom: -0.25em;
+ }
+
+ sup {
+ top: -0.5em;
+ }
+
+ /* Embedded content
+ ========================================================================== */
+
+ /**
+ * Remove the border on images inside links in IE 10.
+ */
+
+ img {
+ border-style: none;
+ }
+
+ /* Forms
+ ========================================================================== */
+
+ /**
+ * 1. Change the font styles in all browsers.
+ * 2. Remove the margin in Firefox and Safari.
+ */
+
+ button,
+ input,
+ optgroup,
+ select,
+ textarea {
+ font-family: inherit; /* 1 */
+ font-size: 100%; /* 1 */
+ line-height: 1.15; /* 1 */
+ margin: 0; /* 2 */
+ }
+
+ /**
+ * Show the overflow in IE.
+ * 1. Show the overflow in Edge.
+ */
+
+ button,
+ input { /* 1 */
+ overflow: visible;
+ }
+
+ /**
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
+ * 1. Remove the inheritance of text transform in Firefox.
+ */
+
+ button,
+ select { /* 1 */
+ text-transform: none;
+ }
+
+ /**
+ * Correct the inability to style clickable types in iOS and Safari.
+ */
+
+ button,
+ [type="button"],
+ [type="reset"],
+ [type="submit"] {
+ -webkit-appearance: button;
+ }
+
+ /**
+ * Remove the inner border and padding in Firefox.
+ */
+
+ button::-moz-focus-inner,
+ [type="button"]::-moz-focus-inner,
+ [type="reset"]::-moz-focus-inner,
+ [type="submit"]::-moz-focus-inner {
+ border-style: none;
+ padding: 0;
+ }
+
+ /**
+ * Restore the focus styles unset by the previous rule.
+ */
+
+ button:-moz-focusring,
+ [type="button"]:-moz-focusring,
+ [type="reset"]:-moz-focusring,
+ [type="submit"]:-moz-focusring {
+ outline: 1px dotted ButtonText;
+ }
+
+ /**
+ * Correct the padding in Firefox.
+ */
+
+ fieldset {
+ padding: 0.35em 0.75em 0.625em;
+ }
+
+ /**
+ * 1. Correct the text wrapping in Edge and IE.
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
+ * 3. Remove the padding so developers are not caught out when they zero out
+ * `fieldset` elements in all browsers.
+ */
+
+ legend {
+ box-sizing: border-box; /* 1 */
+ color: inherit; /* 2 */
+ display: table; /* 1 */
+ max-width: 100%; /* 1 */
+ padding: 0; /* 3 */
+ white-space: normal; /* 1 */
+ }
+
+ /**
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
+ */
+
+ progress {
+ vertical-align: baseline;
+ }
+
+ /**
+ * Remove the default vertical scrollbar in IE 10+.
+ */
+
+ textarea {
+ overflow: auto;
+ }
+
+ /**
+ * 1. Add the correct box sizing in IE 10.
+ * 2. Remove the padding in IE 10.
+ */
+
+ [type="checkbox"],
+ [type="radio"] {
+ box-sizing: border-box; /* 1 */
+ padding: 0; /* 2 */
+ }
+
+ /**
+ * Correct the cursor style of increment and decrement buttons in Chrome.
+ */
+
+ [type="number"]::-webkit-inner-spin-button,
+ [type="number"]::-webkit-outer-spin-button {
+ height: auto;
+ }
+
+ /**
+ * 1. Correct the odd appearance in Chrome and Safari.
+ * 2. Correct the outline style in Safari.
+ */
+
+ [type="search"] {
+ -webkit-appearance: textfield; /* 1 */
+ outline-offset: -2px; /* 2 */
+ }
+
+ /**
+ * Remove the inner padding in Chrome and Safari on macOS.
+ */
+
+ [type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+ }
+
+ /**
+ * 1. Correct the inability to style clickable types in iOS and Safari.
+ * 2. Change font properties to `inherit` in Safari.
+ */
+
+ ::-webkit-file-upload-button {
+ -webkit-appearance: button; /* 1 */
+ font: inherit; /* 2 */
+ }
+
+ /* Interactive
+ ========================================================================== */
+
+ /*
+ * Add the correct display in Edge, IE 10+, and Firefox.
+ */
+
+ details {
+ display: block;
+ }
+
+ /*
+ * Add the correct display in all browsers.
+ */
+
+ summary {
+ display: list-item;
+ }
+
+ /* Misc
+ ========================================================================== */
+
+ /**
+ * Add the correct display in IE 10+.
+ */
+
+ template {
+ display: none;
+ }
+
+ /**
+ * Add the correct display in IE 10.
+ */
+
+ [hidden] {
+ display: none;
+ } \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/scss/general.scss b/themes/hugo-theme-stack/assets/scss/general.scss
new file mode 100644
index 0000000..e12bb0e
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/general.scss
@@ -0,0 +1,31 @@
+a {
+ text-decoration: none;
+ color: var(--accent-color);
+
+ &:hover {
+ color: var(--accent-color-darker);
+ }
+
+ &.link {
+ box-shadow: 0px -2px 0px rgba(var(--link-background-color), var(--link-background-opacity)) inset;
+ transition: all 0.3s ease;
+
+ &:hover {
+ box-shadow: 0px calc(-1rem * var(--article-line-height)) 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset;
+ }
+ }
+}
+
+.section-title {
+ text-transform: uppercase;
+ margin-top: 0;
+ margin-bottom: 10px;
+ display: block;
+ font-size: 1.6rem;
+ font-weight: bold;
+ color: var(--body-text-color);
+
+ a {
+ color: var(--body-text-color);
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/grid.scss b/themes/hugo-theme-stack/assets/scss/grid.scss
new file mode 100644
index 0000000..9284da9
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/grid.scss
@@ -0,0 +1,101 @@
+.container {
+ margin-left: auto;
+ margin-right: auto;
+
+ .left-sidebar {
+ order: -3;
+ max-width: var(--left-sidebar-max-width);
+ }
+
+ .right-sidebar {
+ order: -1;
+ max-width: var(--right-sidebar-max-width);
+
+ /// Display right sidebar when min-width: lg
+ @include respond(lg) {
+ display: flex;
+ }
+ }
+
+ &.extended {
+ @include respond(md) {
+ max-width: 1024px;
+ --left-sidebar-max-width: 25%;
+ --right-sidebar-max-width: 30%;
+ }
+
+ @include respond(lg) {
+ max-width: 1280px;
+ --left-sidebar-max-width: 20%;
+ --right-sidebar-max-width: 30%;
+ }
+
+ @include respond(xl) {
+ max-width: 1536px;
+ --left-sidebar-max-width: 15%;
+ --right-sidebar-max-width: 25%;
+ }
+ }
+
+ &.compact {
+ @include respond(md) {
+ --left-sidebar-max-width: 25%;
+ max-width: 768px;
+ }
+
+ @include respond(lg) {
+ max-width: 1024px;
+ --left-sidebar-max-width: 20%;
+ }
+
+ @include respond(xl) {
+ max-width: 1280px;
+ }
+ }
+}
+
+.flex {
+ display: flex;
+ flex-direction: row;
+
+ &.column {
+ flex-direction: column;
+ }
+
+ &.on-phone--column {
+ flex-direction: column;
+ @include respond(md) {
+ flex-direction: unset;
+ }
+ }
+
+ .full-width {
+ width: 100%;
+ }
+}
+
+main.main {
+ order: -2;
+ min-width: 0;
+ max-width: 100%;
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ gap: var(--section-separation);
+
+ @include respond(md) {
+ padding-top: var(--main-top-padding);
+ }
+}
+
+.main-container {
+ min-height: 100vh;
+ align-items: flex-start;
+ padding: 0 15px;
+ gap: var(--section-separation);
+ padding-top: var(--main-top-padding);
+
+ @include respond(md) {
+ padding: 0 20px;
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/article.scss b/themes/hugo-theme-stack/assets/scss/partials/article.scss
new file mode 100644
index 0000000..6c2feb1
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/article.scss
@@ -0,0 +1,278 @@
+/* Default article style */
+.article-list {
+ display: flex;
+ flex-direction: column;
+ gap: var(--section-separation);
+
+ article {
+ display: flex;
+ flex-direction: column;
+ background-color: var(--card-background);
+ box-shadow: var(--shadow-l1);
+ border-radius: var(--card-border-radius);
+ overflow: hidden;
+
+ transition: box-shadow 0.3s ease;
+
+ &:hover {
+ box-shadow: var(--shadow-l2);
+ }
+
+ .article-image {
+ img {
+ width: 100%;
+ height: 150px;
+ object-fit: cover;
+
+ @include respond(md) {
+ height: 200px;
+ }
+
+ @include respond(xl) {
+ height: 250px;
+ }
+ }
+ }
+
+ @for $i from 1 through length($defaultTagBackgrounds) {
+ &:nth-child(#{length($defaultTagBackgrounds)}n + #{$i}) {
+ .article-category a {
+ background: nth($defaultTagBackgrounds, $i);
+ color: nth($defaultTagColors, $i);
+ }
+ }
+ }
+ }
+}
+
+.article-details {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ padding: var(--card-padding);
+ gap: 15px;
+}
+
+.article-title {
+ font-family: var(--article-font-family);
+ font-weight: 600;
+ margin: 0;
+ color: var(--card-text-color-main);
+ font-size: 2.2rem;
+
+ @include respond(xl) {
+ font-size: 2.4rem;
+ }
+
+ a {
+ color: var(--card-text-color-main);
+
+ &:hover {
+ color: var(--card-text-color-main);
+ }
+ }
+}
+
+.article-subtitle {
+ font-weight: normal;
+ color: var(--card-text-color-secondary);
+ line-height: 1.5;
+ margin: 0;
+ font-size: 1.75rem;
+ @include respond(xl) {
+ font-size: 2rem;
+ }
+}
+
+.article-title-wrapper {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+
+.article-time,
+.article-translations {
+ display: flex;
+ color: var(--card-text-color-tertiary);
+ gap: 15px;
+
+ svg {
+ vertical-align: middle;
+ width: 20px;
+ height: 20px;
+ stroke-width: 1.33;
+ flex-shrink: 0;
+ }
+
+ time,
+ a {
+ font-size: 1.4rem;
+ color: var(--card-text-color-tertiary);
+ }
+
+ & > div {
+ display: inline-flex;
+ align-items: center;
+ gap: 15px;
+ }
+}
+
+.article-time {
+ flex-wrap: wrap;
+}
+
+.article-translations {
+ & > div {
+ flex-wrap: wrap;
+ }
+}
+
+.article-category,
+.article-tags {
+ display: flex;
+ gap: 10px;
+ flex-wrap: wrap;
+
+ a {
+ color: var(--accent-color-text);
+ background-color: var(--accent-color);
+ padding: 8px 16px;
+ border-radius: var(--tag-border-radius);
+ display: inline-block;
+ font-size: 1.4rem;
+ transition: background-color 0.5s ease;
+
+ &:hover {
+ color: var(--accent-color-text);
+ background-color: var(--accent-color-darker);
+ }
+ }
+}
+
+/* Compact style article list */
+.article-list--compact {
+ border-radius: var(--card-border-radius);
+ box-shadow: var(--shadow-l1);
+ background-color: var(--card-background);
+ --image-size: 50px;
+
+ @include respond(md) {
+ --image-size: 60px;
+ }
+
+ article {
+ & > a {
+ display: flex;
+ align-items: center;
+ padding: var(--small-card-padding);
+ gap: 15px;
+ }
+
+ &:not(:last-of-type) {
+ border-bottom: 1.5px solid var(--card-separator-color);
+ }
+
+ .article-details {
+ flex-grow: 1;
+ padding: 0;
+ min-height: var(--image-size);
+ gap: 10px;
+ }
+
+ .article-title {
+ margin: 0;
+ font-size: 1.6rem;
+
+ @include respond(md) {
+ font-size: 1.8rem;
+ }
+ }
+
+ .article-image {
+ img {
+ width: var(--image-size);
+ height: var(--image-size);
+ object-fit: cover;
+ }
+ }
+
+ .article-time {
+ font-size: 1.4rem;
+ }
+
+ .article-preview {
+ font-size: 1.4rem;
+ color: var(--card-text-color-tertiary);
+ margin-top: 10px;
+ line-height: 1.5;
+ }
+ }
+}
+
+/* Tile style article list */
+.article-list--tile {
+ article {
+ border-radius: var(--card-border-radius);
+ overflow: hidden;
+ position: relative;
+ height: 350px;
+ width: 250px;
+ box-shadow: var(--shadow-l1);
+ transition: box-shadow 0.3s ease;
+ background-color: var(--card-background);
+
+ &:hover {
+ box-shadow: var(--shadow-l2);
+ }
+
+ &.has-image {
+ .article-details {
+ background-color: rgba(#000, 0.25);
+ }
+
+ .article-title {
+ color: #fff;
+ }
+ }
+
+ .article-image {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+
+ img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ }
+ }
+
+ .article-details {
+ border-radius: var(--card-border-radius);
+ position: relative;
+ height: 100%;
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-end;
+ z-index: 2;
+ padding: 15px;
+
+ @include respond(sm) {
+ padding: 20px;
+ }
+ }
+
+ .article-title {
+ font-size: 2rem;
+ font-weight: 500;
+ color: var(--card-text-color-main);
+
+ @include respond(sm) {
+ font-size: 2.2rem;
+ }
+ }
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/base.scss b/themes/hugo-theme-stack/assets/scss/partials/base.scss
new file mode 100644
index 0000000..efb4b8f
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/base.scss
@@ -0,0 +1,38 @@
+html {
+ font-size: 62.5%;
+ overflow-y: scroll;
+}
+
+* {
+ box-sizing: border-box;
+}
+
+body {
+ background: var(--body-background);
+ margin: 0;
+ font-family: var(--base-font-family);
+ font-size: 1.6rem;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+/* scrollbar styles for Firefox */
+* {
+ scrollbar-width: auto;
+ scrollbar-color: var(--scrollbar-thumb) transparent;
+}
+/**/
+
+/* scrollbar styles for Chromium */
+::-webkit-scrollbar {
+ height: auto;
+}
+
+::-webkit-scrollbar-thumb {
+ background-color: var(--scrollbar-thumb);
+}
+
+::-webkit-scrollbar-track {
+ background-color: transparent;
+}
+/**/ \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/scss/partials/comments/disqusjs.scss b/themes/hugo-theme-stack/assets/scss/partials/comments/disqusjs.scss
new file mode 100644
index 0000000..eb270e3
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/comments/disqusjs.scss
@@ -0,0 +1,394 @@
+.disqus-container {
+ background-color: var(--card-background);
+ border-radius: var(--card-border-radius);
+ box-shadow: var(--shadow-l1);
+ padding: var(--card-padding);
+}
+
+#dsqjs * {
+ margin: 0;
+ padding: 0
+}
+
+#dsqjs a {
+ text-decoration: none;
+ color: #076dd0
+}
+
+#dsqjs .dsqjs-hide {
+ display: none!important
+}
+
+#dsqjs .dsqjs-disabled {
+ cursor: not-allowed;
+ opacity: .5
+}
+
+#dsqjs #dsqjs-msg {
+ text-align: center;
+ margin-top: 4px;
+ margin-bottom: 4px;
+ font-size: 14px
+}
+
+#dsqjs #dsqjs-msg .dsqjs-msg-btn {
+ cursor: pointer
+}
+
+#dsqjs .dsqjs-bullet {
+ line-height: 1.4;
+ margin: 0 2px
+}
+
+#dsqjs .dsqjs-bullet:after {
+ color: #c2c6cc;
+ content: "·";
+ font-weight: 700
+}
+
+#dsqjs .dsqjs-clearfix:after,#dsqjs .dsqjs-clearfix:before {
+ display: table;
+ content: "";
+ line-height: 0;
+ clear: both
+}
+
+#dsqjs .dsqjs-nav {
+ position: relative;
+ margin: 0 0 20px;
+ border-bottom: 2px solid #e7e9ee
+}
+
+#dsqjs ol,#dsqjs ul {
+ list-style: none;
+ list-style-type: none
+}
+
+#dsqjs .dsqjs-no-comment {
+ text-align: center;
+ font-size: 16px;
+ line-height: 1.5;
+ word-wrap: break-word;
+ overflow: hidden;
+ color: #2a2e2e;
+ margin-bottom: 6px
+}
+
+#dsqjs .dsqjs-nav-tab {
+ float: left;
+ text-transform: capitalize;
+ font-size: 15px;
+ padding: 12px 8px;
+ color: #656c7a;
+ display: block;
+ margin: 0 15px 0 0;
+ font-weight: 700;
+ line-height: 1;
+ position: relative;
+ transition: all .2s ease-in-out
+}
+
+#dsqjs .dsqjs-nav-tab:last-child {
+ margin: 0
+}
+
+#dsqjs .dsqjs-tab-active {
+ color: #2a2e2e
+}
+
+#dsqjs .dsqjs-tab-active>span:after {
+ content: " ";
+ display: block;
+ height: 2px;
+ background-color: #076dd0!important;
+ position: absolute;
+ bottom: -5px;
+ left: 0;
+ right: 0
+}
+
+#dsqjs .dsqjs-post-list .dsqjs-post-item {
+ position: relative;
+ margin-bottom: 16px
+}
+
+#dsqjs .dsqjs-post-list .dsqjs-post-avatar {
+ float: left;
+ margin-right: 10px;
+ position: relative;
+ background: #dbdfe4;
+ padding: 0;
+ display: block;
+ border-radius: 4px
+}
+
+#dsqjs .dsqjs-post-list .dsqjs-post-avatar img {
+ width: 44px;
+ height: 44px;
+ display: block;
+ border-radius: 4px
+}
+
+#dsqjs .dsqjs-post-list .dsqjs-post-header {
+ line-height: 1;
+ font-size: 14px;
+ margin-bottom: 3px
+}
+
+#dsqjs .dsqjs-post-list .dsqjs-post-header .dsqjs-post-author {
+ color: #656c7a;
+ font-weight: 700
+}
+
+#dsqjs .dsqjs-post-list .dsqjs-post-header .dsqjs-admin-badge {
+ color: #fff;
+ background: #687a86;
+ padding: 1px 3px;
+ margin-left: 4px;
+ font-size: 12px;
+ line-height: 1;
+ font-weight: 700;
+ border-radius: 3px;
+ display: inline-block;
+ position: relative;
+ top: -1px;
+ left: 1px
+}
+
+#dsqjs .dsqjs-post-list .dsqjs-post-header .dsqjs-meta {
+ display: inline-block;
+ font-size: 12px;
+ color: #656c7a
+}
+
+#dsqjs .dsqjs-post-body {
+ font-size: 15px;
+ line-height: 1.5;
+ word-wrap: break-word;
+ overflow: hidden;
+ color: #2a2e2e
+}
+
+#dsqjs .dsqjs-post-body code {
+ padding: .2em .4em;
+ margin: 0;
+ font-size: 85%;
+ background: #f5f5f5;
+ color: inherit;
+ border-radius: 3px
+}
+
+#dsqjs .dsqjs-post-body pre {
+ padding: .5em;
+ overflow: auto;
+ font-size: 85%;
+ line-height: 1.45;
+ border-radius: 3px;
+ background: #f5f5f5;
+ margin: .5em 0
+}
+
+#dsqjs .dsqjs-post-body blockquote {
+ padding: 0 .8em;
+ margin: .5em 0;
+ color: #6a737d;
+ border-left: .25em solid #dfe2e5
+}
+
+#dsqjs .dsqjs-post-body p:last-child {
+ margin: 0
+}
+
+#dsqjs .dsqjs-post-list.dsqjs-children>li {
+ margin-left: 30px
+}
+
+#dsqjs .dsqjs-post-list.dsqjs-children .dsqjs-post-avatar img {
+ width: 38px;
+ height: 38px
+}
+
+#dsqjs .dsqjs-load-more {
+ font-size: 14px;
+ font-weight: 400;
+ display: block;
+ text-align: center;
+ padding: 11px 14px;
+ margin: 0 0 24px;
+ background: #687a86;
+ color: #fff;
+ cursor: pointer
+}
+
+#dsqjs .dsqjs-load-more:hover {
+ opacity: .8
+}
+
+#dsqjs footer {
+ text-align: right;
+ line-height: 1.5;
+ padding-top: 10px;
+ padding-right: 10px;
+ border-top: 2px solid #e7e9ee;
+ margin-top: 12px;
+ font-weight: 700;
+ font-size: 16px;
+ color: #555
+}
+
+#dsqjs .dsqjs-disqus-logo {
+ background-image: url(https://c.disquscdn.com/next/embed/assets/img/sprite.654110a9206fd22f08cca0798e34a65e.png);
+ background-repeat: no-repeat;
+ display: inline-block;
+ background-size: 86px 40.5px;
+ height: 16.5px;
+ width: 86px;
+}
+
+#dsqjs .dsqjs-order {
+ display: flex;
+ float: right;
+ align-items: center;
+ margin-top: 10px;
+ margin-bottom: 12px
+}
+
+#dsqjs .dsqjs-order-radio {
+ display: none
+}
+
+#dsqjs .dsqjs-order-radio:checked+.dsqjs-order-label {
+ color: #fff;
+ background-color: #888
+}
+
+#dsqjs .dsqjs-order-label {
+ display: block;
+ height: 20px;
+ line-height: 20px;
+ margin-right: 10px;
+ font-size: 12px;
+ border-radius: 2px;
+ padding: 0 5px;
+ background-color: #dcdcdc;
+ cursor: pointer
+}
+
+#dsqjs p.dsqjs-has-more {
+ margin-bottom: 24px;
+ margin-left: 48px;
+ font-size: 13px;
+ line-height: 15px
+}
+
+#dsqjs p.dsqjs-has-more a.dsqjs-has-more-btn {
+ color: #656c7a;
+ text-decoration: underline;
+ cursor: pointer
+}
+
+@media (min-width: 768px) {
+ #dsqjs .dsqjs-post-list.dsqjs-children>li {
+ margin-left:48px
+ }
+
+ #dsqjs .dsqjs-post-list .dsqjs-post-avatar {
+ margin-right: 12px
+ }
+
+ #dsqjs .dsqjs-post-list .dsqjs-post-item {
+ margin-bottom: 20px
+ }
+}
+
+@media (min-width: 1024px) {
+ #dsqjs .dsqjs-post-list.dsqjs-children>li {
+ margin-left:60px
+ }
+}
+
+:root[data-scheme="light"] {
+ #dsqjs .dsqjs-disqus-logo {
+ background-position: 0 -7px;
+ }
+}
+
+:root[data-scheme="dark"] {
+ #dsqjs {
+ --t-s: rgba(255,255,255,0.9);
+ --alt: #3e4b5e;
+ --link-hover: #47a2e0;
+ --hover-bg: #3e4b5e;
+ --tag: #3e4b5e;
+ --border: #435266;
+ --pre: #3c495b;
+ --c-bg: #2f3947;
+ --code: #c3c7cb;
+ --kbd: #4e5f77;
+ --hl: #abb2bf;
+ --hlc: #808895;
+ --hlk: #c678dd;
+ --hln: #e06c75;
+ --hll: #56b6c2;
+ --hls: #98c379;
+ --hlt: #e6c07b;
+ --hlv: #d19a66;
+ --bg: #181c27;
+ --main: #252d38;
+ --t: rgba(255,255,255,0.86);
+ --t-l: rgba(255,255,255,0.66);
+ --logo: #fff;
+ --link: #38a3fd;
+ --title: rgba(255,255,255,0.92);
+ --fab: #364151;
+ --shadow: none;
+ }
+
+ #disqus_thread {
+ color: var(--body-text-color)
+ }
+
+ #dsqjs #dsqjs-msg {
+ color: var(--t)
+ }
+
+ #dsqjs a {
+ color:var(--link)
+ }
+
+ #dsqjs a:focus,#dsqjs a:hover {
+ color: var(--link-hover)
+ }
+
+ #dsqjs .dsqjs-disqus-logo {
+ background-position: 0 -24px;
+ }
+
+ #dsqjs .dsqjs-nav,#dsqjs footer {
+ border-color: var(--hlc)
+ }
+
+ #dsqjs .dsqjs-load-more,#dsqjs .dsqjs-load-more:hover,#dsqjs .dsqjs-nav-tab,#dsqjs .dsqjs-no-comment,#dsqjs .dsqjs-post-content {
+ color: var(--t)
+ }
+
+ #dsqjs .dsqjs-order-label {
+ background-color: var(--hlc)
+ }
+
+ #dsqjs .dsqjs-order-radio:checked+.dsqjs-order-label {
+ background-color: var(--kbd)
+ }
+
+ #dsqjs .dsqjs-tab-active>span:after {
+ background-color: #2e9fff
+ }
+
+ #dsqjs .dsqjs-footer,#dsqjs .dsqjs-meta {
+ color: var(--t-l)
+ }
+
+ #dsqjs .dsqjs-post-body blockquote {
+ border-color: var(--border)
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/footer.scss b/themes/hugo-theme-stack/assets/scss/partials/footer.scss
new file mode 100644
index 0000000..ccb7394
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/footer.scss
@@ -0,0 +1,30 @@
+footer.site-footer {
+ padding: 20px 0 var(--section-separation) 0;
+ font-size: 1.4rem;
+ line-height: 1.75;
+
+ &:before {
+ content: "";
+ display: block;
+ height: 3px;
+ width: 50px;
+ background: var(--body-text-color);
+ margin-bottom: 20px;
+ }
+
+ .copyright {
+ color: var(--accent-color);
+ font-weight: bold;
+ margin-bottom: 5px;
+ }
+
+ .powerby {
+ color: var(--body-text-color);
+ font-weight: normal;
+ font-size: 1.2rem;
+
+ a {
+ color: var(--body-text-color);
+ }
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/highlight/common.scss b/themes/hugo-theme-stack/assets/scss/partials/highlight/common.scss
new file mode 100644
index 0000000..c680fa4
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/highlight/common.scss
@@ -0,0 +1,428 @@
+/* Background */
+.chroma {
+ color: $color;
+ background-color: $background-color;
+}
+
+/* Other */
+.chroma .x {
+}
+
+/* Error */
+.chroma .err {
+ color: $error-color;
+}
+
+/* LineTableTD */
+.chroma .lntd {
+ vertical-align: top;
+ padding: 0;
+ margin: 0;
+ border: 0;
+}
+
+/* LineTable */
+.chroma .lntable {
+ border-spacing: 0;
+ padding: 0;
+ margin: 0;
+ border: 0;
+ width: 100%;
+ display: block;
+
+ > tbody {
+ display: block;
+ width: 100%;
+ > tr {
+ display: flex;
+ width: 100%;
+ > td:last-child {
+ overflow-x: auto;
+ }
+ }
+ }
+}
+
+/* LineHighlight */
+.chroma .hl {
+ display: block;
+ width: 100%;
+ background-color: #ffffcc;
+}
+
+/* LineNumbersTable */
+.chroma .lnt {
+ margin-right: 0.4em;
+ padding: 0 0.4em 0 0.4em;
+ color: #7f7f7f;
+ display: block;
+}
+
+/* LineNumbers */
+.chroma .ln {
+ margin-right: 0.4em;
+ padding: 0 0.4em 0 0.4em;
+ color: #7f7f7f;
+}
+
+/* Keyword */
+.chroma .k {
+ color: $keyword-color;
+}
+
+/* KeywordConstant */
+.chroma .kc {
+ color: $keyword-color;
+}
+
+/* KeywordDeclaration */
+.chroma .kd {
+ color: $keyword-color;
+}
+
+/* KeywordNamespace */
+.chroma .kn {
+ color: #f92672;
+}
+
+/* KeywordPseudo */
+.chroma .kp {
+ color: $keyword-color;
+}
+
+/* KeywordReserved */
+.chroma .kr {
+ color: $keyword-color;
+}
+
+/* KeywordType */
+.chroma .kt {
+ color: $keyword-color;
+}
+
+/* Name */
+.chroma .n {
+ color: $text-color;
+}
+
+/* NameAttribute */
+.chroma .na {
+ color: $name-color;
+}
+
+/* NameBuiltin */
+.chroma .nb {
+ color: $text-color;
+}
+
+/* NameBuiltinPseudo */
+.chroma .bp {
+ color: $text-color;
+}
+
+/* NameClass */
+.chroma .nc {
+ color: $name-color;
+}
+
+/* NameConstant */
+.chroma .no {
+ color: $keyword-color;
+}
+
+/* NameDecorator */
+.chroma .nd {
+ color: $name-color;
+}
+
+/* NameEntity */
+.chroma .ni {
+ color: $text-color;
+}
+
+/* NameException */
+.chroma .ne {
+ color: $name-color;
+}
+
+/* NameFunction */
+.chroma .nf {
+ color: $name-color;
+}
+
+/* NameFunctionMagic */
+.chroma .fm {
+ color: $text-color;
+}
+
+/* NameLabel */
+.chroma .nl {
+ color: $text-color;
+}
+
+/* NameNamespace */
+.chroma .nn {
+ color: $text-color;
+}
+
+/* NameOther */
+.chroma .nx {
+ color: $name-color;
+}
+
+/* NameProperty */
+.chroma .py {
+ color: $text-color;
+}
+
+/* NameTag */
+.chroma .nt {
+ color: #f92672;
+}
+
+/* NameVariable */
+.chroma .nv {
+ color: $text-color;
+}
+
+/* NameVariableClass */
+.chroma .vc {
+ color: $text-color;
+}
+
+/* NameVariableGlobal */
+.chroma .vg {
+ color: $text-color;
+}
+
+/* NameVariableInstance */
+.chroma .vi {
+ color: $text-color;
+}
+
+/* NameVariableMagic */
+.chroma .vm {
+ color: $text-color;
+}
+
+/* Literal */
+.chroma .l {
+ color: #ae81ff;
+}
+
+/* LiteralDate */
+.chroma .ld {
+ color: $literal-color;
+}
+
+/* LiteralString */
+.chroma .s {
+ color: $literal-color;
+}
+
+/* LiteralStringAffix */
+.chroma .sa {
+ color: $literal-color;
+}
+
+/* LiteralStringBacktick */
+.chroma .sb {
+ color: $literal-color;
+}
+
+/* LiteralStringChar */
+.chroma .sc {
+ color: $literal-color;
+}
+
+/* LiteralStringDelimiter */
+.chroma .dl {
+ color: $literal-color;
+}
+
+/* LiteralStringDoc */
+.chroma .sd {
+ color: $literal-color;
+}
+
+/* LiteralStringDouble */
+.chroma .s2 {
+ color: $literal-color;
+}
+
+/* LiteralStringEscape */
+.chroma .se {
+ color: #ae81ff;
+}
+
+/* LiteralStringHeredoc */
+.chroma .sh {
+ color: $literal-color;
+}
+
+/* LiteralStringInterpol */
+.chroma .si {
+ color: $literal-color;
+}
+
+/* LiteralStringOther */
+.chroma .sx {
+ color: $literal-color;
+}
+
+/* LiteralStringRegex */
+.chroma .sr {
+ color: $literal-color;
+}
+
+/* LiteralStringSingle */
+.chroma .s1 {
+ color: $literal-color;
+}
+
+/* LiteralStringSymbol */
+.chroma .ss {
+ color: $literal-color;
+}
+
+/* LiteralNumber */
+.chroma .m {
+ color: #ae81ff;
+}
+
+/* LiteralNumberBin */
+.chroma .mb {
+ color: #ae81ff;
+}
+
+/* LiteralNumberFloat */
+.chroma .mf {
+ color: #ae81ff;
+}
+
+/* LiteralNumberHex */
+.chroma .mh {
+ color: #ae81ff;
+}
+
+/* LiteralNumberInteger */
+.chroma .mi {
+ color: #ae81ff;
+}
+
+/* LiteralNumberIntegerLong */
+.chroma .il {
+ color: #ae81ff;
+}
+
+/* LiteralNumberOct */
+.chroma .mo {
+ color: #ae81ff;
+}
+
+/* Operator */
+.chroma .o {
+ color: #f92672;
+}
+
+/* OperatorWord */
+.chroma .ow {
+ color: #f92672;
+}
+
+/* Punctuation */
+.chroma .p {
+ color: $text-color;
+}
+
+/* Comment */
+.chroma .c {
+ color: #75715e;
+}
+
+/* CommentHashbang */
+.chroma .ch {
+ color: #75715e;
+}
+
+/* CommentMultiline */
+.chroma .cm {
+ color: #75715e;
+}
+
+/* CommentSingle */
+.chroma .c1 {
+ color: #75715e;
+}
+
+/* CommentSpecial */
+.chroma .cs {
+ color: #75715e;
+}
+
+/* CommentPreproc */
+.chroma .cp {
+ color: #75715e;
+}
+
+/* CommentPreprocFile */
+.chroma .cpf {
+ color: #75715e;
+}
+
+/* Generic */
+.chroma .g {
+}
+
+/* GenericDeleted */
+.chroma .gd {
+ color: #f92672;
+}
+
+/* GenericEmph */
+.chroma .ge {
+ font-style: italic;
+}
+
+/* GenericError */
+.chroma .gr {
+}
+
+/* GenericHeading */
+.chroma .gh {
+}
+
+/* GenericInserted */
+.chroma .gi {
+ color: $name-color;
+}
+
+/* GenericOutput */
+.chroma .go {
+}
+
+/* GenericPrompt */
+.chroma .gp {
+}
+
+/* GenericStrong */
+.chroma .gs {
+ font-weight: bold;
+}
+
+/* GenericSubheading */
+.chroma .gu {
+ color: #75715e;
+}
+
+/* GenericTraceback */
+.chroma .gt {
+}
+
+/* GenericUnderline */
+.chroma .gl {
+}
+
+/* TextWhitespace */
+.chroma .w {
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/highlight/dark.scss b/themes/hugo-theme-stack/assets/scss/partials/highlight/dark.scss
new file mode 100644
index 0000000..0d3f330
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/highlight/dark.scss
@@ -0,0 +1,14 @@
+/*
+* Style: monokai
+* https://xyproto.github.io/splash/docs/monokai.html
+*/
+
+$color: #f8f8f2;
+$background-color: #272822;
+$error-color: #bb0064;
+$keyword-color: #66d9ef;
+$text-color: $color;
+$name-color: #a6e22e;
+$literal-color: #e6db74;
+
+@import "common.scss";
diff --git a/themes/hugo-theme-stack/assets/scss/partials/highlight/light.scss b/themes/hugo-theme-stack/assets/scss/partials/highlight/light.scss
new file mode 100644
index 0000000..174b649
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/highlight/light.scss
@@ -0,0 +1,14 @@
+/*
+* Style: monokailight
+* https://xyproto.github.io/splash/docs/monokailight.html
+*/
+
+$color: #272822;
+$background-color: #fafafa;
+$error-color: #960050;
+$keyword-color: #00a8c8;
+$text-color: #111111;
+$name-color: #75af00;
+$literal-color: #d88200;
+
+@import "common.scss";
diff --git a/themes/hugo-theme-stack/assets/scss/partials/layout/404.scss b/themes/hugo-theme-stack/assets/scss/partials/layout/404.scss
new file mode 100644
index 0000000..d9d8752
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/layout/404.scss
@@ -0,0 +1,6 @@
+.not-found-card {
+ background-color: var(--card-background);
+ box-shadow: var(--shadow-l1);
+ border-radius: var(--card-border-radius);
+ padding: var(--card-padding);
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/layout/article.scss b/themes/hugo-theme-stack/assets/scss/partials/layout/article.scss
new file mode 100644
index 0000000..10e2706
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/layout/article.scss
@@ -0,0 +1,461 @@
+.article-page {
+ &.hide-sidebar-sm .left-sidebar {
+ display: none;
+
+ @include respond(md) {
+ display: inherit;
+ }
+ }
+
+ .main-article {
+ background: var(--card-background);
+ border-radius: var(--card-border-radius);
+ box-shadow: var(--shadow-l1);
+ overflow: hidden;
+
+ .article-header {
+ .article-image {
+ img {
+ height: auto;
+ width: 100%;
+ max-height: 50vh;
+ object-fit: cover;
+ }
+ }
+
+ .article-details {
+ padding: var(--card-padding);
+ padding-bottom: 0;
+ }
+ }
+
+ .article-content {
+ margin: var(--card-padding) 0;
+ color: var(--card-text-color-main);
+
+ .footnotes {
+ font-family: var(--base-font-family);
+ }
+
+ img {
+ max-width: 100%;
+ height: auto;
+ }
+ }
+
+ .article-footer {
+ margin: var(--card-padding);
+ margin-top: 0;
+
+ section:not(:first-child) {
+ margin-top: var(--card-padding);
+ }
+
+ section {
+ color: var(--card-text-color-tertiary);
+ text-transform: uppercase;
+ display: flex;
+ align-items: center;
+ font-size: 1.4rem;
+ gap: 15px;
+
+ svg {
+ width: 20px;
+ height: 20px;
+ stroke-width: 1.33;
+ }
+ }
+
+ .article-tags {
+ text-transform: unset;
+ }
+
+ .article-copyright,
+ .article-lastmod {
+ a {
+ color: var(--body-text-color);
+ }
+
+ a.link {
+ box-shadow: unset;
+ }
+ }
+ }
+ }
+}
+
+.widget--toc {
+ background-color: var(--card-background);
+ border-radius: var(--card-border-radius);
+ box-shadow: var(--shadow-l1);
+ display: flex;
+ flex-direction: column;
+ color: var(--card-text-color-main);
+ overflow: hidden;
+
+ ::-webkit-scrollbar-thumb {
+ background-color: var(--card-separator-color);
+ }
+
+ #TableOfContents {
+ overflow-x: auto;
+ max-height: 75vh;
+
+ ol,
+ ul {
+ margin: 0;
+ padding: 0;
+ }
+
+ ol {
+ list-style-type: none;
+ counter-reset: item;
+
+ li a:first-of-type::before {
+ counter-increment: item;
+ content: counters(item, ".") ". ";
+ font-weight: bold;
+ margin-right: 5px;
+ }
+ }
+
+ & > ul {
+ padding: 0 1em;
+ }
+
+ li {
+ margin: 15px 0 15px 20px;
+ padding: 5px;
+
+ & > ol,
+ & > ul {
+ margin-top: 10px;
+ padding-left: 10px;
+ margin-bottom: -5px;
+
+ & > li:last-child {
+ margin-bottom: 0;
+ }
+ }
+ }
+ li.active-class > a {
+ border-left: var(--heading-border-size) solid var(--accent-color);
+ font-weight: bold;
+ }
+
+ ul li.active-class > a {
+ display: block;
+ }
+
+ @function repeat($str, $n) {
+ $result: "";
+ @for $_ from 0 to $n {
+ $result: $result + $str;
+ }
+ @return $result;
+ }
+
+ // Support up to 6 levels of indentation for lists in ToCs
+ @for $i from 0 to 5 {
+ & > ul #{repeat("> li > ul", $i)} > li.active-class > a {
+ $n: 25 + $i * 35;
+ margin-left: calc(-#{$n}px - 1em);
+ padding-left: calc(#{$n}px + 1em - var(--heading-border-size));
+ }
+
+ & > ol #{repeat("> li > ol", $i)} > li.active-class > a {
+ $n: 9 + $i * 35;
+ margin-left: calc(-#{$n}px - 1em);
+ padding-left: calc(#{$n}px + 1em - var(--heading-border-size));
+ display: block;
+ }
+ }
+ }
+}
+
+.related-content {
+ overflow-x: auto;
+ padding-bottom: 15px;
+
+ & > .flex {
+ float: left;
+ }
+
+ article {
+ margin-right: 15px;
+ flex-shrink: 0;
+ overflow: hidden;
+ width: 250px;
+ height: 150px;
+
+ .article-title {
+ font-size: 1.8rem;
+ margin: 0;
+ }
+
+ &.has-image {
+ .article-details {
+ padding: 20px;
+ background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%);
+ }
+ }
+ }
+}
+
+.article-content {
+ font-family: var(--article-font-family);
+ font-size: var(--article-font-size);
+ padding: 0 var(--card-padding);
+ line-height: var(--article-line-height);
+
+ & > p {
+ margin: 1.5em 0;
+ }
+
+ h1,
+ h2,
+ h3,
+ h4,
+ h5,
+ h6 {
+ margin-inline-start: calc((var(--card-padding)) * -1);
+ padding-inline-start: calc(var(--card-padding) - var(--heading-border-size));
+ border-inline-start: var(--heading-border-size) solid var(--accent-color);
+ position: relative;
+
+ a.header-anchor {
+ transition: opacity 0.3s ease;
+ opacity: 0;
+ position: absolute;
+ left: 0;
+ width: var(--card-padding);
+ text-align: center;
+ color: var(--accent-color);
+
+ &:before {
+ content: "#";
+ }
+ }
+
+ &:hover,
+ &:focus {
+ a.header-anchor {
+ opacity: 1;
+ }
+ }
+ }
+
+ figure {
+ text-align: center;
+
+ figcaption {
+ font-size: 1.4rem;
+ color: var(--card-text-color-secondary);
+ }
+ }
+
+ blockquote {
+ position: relative;
+ margin: 1.5em 0;
+ border-inline-start: var(--blockquote-border-size) solid var(--card-separator-color);
+ padding: 15px calc(var(--card-padding) - var(--blockquote-border-size));
+ background-color: var(--blockquote-background-color);
+
+ .cite {
+ display: block;
+ text-align: right;
+ font-size: 0.75em;
+
+ a {
+ text-decoration: underline;
+ }
+ }
+ }
+
+ hr {
+ width: 100px;
+ margin: 40px auto;
+ background: var(--card-text-color-tertiary);
+ height: 2px;
+ border: 0;
+ opacity: 0.55;
+ }
+
+ code {
+ color: var(--code-text-color);
+ background-color: var(--code-background-color);
+ padding: 2px 4px;
+ border-radius: var(--tag-border-radius);
+ font-family: var(--code-font-family);
+ }
+
+ a,
+ code {
+ word-break: break-word;
+ }
+
+ .gallery {
+ position: relative;
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ margin: 1.5em 0;
+ gap: 10px;
+
+ figure {
+ margin: 0;
+ }
+ }
+
+ pre {
+ overflow-x: auto;
+ display: block;
+ background-color: var(--pre-background-color);
+ color: var(--pre-text-color);
+ font-family: var(--code-font-family);
+ line-height: 1.428571429;
+ word-break: break-all;
+ padding: var(--card-padding);
+ // keep Codeblocks LTR
+ [dir="rtl"] & {
+ direction: ltr;
+ }
+ code {
+ color: unset;
+ border: none;
+ background: none;
+ padding: 0;
+ }
+ }
+
+ .highlight {
+ background-color: var(--pre-background-color);
+ padding: var(--card-padding);
+ position: relative;
+
+ &:hover {
+ .copyCodeButton {
+ opacity: 1;
+ }
+ }
+ // keep Codeblocks LTR
+ [dir="rtl"] & {
+ direction: ltr;
+ }
+ pre {
+ margin: initial;
+ padding: 0;
+ margin: 0;
+ width: auto;
+ }
+ }
+
+ .copyCodeButton {
+ position: absolute;
+ top: calc(var(--card-padding));
+ right: calc(var(--card-padding));
+ background: var(--card-background);
+ border: none;
+ box-shadow: var(--shadow-l2);
+ border-radius: var(--tag-border-radius);
+ padding: 8px 16px;
+ color: var(--card-text-color-main);
+ cursor: pointer;
+ font-size: 14px;
+ opacity: 0;
+ transition: opacity 0.3s ease;
+ }
+
+ .table-wrapper {
+ padding: 0 var(--card-padding);
+ overflow-x: auto;
+ display: block;
+ }
+
+ table {
+ width: 100%;
+ border-collapse: collapse;
+ border-spacing: 0;
+ margin-bottom: 1.5em;
+ font-size: 0.96em;
+ }
+
+ th,
+ td {
+ text-align: left;
+ padding: 4px 8px 4px 10px;
+ border: 1px solid var(--table-border-color);
+ }
+
+ td {
+ vertical-align: top;
+ }
+
+ tr:nth-child(even) {
+ background-color: var(--tr-even-background-color);
+ }
+
+ .twitter-tweet {
+ color: var(--card-text-color-main);
+ }
+
+ .video-wrapper {
+ position: relative;
+ width: 100%;
+ height: 0;
+ padding-bottom: 56.25%;
+ overflow: hidden;
+
+ & > iframe,
+ & > video {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ left: 0;
+ top: 0;
+ border: 0;
+ }
+ }
+
+ .gitlab-embed-snippets {
+ margin: 0 !important;
+
+ .file-holder.snippet-file-content {
+ margin-block-end: 0 !important;
+ margin-block-start: 0 !important;
+ margin-left: calc((var(--card-padding)) * -1) !important;
+ margin-right: calc((var(--card-padding)) * -1) !important;
+ padding: 0 var(--card-padding) !important;
+ }
+ }
+
+ /// Negative margins
+ blockquote,
+ figure,
+ .highlight,
+ pre,
+ .gallery,
+ .video-wrapper,
+ .table-wrapper,
+ .s_video_simple {
+ margin-left: calc((var(--card-padding)) * -1);
+ margin-right: calc((var(--card-padding)) * -1);
+ width: calc(100% + var(--card-padding) * 2);
+ }
+
+ /// Make long KaTeX equations scrollable in the x-axis
+ .katex-display > .katex {
+ overflow-x: auto;
+ overflow-y: hidden;
+ }
+
+ kbd {
+ border: 1px solid var(--kbd-border-color);
+ font-weight: bold;
+ font-size: 0.9em;
+ line-height: 1;
+ padding: 2px 4px;
+ border-radius: 4px;
+ display: inline-block;
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/layout/list.scss b/themes/hugo-theme-stack/assets/scss/partials/layout/list.scss
new file mode 100644
index 0000000..d7815ca
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/layout/list.scss
@@ -0,0 +1,71 @@
+.section-card {
+ border-radius: var(--card-border-radius);
+ background-color: var(--card-background);
+ padding: var(--small-card-padding);
+ box-shadow: var(--shadow-l1);
+ display: flex;
+ align-items: center;
+ gap: 20px;
+
+ --separation: 15px;
+
+ .section-term {
+ font-size: 2.2rem;
+ margin: 0;
+ color: var(--card-text-color-main);
+ }
+
+ .section-description {
+ font-weight: normal;
+ color: var(--card-text-color-secondary);
+ font-size: 1.6rem;
+ margin: 0;
+ }
+
+ .section-details {
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ }
+
+ .section-image {
+ img {
+ width: 60px;
+ height: 60px;
+ }
+ }
+
+ .section-count {
+ color: var(--card-text-color-tertiary);
+ font-size: 1.4rem;
+ margin: 0;
+ font-weight: bold;
+ text-transform: uppercase;
+ }
+}
+
+.subsection-list {
+ overflow-x: auto;
+
+ .article-list--tile {
+ display: flex;
+ padding-bottom: 15px;
+
+ article {
+ width: 250px;
+ height: 150px;
+ margin-right: 20px;
+ flex-shrink: 0;
+
+ .article-title {
+ margin: 0;
+ font-size: 1.8rem;
+ }
+
+ .article-details {
+ padding: 20px;
+ }
+ }
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/layout/search.scss b/themes/hugo-theme-stack/assets/scss/partials/layout/search.scss
new file mode 100644
index 0000000..89cdcef
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/layout/search.scss
@@ -0,0 +1,82 @@
+.search-form {
+ position: relative;
+ --button-size: 80px;
+
+ &.widget {
+ --button-size: 60px;
+
+ label {
+ font-size: 1.3rem;
+ top: 10px;
+ }
+
+ input {
+ font-size: 1.5rem;
+ padding: 30px 20px 15px 20px;
+ }
+ }
+
+ p {
+ position: relative;
+ margin: 0;
+ }
+
+ label {
+ position: absolute;
+ top: 15px;
+ inset-inline-start: 20px;
+ font-size: 1.4rem;
+ color: var(--card-text-color-tertiary);
+ }
+
+ input {
+ padding: 40px 20px 20px;
+ border-radius: var(--card-border-radius);
+ background-color: var(--card-background);
+ box-shadow: var(--shadow-l1);
+ color: var(--card-text-color-main);
+ width: 100%;
+ border: 0;
+ -webkit-appearance: none;
+
+ transition: box-shadow 0.3s ease;
+
+ font-size: 1.8rem;
+
+ &:focus {
+ outline: 0;
+ box-shadow: var(--shadow-l2);
+ }
+ }
+
+ button {
+ position: absolute;
+ inset-inline-end: 0;
+ top: 0;
+ height: 100%;
+ width: var(--button-size);
+ cursor: pointer;
+ background-color: transparent;
+ border: 0;
+
+ padding: 0 10px;
+
+ &:focus {
+ outline: 0;
+
+ svg {
+ stroke-width: 2;
+ color: var(--accent-color);
+ }
+ }
+
+ svg {
+ color: var(--card-text-color-secondary);
+ stroke-width: 1.33;
+ transition: all 0.3s ease;
+ width: 20px;
+ height: 20px;
+ }
+ }
+
+} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/scss/partials/menu.scss b/themes/hugo-theme-stack/assets/scss/partials/menu.scss
new file mode 100644
index 0000000..5b6be17
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/menu.scss
@@ -0,0 +1,229 @@
+/*!
+ * Hamburgers
+ * @description Tasty CSS-animated hamburgers
+ * @author Jonathan Suh @jonsuh
+ * @site https://jonsuh.com/hamburgers
+ * @link https://github.com/jonsuh/hamburgers
+ */
+
+.hamburger {
+ padding-top: 10px;
+ display: inline-block;
+ cursor: pointer;
+ transition-property: opacity, filter;
+ transition-duration: 0.15s;
+ transition-timing-function: linear;
+ font: inherit;
+ color: inherit;
+ text-transform: none;
+ background-color: transparent;
+ border: 0;
+ margin: 0;
+ overflow: visible;
+}
+.hamburger:hover {
+ opacity: 0.7;
+}
+.hamburger.is-active:hover {
+ opacity: 0.7;
+}
+.hamburger.is-active .hamburger-inner,
+.hamburger.is-active .hamburger-inner::before,
+.hamburger.is-active .hamburger-inner::after {
+ background-color: #000;
+}
+
+.hamburger-box {
+ width: 30px;
+ height: 24px;
+ display: inline-block;
+ position: relative;
+}
+
+.hamburger-inner {
+ display: block;
+ top: 50%;
+ margin-top: -2px;
+}
+
+.hamburger-inner,
+.hamburger-inner::before,
+.hamburger-inner::after {
+ width: 30px;
+ height: 2px;
+ background-color: var(--card-text-color-main);
+ border-radius: 4px;
+ position: absolute;
+ transition-property: transform;
+ transition-duration: 0.15s;
+ transition-timing-function: ease;
+}
+.hamburger-inner::before,
+.hamburger-inner::after {
+ content: "";
+ display: block;
+}
+.hamburger-inner::before {
+ top: -10px;
+}
+.hamburger-inner::after {
+ bottom: -10px;
+}
+
+.hamburger--spin .hamburger-inner {
+ transition-duration: 0.22s;
+ transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
+}
+.hamburger--spin .hamburger-inner::before {
+ transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
+}
+.hamburger--spin .hamburger-inner::after {
+ transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
+}
+
+.hamburger--spin.is-active .hamburger-inner {
+ transform: rotate(225deg);
+ transition-delay: 0.12s;
+ transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
+}
+.hamburger--spin.is-active .hamburger-inner::before {
+ top: 0;
+ opacity: 0;
+ transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
+}
+.hamburger--spin.is-active .hamburger-inner::after {
+ bottom: 0;
+ transform: rotate(-90deg);
+ transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
+}
+
+#toggle-menu {
+ background: none;
+ border: none;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: 2;
+ cursor: pointer;
+
+ [dir="rtl"] & {
+ left: 0;
+ right: auto;
+ }
+
+ @include respond(md) {
+ display: none;
+ }
+
+ outline: none;
+
+ &.is-active {
+ .hamburger-inner,
+ .hamburger-inner::before,
+ .hamburger-inner::after {
+ background-color: var(--accent-color);
+ }
+ }
+}
+
+/* Menu style */
+#main-menu {
+ list-style: none;
+ overflow-y: auto;
+ flex-grow: 1;
+ font-size: 1.4rem;
+ background-color: var(--card-background);
+
+ box-shadow: var(--shadow-l1);
+ display: none;
+ margin: 0 calc(var(--container-padding) * -1);
+
+ padding: 30px 30px;
+
+ @include respond(xl) {
+ padding: 15px 0;
+ }
+
+ &, .menu-bottom-section ol {
+ flex-direction: column;
+ gap: 30px;
+
+ @include respond(xl) {
+ gap: 25px;
+ }
+ }
+
+ &.show {
+ display: flex;
+ }
+
+ @include respond(md) {
+ align-items: flex-end;
+ display: flex;
+ background-color: transparent;
+ padding: 0;
+ box-shadow: none;
+ margin: 0;
+ }
+
+ li {
+ position: relative;
+ vertical-align: middle;
+ padding: 0;
+
+ @include respond(md) {
+ width: 100%;
+ }
+
+ svg {
+ stroke: currentColor;
+ stroke-width: 1.33;
+ width: 20px;
+ height: 20px;
+ }
+
+ a {
+ height: 100%;
+ display: inline-flex;
+ align-items: center;
+ color: var(--body-text-color);
+ gap: var(--menu-icon-separation);
+ }
+
+ span {
+ flex: 1;
+ }
+
+ &.current {
+ a {
+ color: var(--accent-color);
+ font-weight: bold;
+ }
+ }
+
+ &.menu-bottom-section {
+ margin-top: auto;
+
+ ol {
+ display: flex;
+ padding-left: 0;
+ }
+ }
+ }
+}
+
+.menu-social {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ display: flex;
+ flex-direction: row;
+ gap: 10px;
+
+ svg {
+ width: 24px;
+ height: 24px;
+ stroke: var(--body-text-color);
+ stroke-width: 1.33;
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/pagination.scss b/themes/hugo-theme-stack/assets/scss/partials/pagination.scss
new file mode 100644
index 0000000..ca46780
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/pagination.scss
@@ -0,0 +1,21 @@
+.pagination {
+ display: flex;
+ background-color: var(--card-background);
+ box-shadow: var(--shadow-l1);
+ border-radius: var(--card-border-radius);
+ overflow: hidden;
+ flex-wrap: wrap;
+
+ .page-link {
+ padding: 16px 32px;
+ display: inline-flex;
+
+ &.current {
+ font-weight: bold;
+ background-color: var(--card-background-selected);
+ color: var(--card-text-color-main);
+ }
+
+ color: var(--card-text-color-secondary);
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/sidebar.scss b/themes/hugo-theme-stack/assets/scss/partials/sidebar.scss
new file mode 100644
index 0000000..a6a77c5
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/sidebar.scss
@@ -0,0 +1,199 @@
+.sidebar {
+ &.sticky {
+ @include respond(md) {
+ position: sticky;
+ }
+ }
+}
+
+.left-sidebar {
+ display: flex;
+ flex-direction: column;
+ flex-shrink: 0;
+ align-self: stretch;
+ gap: var(--sidebar-element-separation);
+ max-width: none;
+ width: 100%;
+ position: relative;
+
+ --sidebar-avatar-size: 100px;
+ --sidebar-element-separation: 20px;
+ --emoji-size: 40px;
+ --emoji-font-size: 20px;
+
+ @include respond(md) {
+ width: auto;
+ padding-top: var(--main-top-padding);
+ padding-bottom: var(--main-top-padding);
+ max-height: 100vh;
+ }
+
+ @include respond(2xl) {
+ --sidebar-avatar-size: 120px;
+ --sidebar-element-separation: 25px;
+ --emoji-size: 40px;
+ }
+
+ &.sticky {
+ top: 0;
+ }
+
+ &.compact {
+ --sidebar-avatar-size: 80px;
+ --emoji-size: 30px;
+ --emoji-font-size: 15px;
+
+ header {
+ @include respond(lg) {
+ flex-direction: row;
+ }
+
+ .site-meta {
+ gap: 5px;
+ }
+
+ .site-name {
+ font-size: 1.4rem;
+
+ @include respond(2xl) {
+ font-size: 1.75rem;
+ }
+ }
+
+ .site-description {
+ font-size: 1.4rem;
+ }
+ }
+ }
+}
+
+.right-sidebar {
+ width: 100%;
+ display: none;
+ flex-direction: column;
+ gap: var(--widget-separation);
+
+ &.sticky {
+ top: 0;
+ }
+
+ @include respond(lg) {
+ padding-top: var(--main-top-padding);
+ padding-bottom: var(--main-top-padding);
+ }
+}
+
+.sidebar header {
+ z-index: 1;
+ transition: box-shadow 0.5s ease;
+ display: flex;
+ flex-direction: column;
+ gap: var(--sidebar-element-separation);
+
+ @include respond(md) {
+ padding: 0;
+ }
+
+ .site-avatar {
+ position: relative;
+ margin: 0;
+ width: var(--sidebar-avatar-size);
+ height: var(--sidebar-avatar-size);
+ flex-shrink: 0;
+
+ .site-logo {
+ width: 100%;
+ height: 100%;
+ border-radius: 100%;
+ box-shadow: var(--shadow-l1);
+ }
+
+ .emoji {
+ position: absolute;
+ width: var(--emoji-size);
+ height: var(--emoji-size);
+ line-height: var(--emoji-size);
+ border-radius: 100%;
+ bottom: 0;
+ right: 0;
+ text-align: center;
+ font-size: var(--emoji-font-size);
+ background-color: var(--card-background);
+ box-shadow: var(--shadow-l2);
+ }
+ }
+
+ .site-meta {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ justify-content: center;
+ }
+
+ .site-name {
+ color: var(--accent-color);
+ margin: 0;
+ font-size: 1.6rem;
+
+ @include respond(2xl) {
+ font-size: 1.8rem;
+ }
+ }
+
+ .site-description {
+ color: var(--body-text-color);
+ font-weight: normal;
+ margin: 0;
+ font-size: 1.4rem;
+
+ @include respond(2xl) {
+ font-size: 1.6rem;
+ }
+ }
+}
+
+[data-scheme="dark"] {
+ #dark-mode-toggle {
+ color: var(--accent-color);
+ font-weight: 700;
+
+ .icon-tabler-toggle-left {
+ display: none;
+ }
+
+ .icon-tabler-toggle-right {
+ display: unset;
+ }
+ }
+}
+
+#dark-mode-toggle {
+ margin-top: auto;
+ color: var(--body-text-color);
+ display: flex;
+ align-items: center;
+ cursor: pointer;
+ gap: var(--menu-icon-separation);
+
+ .icon-tabler-toggle-right {
+ display: none;
+ }
+}
+
+#i18n-switch {
+ color: var(--body-text-color);
+ display: inline-flex;
+ align-content: center;
+ gap: var(--menu-icon-separation);
+
+ select {
+ border: 0;
+ background-color: transparent;
+ color: var(--body-text-color);
+
+ option {
+ color: var(--card-text-color-main);
+ background-color: var(--card-background);
+ }
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/partials/widgets.scss b/themes/hugo-theme-stack/assets/scss/partials/widgets.scss
new file mode 100644
index 0000000..42cfcc2
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/partials/widgets.scss
@@ -0,0 +1,67 @@
+.widget {
+ display: flex;
+ flex-direction: column;
+
+ .widget-icon {
+ svg {
+ width: 32px;
+ height: 32px;
+ stroke-width: 1.6;
+ color: var(--body-text-color);
+ }
+ }
+}
+
+/* Tag cloud widget */
+.tagCloud {
+ .tagCloud-tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+
+ a {
+ background: var(--card-background);
+ box-shadow: var(--shadow-l1);
+ border-radius: var(--tag-border-radius);
+ padding: 8px 20px;
+ color: var(--card-text-color-main);
+ font-size: 1.4rem;
+ transition: box-shadow 0.3s ease;
+
+ &:hover {
+ box-shadow: var(--shadow-l2);
+ }
+ }
+ }
+}
+
+/* Archives widget */
+.widget.archives {
+ .widget-archive--list {
+ border-radius: var(--card-border-radius);
+ box-shadow: var(--shadow-l1);
+ background-color: var(--card-background);
+ }
+
+ .archives-year {
+ &:not(:last-of-type) {
+ border-bottom: 1.5px solid var(--card-separator-color);
+ }
+
+ a {
+ font-size: 1.4rem;
+ padding: 18px 25px;
+ display: flex;
+
+ span.year {
+ flex: 1;
+ color: var(--card-text-color-main);
+ font-weight: bold;
+ }
+
+ span.count {
+ color: var(--card-text-color-tertiary);
+ }
+ }
+ }
+}
diff --git a/themes/hugo-theme-stack/assets/scss/style.scss b/themes/hugo-theme-stack/assets/scss/style.scss
new file mode 100644
index 0000000..e50d400
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/style.scss
@@ -0,0 +1,28 @@
+/*!
+* Hugo Theme Stack
+*
+* @author: Jimmy Cai
+* @website: https://jimmycai.com
+* @link: https://github.com/CaiJimmy/hugo-theme-stack
+*/
+
+@import "breakpoints.scss";
+@import "variables.scss";
+@import "grid.scss";
+
+@import "external/normalize.scss";
+
+@import "partials/menu.scss";
+@import "partials/article.scss";
+@import "partials/widgets.scss";
+@import "partials/footer.scss";
+@import "partials/pagination.scss";
+@import "partials/sidebar.scss";
+@import "partials/base.scss";
+@import "partials/layout/article.scss";
+@import "partials/layout/list.scss";
+@import "partials/layout/404.scss";
+@import "partials/layout/search.scss";
+
+@import "general.scss";
+@import "custom.scss";
diff --git a/themes/hugo-theme-stack/assets/scss/variables.scss b/themes/hugo-theme-stack/assets/scss/variables.scss
new file mode 100644
index 0000000..97810a1
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/scss/variables.scss
@@ -0,0 +1,167 @@
+$defaultTagBackgrounds: #8ea885, #df7988, #0177b8, #ffb900, #6b69d6;
+$defaultTagColors: #fff, #fff, #fff, #fff, #fff;
+
+/*
+* Global style
+*/
+:root {
+ --main-top-padding: 35px;
+
+ @include respond(xl) {
+ --main-top-padding: 50px;
+ }
+
+ --body-background: #f5f5fa;
+
+ --accent-color: #34495e;
+ --accent-color-darker: #2c3e50;
+ --accent-color-text: #fff;
+ --body-text-color: #707070;
+
+ --tag-border-radius: 4px;
+
+ --section-separation: 40px;
+
+ --scrollbar-thumb: hsl(0, 0%, 85%);
+ --scrollbar-track: var(--body-background);
+
+ &[data-scheme="dark"] {
+ --body-background: #303030;
+ --accent-color: #ecf0f1;
+ --accent-color-darker: #bdc3c7;
+ --accent-color-text: #000;
+ --body-text-color: rgba(255, 255, 255, 0.7);
+ --scrollbar-thumb: hsl(0, 0%, 40%);
+ --scrollbar-track: var(--body-background);
+ }
+}
+
+/**
+* Global font family
+*/
+:root {
+ --sys-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Droid Sans", "Helvetica Neue";
+ --zh-font-family: "PingFang SC", "Hiragino Sans GB", "Droid Sans Fallback", "Microsoft YaHei";
+
+ --base-font-family: "Lato", var(--sys-font-family), var(--zh-font-family), sans-serif;
+ --code-font-family: Menlo, Monaco, Consolas, "Courier New", var(--zh-font-family), monospace;
+}
+
+/*
+* Card style
+*/
+:root {
+ --card-background: #fff;
+ --card-background-selected: #eaeaea;
+
+ --card-text-color-main: #000;
+ --card-text-color-secondary: #747474;
+ --card-text-color-tertiary: #767676;
+ --card-separator-color: rgba(218, 218, 218, 0.5);
+
+ --card-border-radius: 10px;
+
+ --card-padding: 20px;
+
+ @include respond(md) {
+ --card-padding: 25px;
+ }
+
+ @include respond(xl) {
+ --card-padding: 30px;
+ }
+
+ --small-card-padding: 25px 20px;
+
+ @include respond(md) {
+ --small-card-padding: 25px;
+ }
+
+ &[data-scheme="dark"] {
+ --card-background: #424242;
+ --card-background-selected: rgba(255, 255, 255, 0.16);
+ --card-text-color-main: rgba(255, 255, 255, 0.9);
+ --card-text-color-secondary: rgba(255, 255, 255, 0.7);
+ --card-text-color-tertiary: rgba(255, 255, 255, 0.5);
+ --card-separator-color: rgba(255, 255, 255, 0.12);
+ }
+}
+
+/**
+* Article content font settings
+*/
+:root {
+ --article-font-family: var(--base-font-family);
+ --article-font-size: 1.6rem;
+
+ @include respond(md) {
+ --article-font-size: 1.7rem;
+ }
+
+ --article-line-height: 1.85;
+}
+
+/*
+* Article content style
+*/
+:root {
+ --blockquote-border-size: 4px;
+ --blockquote-background-color: rgb(248 248 248);
+
+ --heading-border-size: 4px;
+
+ --link-background-color: 189, 195, 199;
+ --link-background-opacity: 0.5;
+ --link-background-opacity-hover: 0.7;
+
+ --pre-background-color: #272822;
+ --pre-text-color: #f8f8f2;
+
+ --code-background-color: rgba(0, 0, 0, 0.12);
+ --code-text-color: #808080;
+
+ --table-border-color: #dadada;
+ --tr-even-background-color: #efefee;
+
+ --kbd-border-color: #dadada;
+
+ &[data-scheme="dark"] {
+ --code-background-color: #272822;
+ --code-text-color: rgba(255, 255, 255, 0.9);
+
+ --table-border-color: #717171;
+ --tr-even-background-color: #545454;
+
+ --blockquote-background-color: rgb(75 75 75);
+ }
+}
+
+/*
+* Shadow style
+* Thanks to https://www.figma.com/community/plugin/744987207861965946/Shadow-picker
+*/
+:root {
+ --shadow-l1: 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);
+ --shadow-l2: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
+ --shadow-l3: 0px 10px 20px rgba(0, 0, 0, 0.04), 0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
+ --shadow-l4: 0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04),
+ 0px 0px 1px rgba(0, 0, 0, 0.04);
+}
+
+[data-scheme="light"] {
+ --pre-text-color: #272822;
+ --pre-background-color: #fafafa;
+ @import "partials/highlight/light.scss";
+}
+
+[data-scheme="dark"] {
+ --pre-text-color: #f8f8f2;
+ --pre-background-color: #272822;
+ @import "partials/highlight/dark.scss";
+}
+
+:root {
+ --menu-icon-separation: 40px;
+ --container-padding: 15px;
+ --widget-separation: var(--section-separation);
+}
diff --git a/themes/hugo-theme-stack/assets/ts/color.ts b/themes/hugo-theme-stack/assets/ts/color.ts
new file mode 100644
index 0000000..50581d1
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/ts/color.ts
@@ -0,0 +1,63 @@
+interface colorScheme {
+ hash: string, /// Regenerate color scheme when the image hash is changed
+ DarkMuted: {
+ hex: string,
+ rgb: Number[],
+ bodyTextColor: string
+ },
+ Vibrant: {
+ hex: string,
+ rgb: Number[],
+ bodyTextColor: string
+ }
+}
+
+let colorsCache: { [key: string]: colorScheme } = {};
+
+if (localStorage.hasOwnProperty('StackColorsCache')) {
+ try {
+ colorsCache = JSON.parse(localStorage.getItem('StackColorsCache'));
+ }
+ catch (e) {
+ colorsCache = {};
+ }
+}
+
+async function getColor(key: string, hash: string, imageURL: string) {
+ if (!key) {
+ /**
+ * If no key is provided, do not cache the result
+ */
+ return await Vibrant.from(imageURL).getPalette();
+ }
+
+ if (!colorsCache.hasOwnProperty(key) || colorsCache[key].hash !== hash) {
+ /**
+ * If key is provided, but not found in cache, or the hash mismatches => Regenerate color scheme
+ */
+ const palette = await Vibrant.from(imageURL).getPalette();
+
+ colorsCache[key] = {
+ hash: hash,
+ Vibrant: {
+ hex: palette.Vibrant.hex,
+ rgb: palette.Vibrant.rgb,
+ bodyTextColor: palette.Vibrant.bodyTextColor
+ },
+ DarkMuted: {
+ hex: palette.DarkMuted.hex,
+ rgb: palette.DarkMuted.rgb,
+ bodyTextColor: palette.DarkMuted.bodyTextColor
+ }
+ }
+
+ /* Save the result in localStorage */
+ localStorage.setItem('StackColorsCache', JSON.stringify(colorsCache));
+ }
+
+ return colorsCache[key];
+}
+
+export {
+ getColor
+} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/ts/colorScheme.ts b/themes/hugo-theme-stack/assets/ts/colorScheme.ts
new file mode 100644
index 0000000..978e98e
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/ts/colorScheme.ts
@@ -0,0 +1,92 @@
+type colorScheme = 'light' | 'dark' | 'auto';
+
+class StackColorScheme {
+ private localStorageKey = 'StackColorScheme';
+ private currentScheme: colorScheme;
+ private systemPreferScheme: colorScheme;
+
+ constructor(toggleEl: HTMLElement) {
+ this.bindMatchMedia();
+ this.currentScheme = this.getSavedScheme();
+ if (window.matchMedia('(prefers-color-scheme: dark)').matches === true)
+ this.systemPreferScheme = 'dark'
+ else
+ this.systemPreferScheme = 'light';
+
+ this.dispatchEvent(document.documentElement.dataset.scheme as colorScheme);
+
+ if (toggleEl)
+ this.bindClick(toggleEl);
+
+ if (document.body.style.transition == '')
+ document.body.style.setProperty('transition', 'background-color .3s ease');
+ }
+
+ private saveScheme() {
+ localStorage.setItem(this.localStorageKey, this.currentScheme);
+ }
+
+ private bindClick(toggleEl: HTMLElement) {
+ toggleEl.addEventListener('click', (e) => {
+ if (this.isDark()) {
+ /// Disable dark mode
+ this.currentScheme = 'light';
+ }
+ else {
+ this.currentScheme = 'dark';
+ }
+
+ this.setBodyClass();
+
+ if (this.currentScheme == this.systemPreferScheme) {
+ /// Set to auto
+ this.currentScheme = 'auto';
+ }
+
+ this.saveScheme();
+ })
+ }
+
+ private isDark() {
+ return (this.currentScheme == 'dark' || this.currentScheme == 'auto' && this.systemPreferScheme == 'dark');
+ }
+
+ private dispatchEvent(colorScheme: colorScheme) {
+ const event = new CustomEvent('onColorSchemeChange', {
+ detail: colorScheme
+ });
+ window.dispatchEvent(event);
+ }
+
+ private setBodyClass() {
+ if (this.isDark()) {
+ document.documentElement.dataset.scheme = 'dark';
+ }
+ else {
+ document.documentElement.dataset.scheme = 'light';
+ }
+
+ this.dispatchEvent(document.documentElement.dataset.scheme as colorScheme);
+ }
+
+ private getSavedScheme(): colorScheme {
+ const savedScheme = localStorage.getItem(this.localStorageKey);
+
+ if (savedScheme == 'light' || savedScheme == 'dark' || savedScheme == 'auto') return savedScheme;
+ else return 'auto';
+ }
+
+ private bindMatchMedia() {
+ window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e) => {
+ if (e.matches) {
+ this.systemPreferScheme = 'dark';
+ }
+ else {
+ this.systemPreferScheme = 'light';
+ }
+ this.setBodyClass();
+ });
+ }
+}
+
+export default StackColorScheme;
diff --git a/themes/hugo-theme-stack/assets/ts/createElement.ts b/themes/hugo-theme-stack/assets/ts/createElement.ts
new file mode 100644
index 0000000..3a1e85e
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/ts/createElement.ts
@@ -0,0 +1,34 @@
+/**
+ * createElement
+ * Edited from:
+ * @link https://stackoverflow.com/a/42405694
+ */
+function createElement(tag, attrs, children) {
+ var element = document.createElement(tag);
+
+ for (let name in attrs) {
+ if (name && attrs.hasOwnProperty(name)) {
+ let value = attrs[name];
+
+ if (name == "dangerouslySetInnerHTML") {
+ element.innerHTML = value.__html;
+ }
+ else if (value === true) {
+ element.setAttribute(name, name);
+ } else if (value !== false && value != null) {
+ element.setAttribute(name, value.toString());
+ }
+ }
+ }
+ for (let i = 2; i < arguments.length; i++) {
+ let child = arguments[i];
+ if (child) {
+ element.appendChild(
+ child.nodeType == null ?
+ document.createTextNode(child.toString()) : child);
+ }
+ }
+ return element;
+}
+
+export default createElement; \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/ts/gallery.ts b/themes/hugo-theme-stack/assets/ts/gallery.ts
new file mode 100644
index 0000000..9840f1e
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/ts/gallery.ts
@@ -0,0 +1,186 @@
+declare global {
+ interface Window {
+ PhotoSwipe: any;
+ PhotoSwipeUI_Default: any
+ }
+}
+
+interface PhotoSwipeItem {
+ w: number;
+ h: number;
+ src: string;
+ msrc: string;
+ title?: string;
+ el: HTMLElement;
+}
+
+class StackGallery {
+ private galleryUID: number;
+ private items: PhotoSwipeItem[] = [];
+
+ constructor(container: HTMLElement, galleryUID = 1) {
+ if (window.PhotoSwipe == undefined || window.PhotoSwipeUI_Default == undefined) {
+ console.error("PhotoSwipe lib not loaded.");
+ return;
+ }
+
+ this.galleryUID = galleryUID;
+
+ StackGallery.createGallery(container);
+ this.loadItems(container);
+ this.bindClick();
+ }
+
+ private loadItems(container: HTMLElement) {
+ this.items = [];
+
+ const figures = container.querySelectorAll('figure.gallery-image');
+
+ for (const el of figures) {
+ const figcaption = el.querySelector('figcaption'),
+ img = el.querySelector('img');
+
+ let aux: PhotoSwipeItem = {
+ w: parseInt(img.getAttribute('width')),
+ h: parseInt(img.getAttribute('height')),
+ src: img.src,
+ msrc: img.getAttribute('data-thumb') || img.src,
+ el: el
+ }
+
+ if (figcaption) {
+ aux.title = figcaption.innerHTML;
+ }
+
+ this.items.push(aux);
+ }
+ }
+
+ public static createGallery(container: HTMLElement) {
+ /// The process of wrapping image with figure tag is done using JavaScript instead of only Hugo markdown render hook
+ /// because it can not detect whether image is being wrapped by a link or not
+ /// and it lead to a invalid HTML construction (<a><figure><img></figure></a>)
+
+ const images = container.querySelectorAll('img.gallery-image');
+ for (const img of Array.from(images)) {
+ /// Images are wrapped with figure tag if the paragraph has only images without texts
+ /// This is done to allow inline images within paragraphs
+ const paragraph = img.closest('p');
+
+ if (!paragraph || !container.contains(paragraph)) continue;
+
+ if (paragraph.textContent.trim() == '') {
+ /// Once we insert figcaption, this check no longer works
+ /// So we add a class to paragraph to mark it
+ paragraph.classList.add('no-text');
+ }
+
+ let isNewLineImage = paragraph.classList.contains('no-text');
+ if (!isNewLineImage) continue;
+
+ const hasLink = img.parentElement.tagName == 'A';
+
+ let el: HTMLElement = img;
+ /// Wrap image with figure tag, with flex-grow and flex-basis values extracted from img's data attributes
+ const figure = document.createElement('figure');
+ figure.style.setProperty('flex-grow', img.getAttribute('data-flex-grow') || '1');
+ figure.style.setProperty('flex-basis', img.getAttribute('data-flex-basis') || '0');
+ if (hasLink) {
+ /// Wrap <a> if it exists
+ el = img.parentElement;
+ }
+ el.parentElement.insertBefore(figure, el);
+ figure.appendChild(el);
+
+ /// Add figcaption if it exists
+ if (img.hasAttribute('alt')) {
+ const figcaption = document.createElement('figcaption');
+ figcaption.innerText = img.getAttribute('alt');
+ figure.appendChild(figcaption);
+ }
+
+ /// Wrap img tag with <a> tag if image was not wrapped by <a> tag
+ if (!hasLink) {
+ figure.className = 'gallery-image';
+
+ const a = document.createElement('a');
+ a.href = img.src;
+ a.setAttribute('target', '_blank');
+ img.parentNode.insertBefore(a, img);
+ a.appendChild(img);
+ }
+ }
+
+ const figuresEl = container.querySelectorAll('figure.gallery-image');
+
+ let currentGallery = [];
+
+ for (const figure of figuresEl) {
+ if (!currentGallery.length) {
+ /// First iteration
+ currentGallery = [figure];
+ }
+ else if (figure.previousElementSibling === currentGallery[currentGallery.length - 1]) {
+ /// Adjacent figures
+ currentGallery.push(figure);
+ }
+ else if (currentGallery.length) {
+ /// End gallery
+ StackGallery.wrap(currentGallery);
+ currentGallery = [figure];
+ }
+ }
+
+ if (currentGallery.length > 0) {
+ StackGallery.wrap(currentGallery);
+ }
+ }
+
+ /**
+ * Wrap adjacent figure tags with div.gallery
+ * @param figures
+ */
+ public static wrap(figures: HTMLElement[]) {
+ const galleryContainer = document.createElement('div');
+ galleryContainer.className = 'gallery';
+
+ const parentNode = figures[0].parentNode,
+ first = figures[0];
+
+ parentNode.insertBefore(galleryContainer, first)
+
+ for (const figure of figures) {
+ galleryContainer.appendChild(figure);
+ }
+ }
+
+ public open(index: number) {
+ const pswp = document.querySelector('.pswp') as HTMLDivElement;
+ const ps = new window.PhotoSwipe(pswp, window.PhotoSwipeUI_Default, this.items, {
+ index: index,
+ galleryUID: this.galleryUID,
+ getThumbBoundsFn: (index) => {
+ const thumbnail = this.items[index].el.getElementsByTagName('img')[0],
+ pageYScroll = window.pageYOffset || document.documentElement.scrollTop,
+ rect = thumbnail.getBoundingClientRect();
+
+ return { x: rect.left, y: rect.top + pageYScroll, w: rect.width };
+ }
+ });
+
+ ps.init();
+ }
+
+ private bindClick() {
+ for (const [index, item] of this.items.entries()) {
+ const a = item.el.querySelector('a');
+
+ a.addEventListener('click', (e) => {
+ e.preventDefault();
+ this.open(index);
+ })
+ }
+ }
+}
+
+export default StackGallery; \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/ts/main.ts b/themes/hugo-theme-stack/assets/ts/main.ts
new file mode 100644
index 0000000..f3160ae
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/ts/main.ts
@@ -0,0 +1,112 @@
+/*!
+* Hugo Theme Stack
+*
+* @author: Jimmy Cai
+* @website: https://jimmycai.com
+* @link: https://github.com/CaiJimmy/hugo-theme-stack
+*/
+import StackGallery from "ts/gallery";
+import { getColor } from 'ts/color';
+import menu from 'ts/menu';
+import createElement from 'ts/createElement';
+import StackColorScheme from 'ts/colorScheme';
+import { setupScrollspy } from 'ts/scrollspy';
+import { setupSmoothAnchors } from "ts/smoothAnchors";
+
+let Stack = {
+ init: () => {
+ /**
+ * Bind menu event
+ */
+ menu();
+
+ const articleContent = document.querySelector('.article-content') as HTMLElement;
+ if (articleContent) {
+ new StackGallery(articleContent);
+ setupSmoothAnchors();
+ setupScrollspy();
+ }
+
+ /**
+ * Add linear gradient background to tile style article
+ */
+ const articleTile = document.querySelector('.article-list--tile');
+ if (articleTile) {
+ let observer = new IntersectionObserver(async (entries, observer) => {
+ entries.forEach(entry => {
+ if (!entry.isIntersecting) return;
+ observer.unobserve(entry.target);
+
+ const articles = entry.target.querySelectorAll('article.has-image');
+ articles.forEach(async articles => {
+ const image = articles.querySelector('img'),
+ imageURL = image.src,
+ key = image.getAttribute('data-key'),
+ hash = image.getAttribute('data-hash'),
+ articleDetails: HTMLDivElement = articles.querySelector('.article-details');
+
+ const colors = await getColor(key, hash, imageURL);
+
+ articleDetails.style.background = `
+ linear-gradient(0deg,
+ rgba(${colors.DarkMuted.rgb[0]}, ${colors.DarkMuted.rgb[1]}, ${colors.DarkMuted.rgb[2]}, 0.5) 0%,
+ rgba(${colors.Vibrant.rgb[0]}, ${colors.Vibrant.rgb[1]}, ${colors.Vibrant.rgb[2]}, 0.75) 100%)`;
+ })
+ })
+ });
+
+ observer.observe(articleTile)
+ }
+
+
+ /**
+ * Add copy button to code block
+ */
+ const highlights = document.querySelectorAll('.article-content div.highlight');
+ const copyText = `Copy`,
+ copiedText = `Copied!`;
+
+ highlights.forEach(highlight => {
+ const copyButton = document.createElement('button');
+ copyButton.innerHTML = copyText;
+ copyButton.classList.add('copyCodeButton');
+ highlight.appendChild(copyButton);
+
+ const codeBlock = highlight.querySelector('code[data-lang]');
+ if (!codeBlock) return;
+
+ copyButton.addEventListener('click', () => {
+ navigator.clipboard.writeText(codeBlock.textContent)
+ .then(() => {
+ copyButton.textContent = copiedText;
+
+ setTimeout(() => {
+ copyButton.textContent = copyText;
+ }, 1000);
+ })
+ .catch(err => {
+ alert(err)
+ console.log('Something went wrong', err);
+ });
+ });
+ });
+
+ new StackColorScheme(document.getElementById('dark-mode-toggle'));
+ }
+}
+
+window.addEventListener('load', () => {
+ setTimeout(function () {
+ Stack.init();
+ }, 0);
+})
+
+declare global {
+ interface Window {
+ createElement: any;
+ Stack: any
+ }
+}
+
+window.Stack = Stack;
+window.createElement = createElement; \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/ts/menu.ts b/themes/hugo-theme-stack/assets/ts/menu.ts
new file mode 100644
index 0000000..34615ba
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/ts/menu.ts
@@ -0,0 +1,83 @@
+/**
+ * Slide up/down
+ * Code from https://dev.to/bmsvieira/vanilla-js-slidedown-up-4dkn
+ * @param target
+ * @param duration
+ */
+let slideUp = (target: HTMLElement, duration = 500) => {
+ target.classList.add('transiting');
+ target.style.transitionProperty = 'height, margin, padding';
+ target.style.transitionDuration = duration + 'ms';
+ ///target.style.boxSizing = 'border-box';
+ target.style.height = target.offsetHeight + 'px';
+ target.offsetHeight;
+ target.style.overflow = 'hidden';
+ target.style.height = "0";
+ target.style.paddingTop = "0";
+ target.style.paddingBottom = "0";
+ target.style.marginTop = "0";
+ target.style.marginBottom = "0";
+ window.setTimeout(() => {
+ target.classList.remove('show')
+ target.style.removeProperty('height');
+ target.style.removeProperty('padding-top');
+ target.style.removeProperty('padding-bottom');
+ target.style.removeProperty('margin-top');
+ target.style.removeProperty('margin-bottom');
+ target.style.removeProperty('overflow');
+ target.style.removeProperty('transition-duration');
+ target.style.removeProperty('transition-property');
+ target.classList.remove('transiting');
+ }, duration);
+}
+
+let slideDown = (target: HTMLElement, duration = 500) => {
+ target.classList.add('transiting');
+ target.style.removeProperty('display');
+
+ target.classList.add('show');
+
+ let height = target.offsetHeight;
+ target.style.overflow = 'hidden';
+ target.style.height = "0";
+ target.style.paddingTop = "0";
+ target.style.paddingBottom = "0";
+ target.style.marginTop = "0";
+ target.style.marginBottom = "0";
+ target.offsetHeight;
+ ///target.style.boxSizing = 'border-box';
+ target.style.transitionProperty = "height, margin, padding";
+ target.style.transitionDuration = duration + 'ms';
+ target.style.height = height + 'px';
+ target.style.removeProperty('padding-top');
+ target.style.removeProperty('padding-bottom');
+ target.style.removeProperty('margin-top');
+ target.style.removeProperty('margin-bottom');
+ window.setTimeout(() => {
+ target.style.removeProperty('height');
+ target.style.removeProperty('overflow');
+ target.style.removeProperty('transition-duration');
+ target.style.removeProperty('transition-property');
+ target.classList.remove('transiting');
+ }, duration);
+}
+
+let slideToggle = (target, duration = 500) => {
+ if (window.getComputedStyle(target).display === 'none') {
+ return slideDown(target, duration);
+ } else {
+ return slideUp(target, duration);
+ }
+}
+
+export default function () {
+ const toggleMenu = document.getElementById('toggle-menu');
+ if (toggleMenu) {
+ toggleMenu.addEventListener('click', () => {
+ if (document.getElementById('main-menu').classList.contains('transiting')) return;
+ document.body.classList.toggle('show-menu');
+ slideToggle(document.getElementById('main-menu'), 300);
+ toggleMenu.classList.toggle('is-active');
+ });
+ }
+} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/ts/scrollspy.ts b/themes/hugo-theme-stack/assets/ts/scrollspy.ts
new file mode 100644
index 0000000..8a14085
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/ts/scrollspy.ts
@@ -0,0 +1,131 @@
+// Implements a scroll spy system for the ToC, displaying the current section with an indicator and scrolling to it when needed.
+
+// Inspired from https://gomakethings.com/debouncing-your-javascript-events/
+function debounced(func: Function) {
+ let timeout;
+ return () => {
+ if (timeout) {
+ window.cancelAnimationFrame(timeout);
+ }
+
+ timeout = window.requestAnimationFrame(() => func());
+ }
+}
+
+const headersQuery = ".article-content h1[id], .article-content h2[id], .article-content h3[id], .article-content h4[id], .article-content h5[id], .article-content h6[id]";
+const tocQuery = "#TableOfContents";
+const navigationQuery = "#TableOfContents li";
+const activeClass = "active-class";
+
+function scrollToTocElement(tocElement: HTMLElement, scrollableNavigation: HTMLElement) {
+ let textHeight = tocElement.querySelector("a").offsetHeight;
+ let scrollTop = tocElement.offsetTop - scrollableNavigation.offsetHeight / 2 + textHeight / 2 - scrollableNavigation.offsetTop;
+ if (scrollTop < 0) {
+ scrollTop = 0;
+ }
+ scrollableNavigation.scrollTo({ top: scrollTop, behavior: "smooth" });
+}
+
+type IdToElementMap = { [key: string]: HTMLElement };
+
+function buildIdToNavigationElementMap(navigation: NodeListOf<Element>): IdToElementMap {
+ const sectionLinkRef: IdToElementMap = {};
+ navigation.forEach((navigationElement: HTMLElement) => {
+ const link = navigationElement.querySelector("a");
+ const href = link.getAttribute("href");
+ if (href.startsWith("#")) {
+ sectionLinkRef[href.slice(1)] = navigationElement;
+ }
+ });
+
+ return sectionLinkRef;
+}
+
+function computeOffsets(headers: NodeListOf<Element>) {
+ let sectionsOffsets = [];
+ headers.forEach((header: HTMLElement) => { sectionsOffsets.push({ id: header.id, offset: header.offsetTop }) });
+ sectionsOffsets.sort((a, b) => a.offset - b.offset);
+ return sectionsOffsets;
+}
+
+function setupScrollspy() {
+ let headers = document.querySelectorAll(headersQuery);
+ if (!headers) {
+ console.warn("No header matched query", headers);
+ return;
+ }
+
+ let scrollableNavigation = document.querySelector(tocQuery) as HTMLElement | undefined;
+ if (!scrollableNavigation) {
+ console.warn("No toc matched query", tocQuery);
+ return;
+ }
+
+ let navigation = document.querySelectorAll(navigationQuery);
+ if (!navigation) {
+ console.warn("No navigation matched query", navigationQuery);
+ return;
+ }
+
+ let sectionsOffsets = computeOffsets(headers);
+
+ // We need to avoid scrolling when the user is actively interacting with the ToC. Otherwise, if the user clicks on a link in the ToC,
+ // we would scroll their view, which is not optimal usability-wise.
+ let tocHovered: boolean = false;
+ scrollableNavigation.addEventListener("mouseenter", debounced(() => tocHovered = true));
+ scrollableNavigation.addEventListener("mouseleave", debounced(() => tocHovered = false));
+
+ let activeSectionLink: Element;
+
+ let idToNavigationElement: IdToElementMap = buildIdToNavigationElementMap(navigation);
+
+ function scrollHandler() {
+ let scrollPosition = document.documentElement.scrollTop || document.body.scrollTop;
+
+ let newActiveSection: HTMLElement | undefined;
+
+ // Find the section that is currently active.
+ // It is possible for no section to be active, so newActiveSection may be undefined.
+ sectionsOffsets.forEach((section) => {
+ if (scrollPosition >= section.offset - 20) {
+ newActiveSection = document.getElementById(section.id);
+ }
+ });
+
+ // Find the link for the active section. Once again, there are a few edge cases:
+ // - No active section = no link => undefined
+ // - No active section but the link does not exist in toc (e.g. because it is outside of the applicable ToC levels) => undefined
+ let newActiveSectionLink: HTMLElement | undefined
+ if (newActiveSection) {
+ newActiveSectionLink = idToNavigationElement[newActiveSection.id];
+ }
+
+ if (newActiveSection && !newActiveSectionLink) {
+ // The active section does not have a link in the ToC, so we can't scroll to it.
+ console.debug("No link found for section", newActiveSection);
+ } else if (newActiveSectionLink !== activeSectionLink) {
+ if (activeSectionLink)
+ activeSectionLink.classList.remove(activeClass);
+ if (newActiveSectionLink) {
+ newActiveSectionLink.classList.add(activeClass);
+ if (!tocHovered) {
+ // Scroll so that newActiveSectionLink is in the middle of scrollableNavigation, except when it's from a manual click (hence the tocHovered check)
+ scrollToTocElement(newActiveSectionLink, scrollableNavigation);
+ }
+ }
+ activeSectionLink = newActiveSectionLink;
+ }
+ }
+
+ window.addEventListener("scroll", debounced(scrollHandler));
+
+ // Resizing may cause the offset values to change: recompute them.
+ function resizeHandler() {
+ sectionsOffsets = computeOffsets(headers);
+ scrollHandler();
+ }
+
+ window.addEventListener("resize", debounced(resizeHandler));
+}
+
+export { setupScrollspy }; \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/ts/search.tsx b/themes/hugo-theme-stack/assets/ts/search.tsx
new file mode 100644
index 0000000..1c81dd1
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/ts/search.tsx
@@ -0,0 +1,333 @@
+interface pageData {
+ title: string,
+ date: string,
+ permalink: string,
+ content: string,
+ image?: string,
+ preview: string,
+ matchCount: number
+}
+
+interface match {
+ start: number,
+ end: number
+}
+
+/**
+ * Escape HTML tags as HTML entities
+ * Edited from:
+ * @link https://stackoverflow.com/a/5499821
+ */
+const tagsToReplace = {
+ '&': '&amp;',
+ '<': '&lt;',
+ '>': '&gt;',
+ '"': '&quot;',
+ '…': '&hellip;'
+};
+
+function replaceTag(tag) {
+ return tagsToReplace[tag] || tag;
+}
+
+function replaceHTMLEnt(str) {
+ return str.replace(/[&<>"]/g, replaceTag);
+}
+
+function escapeRegExp(string) {
+ return string.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&');
+}
+
+class Search {
+ private data: pageData[];
+ private form: HTMLFormElement;
+ private input: HTMLInputElement;
+ private list: HTMLDivElement;
+ private resultTitle: HTMLHeadElement;
+ private resultTitleTemplate: string;
+
+ constructor({ form, input, list, resultTitle, resultTitleTemplate }) {
+ this.form = form;
+ this.input = input;
+ this.list = list;
+ this.resultTitle = resultTitle;
+ this.resultTitleTemplate = resultTitleTemplate;
+
+ /// Check if there's already value in the search input
+ if (this.input.value.trim() !== '') {
+ this.doSearch(this.input.value.split(' '));
+ }
+ else {
+ this.handleQueryString();
+ }
+
+ this.bindQueryStringChange();
+ this.bindSearchForm();
+ }
+
+ /**
+ * Processes search matches
+ * @param str original text
+ * @param matches array of matches
+ * @param ellipsis whether to add ellipsis to the end of each match
+ * @param charLimit max length of preview string
+ * @param offset how many characters before and after the match to include in preview
+ * @returns preview string
+ */
+ private static processMatches(str: string, matches: match[], ellipsis: boolean = true, charLimit = 140, offset = 20): string {
+ matches.sort((a, b) => {
+ return a.start - b.start;
+ });
+
+ let i = 0,
+ lastIndex = 0,
+ charCount = 0;
+
+ const resultArray: string[] = [];
+
+ while (i < matches.length) {
+ const item = matches[i];
+
+ /// item.start >= lastIndex (equal only for the first iteration)
+ /// because of the while loop that comes after, iterating over variable j
+
+ if (ellipsis && item.start - offset > lastIndex) {
+ resultArray.push(`${replaceHTMLEnt(str.substring(lastIndex, lastIndex + offset))} [...] `);
+ resultArray.push(`${replaceHTMLEnt(str.substring(item.start - offset, item.start))}`);
+ charCount += offset * 2;
+ }
+ else {
+ /// If the match is too close to the end of last match, don't add ellipsis
+ resultArray.push(replaceHTMLEnt(str.substring(lastIndex, item.start)));
+ charCount += item.start - lastIndex;
+ }
+
+ let j = i + 1,
+ end = item.end;
+
+ /// Include as many matches as possible
+ /// [item.start, end] is the range of the match
+ while (j < matches.length && matches[j].start <= end) {
+ end = Math.max(matches[j].end, end);
+ ++j;
+ }
+
+ resultArray.push(`<mark>${replaceHTMLEnt(str.substring(item.start, end))}</mark>`);
+ charCount += end - item.start;
+
+ i = j;
+ lastIndex = end;
+
+ if (ellipsis && charCount > charLimit) break;
+ }
+
+ /// Add the rest of the string
+ if (lastIndex < str.length) {
+ let end = str.length;
+ if (ellipsis) end = Math.min(end, lastIndex + offset);
+
+ resultArray.push(`${replaceHTMLEnt(str.substring(lastIndex, end))}`);
+
+ if (ellipsis && end != str.length) {
+ resultArray.push(` [...]`);
+ }
+ }
+
+ return resultArray.join('');
+ }
+
+ private async searchKeywords(keywords: string[]) {
+ const rawData = await this.getData();
+ const results: pageData[] = [];
+
+ const regex = new RegExp(keywords.filter((v, index, arr) => {
+ arr[index] = escapeRegExp(v);
+ return v.trim() !== '';
+ }).join('|'), 'gi');
+
+ for (const item of rawData) {
+ const titleMatches: match[] = [],
+ contentMatches: match[] = [];
+
+ let result = {
+ ...item,
+ preview: '',
+ matchCount: 0
+ }
+
+ const contentMatchAll = item.content.matchAll(regex);
+ for (const match of Array.from(contentMatchAll)) {
+ contentMatches.push({
+ start: match.index,
+ end: match.index + match[0].length
+ });
+ }
+
+ const titleMatchAll = item.title.matchAll(regex);
+ for (const match of Array.from(titleMatchAll)) {
+ titleMatches.push({
+ start: match.index,
+ end: match.index + match[0].length
+ });
+ }
+
+ if (titleMatches.length > 0) result.title = Search.processMatches(result.title, titleMatches, false);
+ if (contentMatches.length > 0) {
+ result.preview = Search.processMatches(result.content, contentMatches);
+ }
+ else {
+ /// If there are no matches in the content, use the first 140 characters as preview
+ result.preview = replaceHTMLEnt(result.content.substring(0, 140));
+ }
+
+ result.matchCount = titleMatches.length + contentMatches.length;
+ if (result.matchCount > 0) results.push(result);
+ }
+
+ /// Result with more matches appears first
+ return results.sort((a, b) => {
+ return b.matchCount - a.matchCount;
+ });
+ }
+
+ private async doSearch(keywords: string[]) {
+ const startTime = performance.now();
+
+ const results = await this.searchKeywords(keywords);
+ this.clear();
+
+ for (const item of results) {
+ this.list.append(Search.render(item));
+ }
+
+ const endTime = performance.now();
+
+ this.resultTitle.innerText = this.generateResultTitle(results.length, ((endTime - startTime) / 1000).toPrecision(1));
+ }
+
+ private generateResultTitle(resultLen, time) {
+ return this.resultTitleTemplate.replace("#PAGES_COUNT", resultLen).replace("#TIME_SECONDS", time);
+ }
+
+ public async getData() {
+ if (!this.data) {
+ /// Not fetched yet
+ const jsonURL = this.form.dataset.json;
+ this.data = await fetch(jsonURL).then(res => res.json());
+ const parser = new DOMParser();
+
+ for (const item of this.data) {
+ item.content = parser.parseFromString(item.content, 'text/html').body.innerText;
+ }
+ }
+
+ return this.data;
+ }
+
+ private bindSearchForm() {
+ let lastSearch = '';
+
+ const eventHandler = (e) => {
+ e.preventDefault();
+ const keywords = this.input.value.trim();
+
+ Search.updateQueryString(keywords, true);
+
+ if (keywords === '') {
+ lastSearch = '';
+ return this.clear();
+ }
+
+ if (lastSearch === keywords) return;
+ lastSearch = keywords;
+
+ this.doSearch(keywords.split(' '));
+ }
+
+ this.input.addEventListener('input', eventHandler);
+ this.input.addEventListener('compositionend', eventHandler);
+ }
+
+ private clear() {
+ this.list.innerHTML = '';
+ this.resultTitle.innerText = '';
+ }
+
+ private bindQueryStringChange() {
+ window.addEventListener('popstate', (e) => {
+ this.handleQueryString()
+ })
+ }
+
+ private handleQueryString() {
+ const pageURL = new URL(window.location.toString());
+ const keywords = pageURL.searchParams.get('keyword');
+ this.input.value = keywords;
+
+ if (keywords) {
+ this.doSearch(keywords.split(' '));
+ }
+ else {
+ this.clear()
+ }
+ }
+
+ private static updateQueryString(keywords: string, replaceState = false) {
+ const pageURL = new URL(window.location.toString());
+
+ if (keywords === '') {
+ pageURL.searchParams.delete('keyword')
+ }
+ else {
+ pageURL.searchParams.set('keyword', keywords);
+ }
+
+ if (replaceState) {
+ window.history.replaceState('', '', pageURL.toString());
+ }
+ else {
+ window.history.pushState('', '', pageURL.toString());
+ }
+ }
+
+ public static render(item: pageData) {
+ return <article>
+ <a href={item.permalink}>
+ <div class="article-details">
+ <h2 class="article-title" dangerouslySetInnerHTML={{ __html: item.title }}></h2>
+ <section class="article-preview" dangerouslySetInnerHTML={{ __html: item.preview }}></section>
+ </div>
+ {item.image &&
+ <div class="article-image">
+ <img src={item.image} loading="lazy" />
+ </div>
+ }
+ </a>
+ </article>;
+ }
+}
+
+declare global {
+ interface Window {
+ searchResultTitleTemplate: string;
+ }
+}
+
+window.addEventListener('load', () => {
+ setTimeout(function () {
+ const searchForm = document.querySelector('.search-form') as HTMLFormElement,
+ searchInput = searchForm.querySelector('input') as HTMLInputElement,
+ searchResultList = document.querySelector('.search-result--list') as HTMLDivElement,
+ searchResultTitle = document.querySelector('.search-result--title') as HTMLHeadingElement;
+
+ new Search({
+ form: searchForm,
+ input: searchInput,
+ list: searchResultList,
+ resultTitle: searchResultTitle,
+ resultTitleTemplate: window.searchResultTitleTemplate
+ });
+ }, 0);
+})
+
+export default Search; \ No newline at end of file
diff --git a/themes/hugo-theme-stack/assets/ts/smoothAnchors.ts b/themes/hugo-theme-stack/assets/ts/smoothAnchors.ts
new file mode 100644
index 0000000..16ab6a3
--- /dev/null
+++ b/themes/hugo-theme-stack/assets/ts/smoothAnchors.ts
@@ -0,0 +1,37 @@
+// Implements smooth scrolling when clicking on an anchor link.
+// This is required instead of using modern CSS because Chromium does not currently support scrolling
+// one element with scrollTo while another element is scrolled because of a click on a link. This would
+// thus not work with the ToC scrollspy and e.g. footnotes.
+
+// Here are additional links about this issue:
+// - https://stackoverflow.com/questions/49318497/google-chrome-simultaneously-smooth-scrollintoview-with-more-elements-doesn
+// - https://stackoverflow.com/questions/57214373/scrollintoview-using-smooth-function-on-multiple-elements-in-chrome
+// - https://bugs.chromium.org/p/chromium/issues/detail?id=833617
+// - https://bugs.chromium.org/p/chromium/issues/detail?id=1043933
+// - https://bugs.chromium.org/p/chromium/issues/detail?id=1121151
+
+const anchorLinksQuery = "a[href]";
+
+function setupSmoothAnchors() {
+ document.querySelectorAll(anchorLinksQuery).forEach(aElement => {
+ let href = aElement.getAttribute("href");
+ if (!href.startsWith("#")) {
+ return;
+ }
+ aElement.addEventListener("click", clickEvent => {
+ clickEvent.preventDefault();
+
+ const targetId = decodeURI(aElement.getAttribute("href").substring(1)),
+ target = document.getElementById(targetId) as HTMLElement,
+ offset = target.getBoundingClientRect().top - document.documentElement.getBoundingClientRect().top;
+
+ window.history.pushState({}, "", aElement.getAttribute("href"));
+ scrollTo({
+ top: offset,
+ behavior: "smooth"
+ });
+ });
+ });
+}
+
+export { setupSmoothAnchors }; \ No newline at end of file
diff --git a/themes/hugo-theme-stack/config.yaml b/themes/hugo-theme-stack/config.yaml
new file mode 100644
index 0000000..b1a0bff
--- /dev/null
+++ b/themes/hugo-theme-stack/config.yaml
@@ -0,0 +1,149 @@
+module:
+ hugoVersion:
+ extended: true
+ min: "0.87.0"
+
+params:
+ mainSections:
+ - post
+ featuredImageField: image
+ rssFullContent: true
+ favicon:
+
+ footer:
+ since:
+ customText:
+
+ dateFormat:
+ published: Jan 02, 2006
+ lastUpdated: Jan 02, 2006 15:04 MST
+
+ sidebar:
+ compact: false
+ emoji:
+ subtitle:
+ avatar:
+ enabled: true
+ local: true
+ src: img/avatar.png
+
+ article:
+ headingAnchor: false
+ math: false
+ toc: true
+ readingTime: true
+ license:
+ enabled: false
+ default: Licensed under CC BY-NC-SA 4.0
+
+ comments:
+ enabled: false
+ provider: disqus
+
+ disqusjs:
+ shortname:
+ apiUrl:
+ apiKey:
+ admin:
+ adminLabel:
+
+ utterances:
+ repo:
+ issueTerm: pathname
+ label:
+
+ beaudar:
+ repo:
+ issueTerm: pathname
+ label:
+ theme:
+
+ remark42:
+ host:
+ site:
+ locale:
+
+ vssue:
+ platform:
+ owner:
+ repo:
+ clientId:
+ clientSecret:
+ autoCreateIssue: false
+
+ # Waline client configuration see: https://waline.js.org/en/reference/client/props.html
+ waline:
+ serverURL:
+ lang:
+ visitor:
+ avatar:
+ emoji:
+ - https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo
+ requiredMeta:
+ - nick
+ - mail
+ locale:
+ admin: Admin
+ placeholder:
+
+ twikoo:
+ envId:
+ region:
+ path:
+ lang:
+
+ giscus:
+ repo:
+ repoID:
+ category:
+ categoryID:
+ mapping:
+ strict:
+ lightTheme:
+ darkTheme:
+ reactionsEnabled: 1
+ emitMetadata: 0
+ inputPosition:
+ lang:
+
+ gitalk:
+ owner:
+ admin:
+ repo:
+ clientID:
+ clientSecret:
+
+ cusdis:
+ host:
+ id:
+
+ widgets:
+ homepage: []
+ page: []
+
+ opengraph:
+ twitter:
+ # Your Twitter username
+ site:
+
+ # Available values: summary, summary_large_image
+ card: summary_large_image
+
+ defaultImage:
+ opengraph:
+ enabled: false
+ local: false
+ src:
+
+ colorScheme:
+ # Display toggle
+ toggle: true
+
+ # Available values: auto, light, dark
+ default: auto
+
+ imageProcessing:
+ cover:
+ enabled: true
+ content:
+ enabled: true
diff --git a/themes/hugo-theme-stack/data/external.yaml b/themes/hugo-theme-stack/data/external.yaml
new file mode 100644
index 0000000..4fc0bca
--- /dev/null
+++ b/themes/hugo-theme-stack/data/external.yaml
@@ -0,0 +1,44 @@
+Vibrant:
+ - src: https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js
+ integrity: sha256-awcR2jno4kI5X0zL8ex0vi2z+KMkF24hUW8WePSA9HM=
+ type: script
+
+PhotoSwipe:
+ - src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js
+ integrity: sha256-ePwmChbbvXbsO02lbM3HoHbSHTHFAeChekF1xKJdleo=
+ type: script
+ defer: true
+
+ - src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js
+ integrity: sha256-UKkzOn/w1mBxRmLLGrSeyB4e1xbrp4xylgAWb3M42pU=
+ type: script
+ defer: true
+
+ - src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css
+ type: style
+
+ - src: https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css
+ type: style
+
+KaTeX:
+ - src: https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css
+ integrity: sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV
+ type: style
+
+ - src: https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js
+ integrity: sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8
+ type: script
+ defer: true
+
+ - src: https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js
+ integrity: sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05
+ type: script
+ defer: true
+
+Cactus:
+ - src: https://latest.cactus.chat/cactus.js
+ integrity:
+ type: script
+ - src: https://latest.cactus.chat/style.css
+ integrity:
+ type: style
diff --git a/themes/hugo-theme-stack/debug.sh b/themes/hugo-theme-stack/debug.sh
new file mode 100755
index 0000000..4d1312e
--- /dev/null
+++ b/themes/hugo-theme-stack/debug.sh
@@ -0,0 +1 @@
+cd exampleSite && hugo server --gc --themesDir=../.. \ No newline at end of file
diff --git a/themes/hugo-theme-stack/exampleSite/.gitignore b/themes/hugo-theme-stack/exampleSite/.gitignore
new file mode 100644
index 0000000..6db5459
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/.gitignore
@@ -0,0 +1,30 @@
+# Compiled Object files, Static and Dynamic libs (Shared Objects)
+*.o
+*.a
+*.so
+
+# Folders
+_obj
+_test
+
+# Architecture specific extensions/prefixes
+*.[568vq]
+[568vq].out
+
+*.cgo1.go
+*.cgo2.c
+_cgo_defun.c
+_cgo_gotypes.go
+_cgo_export.*
+
+_testmain.go
+
+*.exe
+*.test
+
+public
+themes
+resources
+
+assets/jsconfig.json
+.DS_Store
diff --git a/themes/hugo-theme-stack/exampleSite/LICENSE b/themes/hugo-theme-stack/exampleSite/LICENSE
new file mode 100644
index 0000000..4527efb
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Steve Francia
+
+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. \ No newline at end of file
diff --git a/themes/hugo-theme-stack/exampleSite/README.md b/themes/hugo-theme-stack/exampleSite/README.md
new file mode 100644
index 0000000..dbaf5e5
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/README.md
@@ -0,0 +1,3 @@
+This is an example site used for solely for testing purposes. **It is not meant to be used as a template for your site**.
+
+To create a new site, please use the starter template: [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJimmy/hugo-theme-stack-starter/) \ No newline at end of file
diff --git a/themes/hugo-theme-stack/exampleSite/content/_index.md b/themes/hugo-theme-stack/exampleSite/content/_index.md
new file mode 100644
index 0000000..530dfe8
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/_index.md
@@ -0,0 +1,8 @@
+---
+menu:
+ main:
+ name: Home
+ weight: -100
+ params:
+ icon: home
+--- \ No newline at end of file
diff --git a/themes/hugo-theme-stack/exampleSite/content/_index.zh-cn.md b/themes/hugo-theme-stack/exampleSite/content/_index.zh-cn.md
new file mode 100644
index 0000000..e4b59a8
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/_index.zh-cn.md
@@ -0,0 +1,8 @@
+---
+menu:
+ main:
+ name: 主页
+ weight: -100
+ params:
+ icon: home
+--- \ No newline at end of file
diff --git a/themes/hugo-theme-stack/exampleSite/content/categories/Test/_index.md b/themes/hugo-theme-stack/exampleSite/content/categories/Test/_index.md
new file mode 100644
index 0000000..de42112
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/categories/Test/_index.md
@@ -0,0 +1,9 @@
+---
+title: "Test"
+description: "This is an example category"
+slug: "test"
+image: "hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg"
+style:
+ background: "#2a9d8f"
+ color: "#fff"
+---
diff --git a/themes/hugo-theme-stack/exampleSite/content/categories/Test/hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg b/themes/hugo-theme-stack/exampleSite/content/categories/Test/hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg
new file mode 100644
index 0000000..c385943
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/categories/Test/hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg
Binary files differ
diff --git a/themes/hugo-theme-stack/exampleSite/content/page/about/index.md b/themes/hugo-theme-stack/exampleSite/content/page/about/index.md
new file mode 100644
index 0000000..68911f9
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/page/about/index.md
@@ -0,0 +1,34 @@
+---
+title: About
+description: Hugo, the world's fastest framework for building websites
+date: '2019-02-28'
+aliases:
+ - about-us
+ - about-hugo
+ - contact
+license: CC BY-NC-ND
+lastmod: '2020-10-09'
+menu:
+ main:
+ weight: -90
+ params:
+ icon: user
+---
+
+Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
+
+Hugo makes use of a variety of open source projects including:
+
+* https://github.com/yuin/goldmark
+* https://github.com/alecthomas/chroma
+* https://github.com/muesli/smartcrop
+* https://github.com/spf13/cobra
+* https://github.com/spf13/viper
+
+Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
+
+Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
+
+Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
+
+Learn more and contribute on [GitHub](https://github.com/gohugoio).
diff --git a/themes/hugo-theme-stack/exampleSite/content/page/about/index.zh-cn.md b/themes/hugo-theme-stack/exampleSite/content/page/about/index.zh-cn.md
new file mode 100644
index 0000000..0284003
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/page/about/index.zh-cn.md
@@ -0,0 +1,10 @@
+---
+title: 关于
+menu:
+ main:
+ weight: -90
+ params:
+ icon: user
+---
+
+This is a test page for i18n support. \ No newline at end of file
diff --git a/themes/hugo-theme-stack/exampleSite/content/page/archives/index.md b/themes/hugo-theme-stack/exampleSite/content/page/archives/index.md
new file mode 100644
index 0000000..2862deb
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/page/archives/index.md
@@ -0,0 +1,11 @@
+---
+title: "Archives"
+date: 2019-05-28
+layout: "archives"
+slug: "archives"
+menu:
+ main:
+ weight: -70
+ params:
+ icon: archives
+---
diff --git a/themes/hugo-theme-stack/exampleSite/content/page/links/index.md b/themes/hugo-theme-stack/exampleSite/content/page/links/index.md
new file mode 100644
index 0000000..9e29bf3
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/page/links/index.md
@@ -0,0 +1,37 @@
+---
+title: Links
+links:
+ - title: GitHub
+ description: GitHub is the world's largest software development platform.
+ website: https://github.com
+ image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
+ - title: TypeScript
+ description: TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
+ website: https://www.typescriptlang.org
+ image: ts-logo-128.jpg
+menu:
+ main:
+ weight: -50
+ params:
+ icon: link
+
+comments: false
+---
+
+To use this feature, add `links` section to frontmatter.
+
+This page's frontmatter:
+
+```yaml
+links:
+ - title: GitHub
+ description: GitHub is the world's largest software development platform.
+ website: https://github.com
+ image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
+ - title: TypeScript
+ description: TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
+ website: https://www.typescriptlang.org
+ image: ts-logo-128.jpg
+```
+
+`image` field accepts both local and external images. \ No newline at end of file
diff --git a/themes/hugo-theme-stack/exampleSite/content/page/links/ts-logo-128.jpg b/themes/hugo-theme-stack/exampleSite/content/page/links/ts-logo-128.jpg
new file mode 100644
index 0000000..85e3323
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/page/links/ts-logo-128.jpg
Binary files differ
diff --git a/themes/hugo-theme-stack/exampleSite/content/page/search/index.md b/themes/hugo-theme-stack/exampleSite/content/page/search/index.md
new file mode 100644
index 0000000..b2a5943
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/page/search/index.md
@@ -0,0 +1,13 @@
+---
+title: "Search"
+slug: "search"
+layout: "search"
+outputs:
+ - html
+ - json
+menu:
+ main:
+ weight: -60
+ params:
+ icon: search
+--- \ No newline at end of file
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/florian-klauer-nptLmg6jqDo-unsplash.jpg b/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/florian-klauer-nptLmg6jqDo-unsplash.jpg
new file mode 100644
index 0000000..4798ed4
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/florian-klauer-nptLmg6jqDo-unsplash.jpg
Binary files differ
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/helena-hertz-wWZzXlDpMog-unsplash.jpg b/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/helena-hertz-wWZzXlDpMog-unsplash.jpg
new file mode 100644
index 0000000..0120706
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/helena-hertz-wWZzXlDpMog-unsplash.jpg
Binary files differ
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/hudai-gayiran-3Od_VKcDEAA-unsplash.jpg b/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/hudai-gayiran-3Od_VKcDEAA-unsplash.jpg
new file mode 100644
index 0000000..1a280b2
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/hudai-gayiran-3Od_VKcDEAA-unsplash.jpg
Binary files differ
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/index.zh-cn.md b/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/index.zh-cn.md
new file mode 100644
index 0000000..5249ef8
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/index.zh-cn.md
@@ -0,0 +1,39 @@
+---
+title: Chinese Test
+description: 这是一个副标题
+date: 2020-09-09
+slug: test-chinese
+image: helena-hertz-wWZzXlDpMog-unsplash.jpg
+categories:
+ - Test
+ - 测试
+---
+
+## 正文测试
+
+而这些并不是完全重要,更加重要的问题是, 带着这些问题,我们来审视一下学生会退会。 既然如何, 对我个人而言,学生会退会不仅仅是一个重大的事件,还可能会改变我的人生。 我们不得不面对一个非常尴尬的事实,那就是, 可是,即使是这样,学生会退会的出现仍然代表了一定的意义。 学生会退会,发生了会如何,不发生又会如何。 经过上述讨论, 生活中,若学生会退会出现了,我们就不得不考虑它出现了的事实。 学生会退会,到底应该如何实现。 这样看来, 在这种困难的抉择下,本人思来想去,寝食难安。 对我个人而言,学生会退会不仅仅是一个重大的事件,还可能会改变我的人生。 就我个人来说,学生会退会对我的意义,不能不说非常重大。 莎士比亚曾经提到过,人的一生是短的,但如果卑劣地过这一生,就太长了。这似乎解答了我的疑惑。 莫扎特说过一句富有哲理的话,谁和我一样用功,谁就会和我一样成功。这启发了我, 对我个人而言,学生会退会不仅仅是一个重大的事件,还可能会改变我的人生。 学生会退会,到底应该如何实现。 一般来说, 从这个角度来看, 这种事实对本人来说意义重大,相信对这个世界也是有一定意义的。 在这种困难的抉择下,本人思来想去,寝食难安。 了解清楚学生会退会到底是一种怎么样的存在,是解决一切问题的关键。 一般来说, 生活中,若学生会退会出现了,我们就不得不考虑它出现了的事实。 问题的关键究竟为何? 而这些并不是完全重要,更加重要的问题是。
+
+奥斯特洛夫斯基曾经说过,共同的事业,共同的斗争,可以使人们产生忍受一切的力量。 带着这句话,我们还要更加慎重的审视这个问题: 一般来讲,我们都必须务必慎重的考虑考虑。 既然如此, 这种事实对本人来说意义重大,相信对这个世界也是有一定意义的。 带着这些问题,我们来审视一下学生会退会。 我认为, 我认为, 在这种困难的抉择下,本人思来想去,寝食难安。 问题的关键究竟为何? 每个人都不得不面对这些问题。 在面对这种问题时, 要想清楚,学生会退会,到底是一种怎么样的存在。 我认为, 既然如此, 每个人都不得不面对这些问题。 在面对这种问题时, 那么, 我认为, 学生会退会因何而发生。
+
+## 引用
+
+> 思念是最暖的忧伤像一双翅膀
+> 让我停不了飞不远在过往游荡
+> 不告而别的你 就算为了我着想
+> 这么沉痛的呵护 我怎么能翱翔
+>
+> *[最暖的憂傷 - 田馥甄](https://www.youtube.com/watch?v=3aypp_YlBzI)*
+
+## 图片
+
+![Photo by Florian Klauer on Unsplash](florian-klauer-nptLmg6jqDo-unsplash.jpg) ![Photo by Luca Bravo on Unsplash](luca-bravo-alS7ewQ41M8-unsplash.jpg)
+
+![Photo by Helena Hertz on Unsplash](helena-hertz-wWZzXlDpMog-unsplash.jpg) ![Photo by Hudai Gayiran on Unsplash](hudai-gayiran-3Od_VKcDEAA-unsplash.jpg)
+
+```markdown
+![Photo by Florian Klauer on Unsplash](florian-klauer-nptLmg6jqDo-unsplash.jpg) ![Photo by Luca Bravo on Unsplash](luca-bravo-alS7ewQ41M8-unsplash.jpg)
+
+![Photo by Helena Hertz on Unsplash](helena-hertz-wWZzXlDpMog-unsplash.jpg) ![Photo by Hudai Gayiran on Unsplash](hudai-gayiran-3Od_VKcDEAA-unsplash.jpg)
+```
+
+相册语法来自 [Typlog](https://typlog.com/) \ No newline at end of file
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/luca-bravo-alS7ewQ41M8-unsplash.jpg b/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/luca-bravo-alS7ewQ41M8-unsplash.jpg
new file mode 100644
index 0000000..f6c90bc
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/chinese-test/luca-bravo-alS7ewQ41M8-unsplash.jpg
Binary files differ
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/emoji-support/index.md b/themes/hugo-theme-stack/exampleSite/content/post/emoji-support/index.md
new file mode 100644
index 0000000..bc3e348
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/emoji-support/index.md
@@ -0,0 +1,50 @@
++++
+author = "Hugo Authors"
+title = "Emoji Support"
+date = "2019-03-05"
+description = "Guide to emoji usage in Hugo"
+categories = [
+ "Test"
+]
+tags = [
+ "emoji",
+]
+image = "the-creative-exchange-d2zvqp3fpro-unsplash.jpg"
++++
+
+Emoji can be enabled in a Hugo project in a number of ways.
+<!--more-->
+The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
+
+To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
+
+<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
+<br>
+
+The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
+
+***
+
+**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
+
+{{< highlight html >}}
+.emoji {
+ font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
+}
+{{< /highlight >}}
+
+{{< css.inline >}}
+<style>
+.emojify {
+ font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
+ font-size: 2rem;
+ vertical-align: middle;
+}
+@media screen and (max-width:650px) {
+ .nowrap {
+ display: block;
+ margin: 25px 0;
+ }
+}
+</style>
+{{< /css.inline >}}
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpg b/themes/hugo-theme-stack/exampleSite/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpg
new file mode 100644
index 0000000..e34a59d
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpg
Binary files differ
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/markdown-syntax/index.md b/themes/hugo-theme-stack/exampleSite/content/post/markdown-syntax/index.md
new file mode 100644
index 0000000..c584c4c
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/markdown-syntax/index.md
@@ -0,0 +1,168 @@
++++
+author = "Hugo Authors"
+title = "Markdown Syntax Guide"
+date = "2019-03-11"
+description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
+tags = [
+ "markdown",
+ "css",
+ "html",
+ "themes",
+]
+categories = [
+ "themes",
+ "syntax",
+]
+series = ["Themes Guide"]
+aliases = ["migrate-from-jekyl"]
+image = "pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg"
++++
+
+This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
+<!--more-->
+
+## Headings
+
+The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
+
+# H1
+## H2
+### H3
+#### H4
+##### H5
+###### H6
+
+## Paragraph
+
+Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
+
+Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
+
+## Blockquotes
+
+The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
+
+#### Blockquote without attribution
+
+> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
+> **Note** that you can use *Markdown syntax* within a blockquote.
+
+#### Blockquote with attribution
+
+> Don't communicate by sharing memory, share memory by communicating.<br>
+> — <cite>Rob Pike[^1]</cite>
+
+[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
+
+## Tables
+
+Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
+
+ Name | Age
+--------|------
+ Bob | 27
+ Alice | 23
+
+#### Inline Markdown within tables
+
+| Italics | Bold | Code |
+| -------- | -------- | ------ |
+| *italics* | **bold** | `code` |
+
+| A | B | C | D | E | F |
+|----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------|------------------------------------------------------------|----------------------------------------------------------------------|
+| Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Phasellus ultricies, sapien non euismod aliquam, dui ligula tincidunt odio, at accumsan nulla sapien eget ex. | Proin eleifend dictum ipsum, non euismod ipsum pulvinar et. Vivamus sollicitudin, quam in pulvinar aliquam, metus elit pretium purus | Proin sit amet velit nec enim imperdiet vehicula. | Ut bibendum vestibulum quam, eu egestas turpis gravida nec | Sed scelerisque nec turpis vel viverra. Vivamus vitae pretium sapien |
+
+## Code Blocks
+
+#### Code block with backticks
+
+```html
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Example HTML5 Document</title>
+</head>
+<body>
+ <p>Test</p>
+</body>
+</html>
+```
+
+#### Code block indented with four spaces
+
+ <!doctype html>
+ <html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Example HTML5 Document</title>
+ </head>
+ <body>
+ <p>Test</p>
+ </body>
+ </html>
+
+#### Code block with Hugo's internal highlight shortcode
+{{< highlight html >}}
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Example HTML5 Document</title>
+</head>
+<body>
+ <p>Test</p>
+</body>
+</html>
+{{< /highlight >}}
+
+#### Diff code block
+
+```diff
+[dependencies.bevy]
+git = "https://github.com/bevyengine/bevy"
+rev = "11f52b8c72fc3a568e8bb4a4cd1f3eb025ac2e13"
+- features = ["dynamic"]
++ features = ["jpeg", "dynamic"]
+```
+
+## List Types
+
+#### Ordered List
+
+1. First item
+2. Second item
+3. Third item
+
+#### Unordered List
+
+* List item
+* Another item
+* And another item
+
+#### Nested list
+
+* Fruit
+ * Apple
+ * Orange
+ * Banana
+* Dairy
+ * Milk
+ * Cheese
+
+## Other Elements — abbr, sub, sup, kbd, mark
+
+<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
+
+H<sub>2</sub>O
+
+X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
+
+Press <kbd>CTRL</kbd> + <kbd>ALT</kbd> + <kbd>Delete</kbd> to end the session.
+
+Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
+
+## Hyperlinked image
+
+[![Google](https://www.google.com/images/branding/googlelogo/1x/googlelogo_light_color_272x92dp.png)](https://google.com) \ No newline at end of file
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/markdown-syntax/pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg b/themes/hugo-theme-stack/exampleSite/content/post/markdown-syntax/pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg
new file mode 100644
index 0000000..1634e85
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/markdown-syntax/pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg
Binary files differ
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/math-typesetting/index.md b/themes/hugo-theme-stack/exampleSite/content/post/math-typesetting/index.md
new file mode 100644
index 0000000..060fd7f
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/math-typesetting/index.md
@@ -0,0 +1,45 @@
+---
+author: Hugo Authors
+title: Math Typesetting
+date: 2019-03-08
+description: A brief guide to setup KaTeX
+math: true
+---
+
+Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
+<!--more-->
+
+In this example we will be using [KaTeX](https://katex.org/)
+
+- Create a partial under `/layouts/partials/math.html`
+- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
+- Include the partial in your templates like so:
+
+```bash
+{{ if or .Params.math .Site.Params.math }}
+{{ partial "math.html" . }}
+{{ end }}
+```
+
+- To enable KaTeX globally set the parameter `math` to `true` in a project's configuration
+- To enable KaTeX on a per page basis include the parameter `math: true` in content files
+
+**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
+
+{{< math.inline >}}
+{{ if or .Page.Params.math .Site.Params.math }}
+<!-- KaTeX -->
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
+<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script>
+<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
+{{ end }}
+{{</ math.inline >}}
+
+### Examples
+
+Inline math: $\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…$
+
+Block math:
+$$
+ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
+$$
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/index.ar.md b/themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/index.ar.md
new file mode 100644
index 0000000..b0328f4
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/index.ar.md
@@ -0,0 +1,32 @@
++++
+author = "Hugo Authors"
+title = "مثال نص"
+date = "2019-03-09"
+description = "هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة"
+categories = [
+ "تجربة",
+ "تجربة مع فراغات"
+]
+tags = [
+ "ماركداون",
+ "نص",
+ "وسم مع فراغات"
+]
+image = "matt-le-SJSpo9hQf7s-unsplash.jpg"
++++
+## فقرة 1
+
+هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من [مولد النص العربى](https://colorslab.com/textgator/)، حيث يمكنك أن تولد مثل هذا النص أو العديد من النصوص الأخرى إضافة إلى زيادة عدد الحروف التى يولدها التطبيق.
+إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد، النص لن يبدو مقسما ولا يحوي أخطاء لغوية، مولد النص العربى مفيد لمصممي المواقع على وجه الخصوص، حيث يحتاج العميل فى كثير من الأحيان أن يطلع على صورة حقيقية لتصميم الموقع.
+ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميل الشكل كاملاً،دور مولد النص العربى أن يوفر على المصمم عناء البحث عن نص بديل لا علاقة له بالموضوع الذى يتحدث عنه التصميم فيظهر بشكل لا يليق.
+هذا النص يمكن أن يتم تركيبه على أي تصميم دون مشكلة فلن يبدو وكأنه نص منسوخ، غير منظم، غير منسق، أو حتى غير مفهوم. لأنه مازال نصاً بديلاً ومؤقتاً.
+
+## فقرة 2
+
+هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من [مولد النص العربى](https://colorslab.com/textgator/)، حيث يمكنك أن تولد مثل هذا النص أو العديد من النصوص الأخرى إضافة إلى زيادة عدد الحروف التى يولدها التطبيق.
+إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد، النص لن يبدو مقسما ولا يحوي أخطاء لغوية، مولد النص العربى مفيد لمصممي المواقع على وجه الخصوص، حيث يحتاج العميل فى كثير من الأحيان أن يطلع على صورة حقيقية لتصميم الموقع.
+ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميل الشكل كاملاً،دور مولد النص العربى أن يوفر على المصمم عناء البحث عن نص بديل لا علاقة له بالموضوع الذى يتحدث عنه التصميم فيظهر بشكل لا يليق.
+هذا النص يمكن أن يتم تركيبه على أي تصميم دون مشكلة فلن يبدو وكأنه نص منسوخ، غير منظم، غير منسق، أو حتى غير مفهوم. لأنه مازال نصاً بديلاً ومؤقتاً.
+
+## تجربة RTL
+كلمة 1 Text كلمة 2
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/index.md b/themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/index.md
new file mode 100644
index 0000000..280197e
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/index.md
@@ -0,0 +1,51 @@
++++
+author = "Hugo Authors"
+title = "Placeholder Text"
+date = "2019-03-09"
+description = "Lorem Ipsum Dolor Si Amet"
+categories = [
+ "Test",
+ "Test with whitespaces"
+]
+tags = [
+ "markdown",
+ "text",
+ "tag with whitespaces"
+]
+image = "matt-le-SJSpo9hQf7s-unsplash.jpg"
++++
+
+Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
+
+1. Exierant elisi ambit vivere dedere
+2. Duce pollice
+3. Eris modo
+4. Spargitque ferrea quos palude
+
+Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
+
+1. Comas hunc haec pietate fetum procerum dixit
+2. Post torum vates letum Tiresia
+3. Flumen querellas
+4. Arcanaque montibus omnes
+5. Quidem et
+
+# Vagus elidunt
+
+<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
+
+[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
+
+## Mane refeci capiebant unda mulcebat
+
+Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
+
+Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
+
+Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
+
+{{< css.inline >}}
+<style>
+.canon { background: white; width: 100%; height: auto; }
+</style>
+{{< /css.inline >}}
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/matt-le-SJSpo9hQf7s-unsplash.jpg b/themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/matt-le-SJSpo9hQf7s-unsplash.jpg
new file mode 100644
index 0000000..3b28790
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/placeholder-text/matt-le-SJSpo9hQf7s-unsplash.jpg
Binary files differ
diff --git a/themes/hugo-theme-stack/exampleSite/content/post/rich-content/index.md b/themes/hugo-theme-stack/exampleSite/content/post/rich-content/index.md
new file mode 100644
index 0000000..1ebb564
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/content/post/rich-content/index.md
@@ -0,0 +1,67 @@
++++
+author = "Hugo Authors"
+title = "Rich Content"
+date = "2019-03-10"
+description = "A brief description of Hugo Shortcodes"
+tags = [
+ "shortcodes",
+ "privacy",
+]
++++
+
+Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
+<!--more-->
+---
+
+## YouTube Privacy Enhanced Shortcode
+
+{{< youtube ZJthWmvUzzc >}}
+
+<br>
+
+---
+
+## Twitter Simple Shortcode
+
+{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
+
+<br>
+
+---
+
+## Vimeo Simple Shortcode
+
+{{< vimeo_simple 48912912 >}}
+
+## bilibilibi Shortcode
+
+{{< bilibili av498363026 >}}
+
+## Gist Shortcode
+
+{{< gist spf13 7896402 >}}
+
+## Gitlab Snippets Shortcode
+
+{{< gitlab 2349278 >}}
+
+## Quote Shortcode
+
+Stack adds a `quote` shortcode. For example:
+
+{{< quote author="A famous person" source="The book they wrote" url="https://en.wikipedia.org/wiki/Book">}}
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+{{< /quote >}}
+
+{{< quote source="Anonymous book" url="https://en.wikipedia.org/wiki/Book">}}
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+{{< /quote >}}
+
+{{< quote source="Some book">}}
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+{{< /quote >}}
+
+{{< quote author="Somebody">}}
+Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+{{< /quote >}}
+
diff --git a/themes/hugo-theme-stack/exampleSite/hugo.yaml b/themes/hugo-theme-stack/exampleSite/hugo.yaml
new file mode 100644
index 0000000..7cda528
--- /dev/null
+++ b/themes/hugo-theme-stack/exampleSite/hugo.yaml
@@ -0,0 +1,269 @@
+baseurl: https://example.com/
+languageCode: en-us
+theme: hugo-theme-stack
+title: Example Site
+copyright: Example Person
+
+# Theme i18n support
+# Available values: ar, bn, ca, de, el, en, es, fr, hu, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw
+DefaultContentLanguage: en
+
+# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
+# This will make .Summary and .WordCount behave correctly for CJK languages.
+hasCJKLanguage: false
+
+languages:
+ en:
+ languageName: English
+ title: Example Site
+ weight: 1
+ params:
+ sidebar:
+ subtitle: Example description
+ zh-cn:
+ languageName: 中文
+ title: 演示站点
+ weight: 2
+ params:
+ sidebar:
+ subtitle: 演示说明
+ ar:
+ languageName: عربي
+ languagedirection: rtl
+ title: موقع تجريبي
+ weight: 3
+ params:
+ sidebar:
+ subtitle: وصف تجريبي
+
+services:
+ # Change it to your Disqus shortname before using
+ disqus:
+ shortname: "hugo-theme-stack"
+ # GA Tracking ID
+ googleAnalytics:
+ id:
+
+pagination:
+ pagerSize: 3
+
+permalinks:
+ post: /p/:slug/
+ page: /:slug/
+
+params:
+ mainSections:
+ - post
+ featuredImageField: image
+ rssFullContent: true
+ favicon: # e.g.: favicon placed in `static/favicon.ico` of your site folder, then set this field to `/favicon.ico` (`/` is necessary)
+
+ footer:
+ since: 2020
+ customText:
+
+ dateFormat:
+ published: Jan 02, 2006
+ lastUpdated: Jan 02, 2006 15:04 MST
+
+ sidebar:
+ emoji: 🍥
+ subtitle: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ avatar:
+ enabled: true
+ local: true
+ src: img/avatar.png
+
+ article:
+ math: false
+ toc: true
+ readingTime: true
+ license:
+ enabled: true
+ default: Licensed under CC BY-NC-SA 4.0
+
+ comments:
+ enabled: true
+ provider: disqus
+
+ disqusjs:
+ shortname:
+ apiUrl:
+ apiKey:
+ admin:
+ adminLabel:
+
+ utterances:
+ repo:
+ issueTerm: pathname
+ label:
+
+ beaudar:
+ repo:
+ issueTerm: pathname
+ label:
+ theme:
+
+ remark42:
+ host:
+ site:
+ locale:
+
+ vssue:
+ platform:
+ owner:
+ repo:
+ clientId:
+ clientSecret:
+ autoCreateIssue: false
+
+ # Waline client configuration see: https://waline.js.org/en/reference/component.html
+ waline:
+ serverURL:
+ lang:
+ pageview:
+ emoji:
+ - https://unpkg.com/@waline/emojis@1.0.1/weibo
+ requiredMeta:
+ - name
+ - email
+ - url
+ locale:
+ admin: Admin
+ placeholder:
+
+ twikoo:
+ envId:
+ region:
+ path:
+ lang:
+
+ # See https://cactus.chat/docs/reference/web-client/#configuration for description of the various options
+ cactus:
+ defaultHomeserverUrl: "https://matrix.cactus.chat:8448"
+ serverName: "cactus.chat"
+ siteName: "" # You must insert a unique identifier here matching the one you registered (See https://cactus.chat/docs/getting-started/quick-start/#register-your-site)
+
+ giscus:
+ repo:
+ repoID:
+ category:
+ categoryID:
+ mapping:
+ lightTheme:
+ darkTheme:
+ reactionsEnabled: 1
+ emitMetadata: 0
+
+ gitalk:
+ owner:
+ admin:
+ repo:
+ clientID:
+ clientSecret:
+ proxy:
+
+ cusdis:
+ host:
+ id:
+ widgets:
+ homepage:
+ - type: search
+ - type: archives
+ params:
+ limit: 5
+ - type: categories
+ params:
+ limit: 10
+ - type: tag-cloud
+ params:
+ limit: 10
+ page:
+ - type: toc
+
+ opengraph:
+ twitter:
+ # Your Twitter username
+ site:
+
+ # Available values: summary, summary_large_image
+ card: summary_large_image
+
+ defaultImage:
+ opengraph:
+ enabled: false
+ local: false
+ src:
+
+ colorScheme:
+ # Display toggle
+ toggle: true
+
+ # Available values: auto, light, dark
+ default: auto
+
+ imageProcessing:
+ cover:
+ enabled: true
+ content:
+ enabled: true
+
+### Custom menu
+### See https://stack.jimmycai.com/config/menu
+### To remove about, archive and search page menu item, remove `menu` field from their FrontMatter
+menu:
+ main: []
+
+ social:
+ - identifier: github
+ name: GitHub
+ url: https://github.com/CaiJimmy/hugo-theme-stack
+ params:
+ icon: brand-github
+
+ - identifier: twitter
+ name: Twitter
+ url: https://twitter.com
+ params:
+ icon: brand-twitter
+
+related:
+ includeNewer: true
+ threshold: 60
+ toLower: false
+ indices:
+ - name: tags
+ weight: 100
+
+ - name: categories
+ weight: 200
+
+markup:
+ goldmark:
+ extensions:
+ passthrough:
+ enable: true
+ delimiters:
+ block:
+ - - \[
+ - \]
+ - - $$
+ - $$
+ inline:
+ - - \(
+ - \)
+ renderer:
+ ## Set to true if you have HTML content inside Markdown
+ unsafe: true
+ tableOfContents:
+ endLevel: 4
+ ordered: true
+ startLevel: 2
+ highlight:
+ noClasses: false
+ codeFences: true
+ guessSyntax: true
+ lineNoStart: 1
+ lineNos: true
+ lineNumbersInTable: true
+ tabWidth: 4
diff --git a/themes/hugo-theme-stack/go.mod b/themes/hugo-theme-stack/go.mod
new file mode 100644
index 0000000..63df635
--- /dev/null
+++ b/themes/hugo-theme-stack/go.mod
@@ -0,0 +1,3 @@
+module github.com/CaiJimmy/hugo-theme-stack/v3
+
+go 1.17
diff --git a/themes/hugo-theme-stack/i18n/ar.yaml b/themes/hugo-theme-stack/i18n/ar.yaml
new file mode 100644
index 0000000..63101aa
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/ar.yaml
@@ -0,0 +1,74 @@
+toggleMenu:
+ other: اخفي القائمة
+
+darkMode:
+ other: الوضع الداكن
+
+list:
+ page:
+ one: "{{ .Count }} صفحه"
+ other: "{{ .Count }} صفحات"
+
+ section:
+ other: قسم
+
+ subsection:
+ one: قسم فرعي
+ other: اقسام فرعية
+
+article:
+ back:
+ other: خلف
+
+ tableOfContents:
+ other: جدول المحتويات
+
+ relatedContent:
+ other: محتوى مشابهه
+
+ lastUpdatedOn:
+ other: التعديل الاخير
+
+ readingTime:
+ one: "تُقرأ خلال دقيقة"
+ other: "تُقرأ خلال {{ .Count }} دقائق"
+
+notFound:
+ title:
+ other: غير موجود
+
+ subtitle:
+ other: تعذر العثور على الصفحة المطلوبة.
+
+widget:
+ archives:
+ title:
+ other: الارشيفات
+
+ more:
+ other: اكثر
+
+ tagCloud:
+ title:
+ other: وسوم
+
+ categoriesCloud:
+ title:
+ other: التصنيفات
+
+search:
+ title:
+ other: بحث
+
+ placeholder:
+ other: اكتب...
+
+ resultTitle:
+ other: "#PAGES_COUNT نتيجة (#TIME_SECONDS ثواني)"
+
+footer:
+ builtWith:
+ other: "مبني بستخدام {{ .Generator }}"
+
+ designedBy:
+ other: "قالب {{ .Theme }} مصمم من {{ .DesignedBy }}"
diff --git a/themes/hugo-theme-stack/i18n/be.yaml b/themes/hugo-theme-stack/i18n/be.yaml
new file mode 100644
index 0000000..605cd08
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/be.yaml
@@ -0,0 +1,72 @@
+toggleMenu:
+ other: Паказаць/схаваць меню
+
+darkMode:
+ other: Цёмны рэжым
+
+list:
+ page:
+ one: "{{ .Count }} старонка"
+ few: "{{ .Count }} старонкі"
+ many: "{{ .Count }} старонак"
+ other: "{{ .Count }} старонкі"
+
+ section:
+ other: Раздзел
+
+ subsection:
+ one: Падраздзел
+ few: Падраздзелы
+ many: Падраздзелы
+ other: Падраздзелы
+
+article:
+ back:
+ other: Назад
+
+ relatedContent:
+ other: Таксама рэкамендуем
+
+ lastUpdatedOn:
+ other: Абноўлена
+
+ tableOfContents:
+ other: Змест
+
+ readingTime:
+ other: "Час чытання: {{ .Count }} хв."
+
+notFound:
+ title:
+ other: Не знойдзена
+
+ subtitle:
+ other: Запытваемая старонка не існуе
+
+widget:
+ archives:
+ title:
+ other: Архівы
+ more:
+ other: Яшчэ
+
+ tagCloud:
+ title:
+ other: Тэгі
+
+search:
+ title:
+ other: Пошук
+
+ placeholder:
+ other: Увядзіце нешта...
+
+ resultTitle:
+ other: "Знайдзена #PAGES_COUNT старонак (за #TIME_SECONDS с.)"
+
+footer:
+ builtWith:
+ other: Створана пры дапамозе {{ .Generator }}
+
+ designedBy:
+ other: Тэма {{ .Theme }}, дызайн {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/bg.yaml b/themes/hugo-theme-stack/i18n/bg.yaml
new file mode 100644
index 0000000..cf64a56
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/bg.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: Покажи Меню
+
+darkMode:
+ other: Тъмен Режим
+
+list:
+ page:
+ one: "{{ .Count }} страница"
+ other: "{{ .Count }} страници"
+
+ section:
+ other: Секция
+
+ subsection:
+ one: Подсекция
+ other: Подсекции
+
+article:
+ back:
+ other: Назад
+
+ tableOfContents:
+ other: Съдържание
+
+ relatedContent:
+ other: Свързано Съдържание
+
+ lastUpdatedOn:
+ other: Последна промяна на
+
+ readingTime:
+ one: "{{ .Count }} minute read"
+ other: "{{ .Count }} minute read"
+
+notFound:
+ title:
+ other: Не е намерено
+
+ subtitle:
+ other: Страницата която търсите не е открита
+
+widget:
+ archives:
+ title:
+ other: Архиви
+
+ more:
+ other: Повече
+
+ tagCloud:
+ title:
+ other: Тагове
+ categoriesCloud:
+ title:
+ other: Категории
+
+search:
+ title:
+ other: Търсене
+
+ placeholder:
+ other: Напишете нещо...
+
+ resultTitle:
+ other: "#PAGES_COUNT страници (#TIME_SECONDS секунди)"
+
+footer:
+ builtWith:
+ other: Създадено с {{ .Generator }}
+
+ designedBy:
+ other: Тема {{ .Theme }} създадена от {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/bn.yaml b/themes/hugo-theme-stack/i18n/bn.yaml
new file mode 100644
index 0000000..36f25a3
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/bn.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: টগল মেনু
+
+darkMode:
+ other: ডার্ক মোড
+
+list:
+ page:
+ one: "{{ .Count }} পাতা"
+ other: "{{ .Count }} পাতা"
+
+ section:
+ other: অনুচ্ছেদ
+
+ subsection:
+ one: উপ-অনুচ্ছেদ
+ other: উপ-অনুচ্ছেদ
+
+article:
+ back:
+ other: পেছনে
+
+ tableOfContents:
+ other: সূচিপত্র
+
+ relatedContent:
+ other: সম্পর্কিত বিষয়বস্তু
+
+ lastUpdatedOn:
+ other: সর্বশেষ আপডেট করা হয়েছে
+
+ readingTime:
+ one: "{{ .Count }} মিনিটে পড়া যাবে"
+ other: "{{ .Count }} মিনিটে পড়া যাবে"
+
+notFound:
+ title:
+ other: পাওয়া যায়নি
+
+ subtitle:
+ other: এই পাতাটি বিদ্যমান নেই
+
+widget:
+ archives:
+ title:
+ other: আর্কাইভ
+
+ more:
+ other: আরও
+
+ tagCloud:
+ title:
+ other: ট্যাগ
+ categoriesCloud:
+ title:
+ other: বিভাগ
+
+search:
+ title:
+ other: অনুসন্ধান
+
+ placeholder:
+ other: কিছু টাইপ করুন...
+
+ resultTitle:
+ other: "#PAGES_COUNT পাতা (#TIME_SECONDS সেকেন্ড)"
+
+footer:
+ builtWith:
+ other: "{{ .Generator }} দিয়ে নির্মিত"
+
+ designedBy:
+ other: "থিম {{ .Theme }} ডিজাইন করেছেন {{ .DesignedBy }}"
diff --git a/themes/hugo-theme-stack/i18n/ca.yaml b/themes/hugo-theme-stack/i18n/ca.yaml
new file mode 100644
index 0000000..af4167e
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/ca.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: Toggle Menu
+
+darkMode:
+ other: Mode fosc
+
+list:
+ page:
+ one: "{{ .Count }} pàgina"
+ other: "{{ .Count }} pàgines"
+
+ section:
+ other: Secció
+
+ subsection:
+ one: Subsecció
+ other: Subseccions
+
+article:
+ back:
+ other: Tornar
+
+ tableOfContents:
+ other: Taula de contingut
+
+ relatedContent:
+ other: Continguts relacionats
+
+ lastUpdatedOn:
+ other: Última vegada actualitzat
+
+ readingTime:
+ one: "{{ .Count }} minut a llegir"
+ other: "{{ .Count }} minuts a llegir"
+
+notFound:
+ title:
+ other: No Trobat
+
+ subtitle:
+ other: Aquesta pàgina no existeix
+
+widget:
+ archives:
+ title:
+ other: Arxiu
+
+ more:
+ other: Més
+
+ tagCloud:
+ title:
+ other: Etiquetes
+ categoriesCloud:
+ title:
+ other: Categories
+
+search:
+ title:
+ other: Cerca
+
+ placeholder:
+ other: Tecleja alguna cosa...
+
+ resultTitle:
+ other: "#PAGES_COUNT pàgines en (#TIME_SECONDS segons)"
+
+footer:
+ builtWith:
+ other: Creat amb {{ .Generator }}
+
+ designedBy:
+ other: Tema {{ .Theme }} dissenyat per {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/cs.yaml b/themes/hugo-theme-stack/i18n/cs.yaml
new file mode 100644
index 0000000..7b9b519
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/cs.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: Skrýt menu
+
+darkMode:
+ other: Tmavý režim
+
+list:
+ page:
+ one: "{{ .Count }} stránka"
+ other: "{{ .Count }} stránek"
+
+ section:
+ other: Kategorie
+
+ subsection:
+ one: Podkategorie
+ other: Podkategorie
+
+article:
+ back:
+ other: Zpět
+
+ tableOfContents:
+ other: Obsah
+
+ relatedContent:
+ other: Související
+
+ lastUpdatedOn:
+ other: Naposledy aktualizováno
+
+ readingTime:
+ one: "{{ .Count }} minuta"
+ other: "{{ .Count }} minut"
+
+notFound:
+ title:
+ other: Nenalezeno
+
+ subtitle:
+ other: Tato stránka neexistuje
+
+widget:
+ archives:
+ title:
+ other: Archivy
+
+ more:
+ other: Více
+
+ tagCloud:
+ title:
+ other: Štítky
+ categoriesCloud:
+ title:
+ other: Kategorie
+
+search:
+ title:
+ other: Hledat
+
+ placeholder:
+ other: Zadejte něco...
+
+ resultTitle:
+ other: "#PAGES_COUNT stránek (#TIME_SECONDS sekund)"
+
+footer:
+ builtWith:
+ other: Vytvořeno pomocí {{ .Generator }}
+
+ designedBy:
+ other: Šablona {{ .Theme }} od {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/de.yaml b/themes/hugo-theme-stack/i18n/de.yaml
new file mode 100644
index 0000000..7ab5b56
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/de.yaml
@@ -0,0 +1,74 @@
+toggleMenu:
+ other: Menü umschalten
+
+darkMode:
+ other: Dunkler Modus
+
+list:
+ page:
+ one: "{{ .Count }} Seite"
+ other: "{{ .Count }} Seiten"
+
+ section:
+ other: Abschnitt
+
+ subsection:
+ one: Unterabschnitt
+ other: Unterabschnitte
+
+article:
+ back:
+ other: Zurück
+
+ tableOfContents:
+ other: Inhaltsverzeichnis
+
+ relatedContent:
+ other: Verwandte Inhalte
+
+ lastUpdatedOn:
+ other: Zuletzt aktualisiert am
+
+ readingTime:
+ one: "{{ .Count }} Minute Lesezeit"
+ other: "{{ .Count }} Minuten Lesezeit"
+
+notFound:
+ title:
+ other: Seite nicht gefunden
+
+ subtitle:
+ other: Diese Seite existiert nicht
+
+widget:
+ archives:
+ title:
+ other: Archiv
+
+ more:
+ other: Weitere
+
+ tagCloud:
+ title:
+ other: Schlagwörter
+
+ categoriesCloud:
+ title:
+ other: Kategorien
+
+search:
+ title:
+ other: Suche
+
+ placeholder:
+ other: Etwas tippen...
+
+ resultTitle:
+ other: "#PAGES_COUNT Seiten (#TIME_SECONDS Sekunden)"
+
+footer:
+ builtWith:
+ other: Erstellt mit {{ .Generator }}
+
+ designedBy:
+ other: Theme {{ .Theme }} gestaltet von {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/el.yaml b/themes/hugo-theme-stack/i18n/el.yaml
new file mode 100644
index 0000000..27a147d
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/el.yaml
@@ -0,0 +1,70 @@
+toggleMenu:
+ other: Εναλλαγή Μενού
+
+darkMode:
+ other: Σκοτεινό θέμα
+
+list:
+ page:
+ one: "{{ .Count }} σελιδα"
+ other: "{{ .Count }} σελιδες"
+
+ section:
+ other: Ενότητα
+
+ subsection:
+ one: Υποενότητα
+ other: Υποενότητες
+
+article:
+ back:
+ other: Πισω
+
+ tableOfContents:
+ other: Πινακας περιεχομενων
+
+ relatedContent:
+ other: Σχετικο περιεχομενο
+
+ lastUpdatedOn:
+ other: Τελευταια τροποποιηση στις
+
+ readingTime:
+ one: "{{ .Count }} λεπτό ανάγνωσης"
+ ### Seems that there's no need to add 's' even if it's plural in English
+ other: "{{ .Count }} λεπτά ανάγνωσης"
+
+notFound:
+ title:
+ other: Δε βρέθηκε
+ subtitle:
+ other: Η σελίδα δε βρέθηκε.
+
+widget:
+ archives:
+ title:
+ other: Αρχειο
+
+ more:
+ other: Περισσότερα
+
+ tagCloud:
+ title:
+ other: Tags
+
+search:
+ title:
+ other: Αναζήτηση
+
+ placeholder:
+ other: Πληκτρολογήστε κάτι...
+
+ resultTitle:
+ other: "#PAGES_COUNT σελιδες (#TIME_SECONDS δευτερολεπτα)"
+
+footer:
+ builtWith:
+ other: Δημιουργήθηκε με τη χρήση {{ .Generator }}
+
+ designedBy:
+ other: Το θέμα {{ .Theme }} σχεδιάστηκε από το {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/en.yaml b/themes/hugo-theme-stack/i18n/en.yaml
new file mode 100644
index 0000000..fb07328
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/en.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: Toggle Menu
+
+darkMode:
+ other: Dark Mode
+
+list:
+ page:
+ one: "{{ .Count }} page"
+ other: "{{ .Count }} pages"
+
+ section:
+ other: Section
+
+ subsection:
+ one: Subsection
+ other: Subsections
+
+article:
+ back:
+ other: Back
+
+ tableOfContents:
+ other: Table of contents
+
+ relatedContent:
+ other: Related content
+
+ lastUpdatedOn:
+ other: Last updated on
+
+ readingTime:
+ one: "{{ .Count }} minute read"
+ other: "{{ .Count }} minute read"
+
+notFound:
+ title:
+ other: Not Found
+
+ subtitle:
+ other: This page does not exist
+
+widget:
+ archives:
+ title:
+ other: Archives
+
+ more:
+ other: More
+
+ tagCloud:
+ title:
+ other: Tags
+ categoriesCloud:
+ title:
+ other: Categories
+
+search:
+ title:
+ other: Search
+
+ placeholder:
+ other: Type something...
+
+ resultTitle:
+ other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
+
+footer:
+ builtWith:
+ other: Built with {{ .Generator }}
+
+ designedBy:
+ other: Theme {{ .Theme }} designed by {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/es.yaml b/themes/hugo-theme-stack/i18n/es.yaml
new file mode 100644
index 0000000..6b4b3af
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/es.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: Ocultar menú
+
+darkMode:
+ other: Modo oscuro
+
+list:
+ page:
+ one: "{{ .Count }} página"
+ other: "{{ .Count }} páginas"
+
+ section:
+ other: Sección
+
+ subsection:
+ one: Subsección
+ other: Subsecciones
+
+article:
+ back:
+ other: Volver
+
+ tableOfContents:
+ other: Tabla de contenido
+
+ relatedContent:
+ other: Contenidos relacionados
+
+ lastUpdatedOn:
+ other: Última actualización
+
+ readingTime:
+ one: "Tiempo de lectura {{ .Count }} minuto"
+ other: "Tiempo de lectura {{ .Count }} minutos"
+
+notFound:
+ title:
+ other: No Encontrado
+
+ subtitle:
+ other: Esta página no existe
+
+widget:
+ archives:
+ title:
+ other: Archivo
+
+ more:
+ other: Más
+
+ tagCloud:
+ title:
+ other: Etiquetas
+ categoriesCloud:
+ title:
+ other: Categorías
+
+search:
+ title:
+ other: Búsqueda
+
+ placeholder:
+ other: Escribe algo...
+
+ resultTitle:
+ other: "#PAGES_COUNT páginas en (#TIME_SECONDS segundos)"
+
+footer:
+ builtWith:
+ other: Creado con {{ .Generator }}
+
+ designedBy:
+ other: Tema {{ .Theme }} diseñado por {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/fa.yaml b/themes/hugo-theme-stack/i18n/fa.yaml
new file mode 100644
index 0000000..3655757
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/fa.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: منو
+
+darkMode:
+ other: حالت شب
+
+list:
+ page:
+ one: "{{ .Count }} صفحه"
+ other: "{{ .Count }} صفحه"
+
+ section:
+ other: بخش
+
+ subsection:
+ one: زیربخش
+ other: زیربخش
+
+article:
+ back:
+ other: قبلی
+
+ tableOfContents:
+ other: فهرست
+
+ relatedContent:
+ other: مطالب مرتبط
+
+ lastUpdatedOn:
+ other: آخرین بروزرسانی در
+
+ readingTime:
+ one: "مطالعه در {{ .Count }} دقیقه"
+ other: "مطالعه در {{ .Count }} دقیقه"
+
+notFound:
+ title:
+ other: یافت نشد
+
+ subtitle:
+ other: این صحه وجود ندارد
+
+widget:
+ archives:
+ title:
+ other: آرشیو
+
+ more:
+ other: بیشتر
+
+ tagCloud:
+ title:
+ other: تگ ها
+ categoriesCloud:
+ title:
+ other: دسته بندی
+
+search:
+ title:
+ other: جستجو
+
+ placeholder:
+ other: تایپ کنید ...
+
+ resultTitle:
+ other: "#PAGES_COUNT صفحه (#TIME_SECONDS ثانیه)"
+
+footer:
+ builtWith:
+ other: قدرت گرفته از {{ .Generator }}
+
+ designedBy:
+ other: قالب {{ .Theme }} ساخته شده توسط {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/fr.yaml b/themes/hugo-theme-stack/i18n/fr.yaml
new file mode 100644
index 0000000..4e6e1f8
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/fr.yaml
@@ -0,0 +1,72 @@
+toggleMenu:
+ other: Afficher le menu
+
+darkMode:
+ other: Mode sombre
+
+list:
+ page:
+ one: "{{ .Count }} page"
+ other: "{{ .Count }} pages"
+
+ section:
+ other: Section
+
+ subsection:
+ one: Sous-section
+ other: Sous-sections
+
+article:
+ back:
+ other: Retour
+
+ tableOfContents:
+ other: Table des matières
+
+ relatedContent:
+ other: Contenus liés
+
+ lastUpdatedOn:
+ other: Dernière mise à jour le
+
+ readingTime:
+ one: "{{ .Count }} minute de lecture"
+ other: "{{ .Count }} minutes de lecture"
+
+notFound:
+ title:
+ other: Page non trouvée
+ subtitle:
+ other: Cette page n'existe pas.
+
+widget:
+ archives:
+ title:
+ other: Archives
+
+ more:
+ other: Autres
+
+ tagCloud:
+ title:
+ other: Mots clés
+ categoriesCloud:
+ title:
+ other: Catégories
+
+search:
+ title:
+ other: Rechercher
+
+ placeholder:
+ other: Cherchez un article, une publication, etc.
+
+ resultTitle:
+ other: "#PAGES_COUNT pages (#TIME_SECONDS secondes)"
+
+footer:
+ builtWith:
+ other: Généré avec {{ .Generator }}
+
+ designedBy:
+ other: Thème {{ .Theme }} conçu par {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/hi.yaml b/themes/hugo-theme-stack/i18n/hi.yaml
new file mode 100644
index 0000000..27316fe
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/hi.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: मेनू टॉगल करें
+
+darkMode:
+ other: डार्क मोड
+
+list:
+ page:
+ one: "{{ .Count }} पेज"
+ other: "{{ .Count }} पेज"
+
+ section:
+ other: अनुभाग
+
+ subsection:
+ one: उपधारा
+ other: उपखंड
+
+article:
+ back:
+ other: पीछे
+
+ tableOfContents:
+ other: विषयसूची
+
+ relatedContent:
+ other: संबंधित सामग्री
+
+ lastUpdatedOn:
+ other: अंतिम बार अपडेट किया गया
+
+ readingTime:
+ one: "{{ .Count }} मिनट पढ़ें"
+ other: "{{ .Count }} मिनट पढ़ें"
+
+notFound:
+ title:
+ other: 404 नहीं मिला।
+
+ subtitle:
+ other: यह पृष्ठ मौजूद नहीं है।
+
+widget:
+ archives:
+ title:
+ other: अभिलेखागार
+
+ more:
+ other: अधिक
+
+ tagCloud:
+ title:
+ other: टैग
+ categoriesCloud:
+ title:
+ other: श्रेणियाँ
+
+search:
+ title:
+ other: खोज
+
+ placeholder:
+ other: कुछ लिखें...
+
+ resultTitle:
+ other: "#PAGES_COUNT पेज (#TIME_SECONDS सेकंड)"
+
+footer:
+ builtWith:
+ other: निर्मित {{ .Generator }} के साथ
+
+ designedBy:
+ other: थीम {{ .Theme }} द्वारा डिज़ाइन किया गया {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/hu.yaml b/themes/hugo-theme-stack/i18n/hu.yaml
new file mode 100644
index 0000000..5e5af92
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/hu.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: Menü Kapcsolása
+
+darkMode:
+ other: Sötét Mód
+
+list:
+ page:
+ one: "{{ .Count }} oldal"
+ other: "{{ .Count }} oldalak"
+
+ section:
+ other: Szekció
+
+ subsection:
+ one: Alszekció
+ other: Alszekciók
+
+article:
+ back:
+ other: Vissza
+
+ tableOfContents:
+ other: Tartalomjegyzék
+
+ relatedContent:
+ other: Kapcsolódó tartalom
+
+ lastUpdatedOn:
+ other: Utolsó frissítés időpontja
+
+ readingTime:
+ one: "{{ .Count }} percnyi olvasmány"
+ other: "{{ .Count }} percnyi olvasmány"
+
+notFound:
+ title:
+ other: Nem található
+
+ subtitle:
+ other: Ez az oldal nem létezik
+
+widget:
+ archives:
+ title:
+ other: Archívum
+
+ more:
+ other: Több
+
+ tagCloud:
+ title:
+ other: Cimkék
+ categoriesCloud:
+ title:
+ other: Kategóriák
+
+search:
+ title:
+ other: Keresés
+
+ placeholder:
+ other: Írj valamit...
+
+ resultTitle:
+ other: "#PAGES_COUNT oldal (#TIME_SECONDS másodperc alatt)"
+
+footer:
+ builtWith:
+ other: "{{ .Generator }} használatával készült"
+
+ designedBy:
+ other: A {{ .Theme }} dizájnt {{ .DesignedBy }} tervezte
diff --git a/themes/hugo-theme-stack/i18n/id.yaml b/themes/hugo-theme-stack/i18n/id.yaml
new file mode 100644
index 0000000..8104351
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/id.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: Tampilkan Menu
+
+darkMode:
+ other: Mode Gelap
+
+list:
+ page:
+ one: "{{ .Count }} halaman"
+ other: "{{ .Count }} halaman"
+
+ section:
+ other: Bagian
+
+ subsection:
+ one: Subbagian
+ other: Subbagian
+
+article:
+ back:
+ other: Kembali
+
+ tableOfContents:
+ other: Daftar Isi
+
+ relatedContent:
+ other: Konten terkait
+
+ lastUpdatedOn:
+ other: Terakhir diperbarui pada
+
+ readingTime:
+ one: "Waktu Membaca: {{ .Count }} menit"
+ other: "Waktu Membaca: {{ .Count }} menit"
+
+notFound:
+ title:
+ other: Tidak ditemukan
+ subtitle:
+ other: Halaman yang Anda akses tidak ditemukan.
+
+widget:
+ archives:
+ title:
+ other: Arsip
+
+ more:
+ other: Lebih
+
+ tagCloud:
+ title:
+ other: Tag
+
+ categoriesCloud:
+ title:
+ other: Kategori
+
+search:
+ title:
+ other: Cari
+
+ placeholder:
+ other: Ketik sesuatu...
+
+ resultTitle:
+ other: "#PAGES_COUNT halaman (#TIME_SECONDS detik)"
+
+footer:
+ builtWith:
+ other: Dibangun dengan {{ .Generator }}
+
+ designedBy:
+ other: Tema {{ .Theme }} dirancang oleh {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/it.yaml b/themes/hugo-theme-stack/i18n/it.yaml
new file mode 100644
index 0000000..0cbeeab
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/it.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: Toggle Menu
+
+darkMode:
+ other: Dark Mode
+
+list:
+ page:
+ one: "{{ .Count }} pagina"
+ other: "{{ .Count }} pagine"
+
+ section:
+ other: Sezione
+
+ subsection:
+ one: Sottosezione
+ other: Sottosezioni
+
+article:
+ back:
+ other: Indietro
+
+ tableOfContents:
+ other: Indice
+
+ relatedContent:
+ other: Contenuti correlati
+
+ lastUpdatedOn:
+ other: Aggiornato il
+
+ readingTime:
+ one: "{{ .Count }} min per leggere"
+ other: "{{ .Count }} min per leggere"
+
+notFound:
+ title:
+ other: Non trovato
+ subtitle:
+ other: Questa pagina non esiste.
+
+widget:
+ archives:
+ title:
+ other: Archivi
+
+ more:
+ other: Di più
+
+ tagCloud:
+ title:
+ other: Tags
+
+ categoriesCloud:
+ title:
+ other: Categorie
+
+search:
+ title:
+ other: Cerca
+
+ placeholder:
+ other: Scrivi qualcosa...
+
+ resultTitle:
+ other: "#PAGES_COUNT pagine (#TIME_SECONDS secondi)"
+
+footer:
+ builtWith:
+ other: Realizzato con {{ .Generator }}
+
+ designedBy:
+ other: Tema {{ .Theme }} realizzato da {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/ja.yaml b/themes/hugo-theme-stack/i18n/ja.yaml
new file mode 100644
index 0000000..12352ee
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/ja.yaml
@@ -0,0 +1,70 @@
+toggleMenu:
+ other: メニューを開く・閉じる
+
+darkMode:
+ other: ダークモード
+
+list:
+ page:
+ other: "{{ .Count }} ページ目"
+
+ section:
+ other: セクション
+
+ subsection:
+ other: サブセクション
+
+article:
+ back:
+ other: 前のページ
+
+ tableOfContents:
+ other: 目次
+
+ relatedContent:
+ other: 関連するコンテンツ
+
+ lastUpdatedOn:
+ other: 最終更新
+
+ readingTime:
+ other: "読了時間: {{ .Count }}分"
+
+notFound:
+ title:
+ other: 404 Not Found
+ subtitle:
+ other: 指定されたページは存在しません。
+
+widget:
+ archives:
+ title:
+ other: アーカイブ
+
+ more:
+ other: さらに見る
+
+ tagCloud:
+ title:
+ other: タグ
+
+ categoriesCloud:
+ title:
+ other: カテゴリ
+
+search:
+ title:
+ other: 検索
+
+ placeholder:
+ other: 入力...
+
+ resultTitle:
+ other: "#PAGES_COUNT 件 (#TIME_SECONDS 秒)"
+
+footer:
+ builtWith:
+ other: "{{ .Generator }} で構築されています。"
+
+ designedBy:
+ other: テーマ {{ .Theme }} は {{ .DesignedBy }} によって設計されています。
diff --git a/themes/hugo-theme-stack/i18n/ko.yaml b/themes/hugo-theme-stack/i18n/ko.yaml
new file mode 100644
index 0000000..11cdc4a
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/ko.yaml
@@ -0,0 +1,72 @@
+toggleMenu:
+ other: 메뉴 여닫기
+
+darkMode:
+ other: 다크 모드
+
+list:
+ page:
+ one: "{{ .Count }} 페이지"
+ other: "{{ .Count }} 페이지"
+
+ section:
+ other: 섹션
+
+ subsection:
+ one: 서브섹션
+ other: 서브섹션
+
+article:
+ back:
+ other: 뒤로가기
+
+ tableOfContents:
+ other: 목차
+
+ relatedContent:
+ other: 관련 글
+
+ lastUpdatedOn:
+ other: "마지막 수정: "
+
+ readingTime:
+ one: "{{ .Count }} 분 정도"
+ other: "{{ .Count }} 분 정도"
+
+notFound:
+ title:
+ other: 찾을 수 없음
+
+ subtitle:
+ other: 페이지를 찾을 수 없습니다.
+
+widget:
+ archives:
+ title:
+ other: 보관함
+ more:
+ other: 더보기
+
+ categoriesCloud:
+ title:
+ other: 카테고리
+
+ tagCloud:
+ title:
+ other: 태그
+
+search:
+ title:
+ other: 검색
+
+ placeholder:
+ other: 검색어를 입력하세요...
+
+ resultTitle:
+ other: "#PAGES_COUNT 페이지 (#TIME_SECONDS 초)"
+
+footer:
+ builtWith:
+ other: "{{ .Generator }}로 만듦"
+ designedBy:
+ other: "{{ .DesignedBy }}의 {{ .Theme }} 테마 사용 중"
diff --git a/themes/hugo-theme-stack/i18n/nl.yaml b/themes/hugo-theme-stack/i18n/nl.yaml
new file mode 100644
index 0000000..b5bf264
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/nl.yaml
@@ -0,0 +1,59 @@
+toggleMenu:
+ other: Open Menu
+
+darkMode:
+ other: Donkere modus
+
+list:
+ page:
+ one: "{{ .Count }} pagina"
+ other: "{{ .Count }} pagina's"
+
+ section:
+ other: Sectie
+
+ subsection:
+ one: Subsectie
+ other: Subsecties
+
+article:
+ relatedContent:
+ other: Gerelateerde inhoud
+ lastUpdatedOn:
+ other: Laatst bijgewerkt op
+ readingTime:
+ other: "{{ .Count }} leestijd"
+
+notFound:
+ title:
+ other: Niet gevonden
+ subtitle:
+ other: Deze pagina bestaat niet.
+
+widget:
+ archives:
+ title:
+ other: Archief
+ more:
+ other: Meer
+ tagCloud:
+ title:
+ other: Tags
+
+ categoriesCloud:
+ title:
+ other: Categorie
+
+search:
+ title:
+ other: Zoeken
+ placeholder:
+ other: Typ iets
+ resultTitle:
+ other: "#PAGES_COUNT pagina's (#TIME_SECONDS seconden)"
+
+footer:
+ builtWith:
+ other: Gemaakt met {{ .Generator }}
+ designedBy:
+ other: Theme {{ .Theme }} ontworpen door {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/oc.yaml b/themes/hugo-theme-stack/i18n/oc.yaml
new file mode 100644
index 0000000..1415350
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/oc.yaml
@@ -0,0 +1,72 @@
+toggleMenu:
+ other: Alternar menú
+
+darkMode:
+ other: Mòde fosc
+
+list:
+ page:
+ one: "{{ .Count }} pagina"
+ other: "{{ .Count }} paginas"
+
+ section:
+ other: Seccion
+
+ subsection:
+ one: Josseccion
+ other: Josseccions
+
+article:
+ back:
+ other: Tornar
+
+ tableOfContents:
+ other: Taula de contengut
+
+ relatedContent:
+ other: Contenguts relacionats
+
+ lastUpdatedOn:
+ other: Darrièra actualizacion
+ readingTime:
+ one: "{{ .Count }} minuta de lectura"
+ other: "{{ .Count }} minutas de lectura"
+
+notFound:
+ title:
+ other: Non trobat
+
+ subtitle:
+ other: Aquesta pagina existís pas
+
+widget:
+ archives:
+ title:
+ other: Archiu
+
+ more:
+ other: Mai
+
+ tagCloud:
+ title:
+ other: Etiquetas
+ categoriesCloud:
+ title:
+ other: Categorias
+
+search:
+ title:
+ other: Cercar
+
+ placeholder:
+ other: Picatz quicòm...
+
+ resultTitle:
+ other: "#PAGES_COUNT paginas dins (#TIME_SECONDS segons)"
+
+footer:
+ builtWith:
+ other: Creat amb {{ .Generator }}
+
+ designedBy:
+ other: Tàma {{ .Theme }} concebut per {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/pl.yaml b/themes/hugo-theme-stack/i18n/pl.yaml
new file mode 100644
index 0000000..9f2982f
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/pl.yaml
@@ -0,0 +1,82 @@
+toggleMenu:
+ other: Przełącz Menu
+
+darkMode:
+ other: Tryb ciemny
+
+list:
+ page:
+ one: "{{ .Count }} strona"
+ few: "{{ .Count }} strony"
+ many: "{{ .Count }} stron"
+ other: "{{ .Count }} stron"
+
+ section:
+ other: Sekcja
+
+ subsection:
+ one: Podsekcja
+ few: Podsekcje
+ many: Podsekcji
+ other: Podsekcji
+
+article:
+ back:
+ other: Wróć
+
+ tableOfContents:
+ other: Spis treści
+
+ relatedContent:
+ other: Powiązane artykuły
+
+ lastUpdatedOn:
+ other: Ostatnio zaktualizowany
+
+ readingTime:
+ one: "Przeczytasz w {{ .Count }} minutę"
+ few: "Przeczytasz w {{ .Count }} minuty"
+ many: "Przeczytasz w {{ .Count }} minut"
+ other: "Przeczytasz w {{ .Count }} minut"
+
+notFound:
+ title:
+ other: Nie znaleziono
+ subtitle:
+ other: Ta strona nie istnieje
+
+widget:
+ archives:
+ title:
+ other: Archiwum
+
+ more:
+ other: Więcej
+
+ tagCloud:
+ title:
+ other: Tagi
+
+ categoriesCloud:
+ title:
+ other: Kategorie
+
+search:
+ title:
+ other: Szukaj
+
+ placeholder:
+ other: Wpisz coś...
+
+ resultTitle:
+ one: "#PAGES_COUNT strona (#TIME_SECONDS sekund)"
+ few: "#PAGES_COUNT strony (#TIME_SECONDS sekund)"
+ many: "#PAGES_COUNT stron (#TIME_SECONDS sekund)"
+ other: "#PAGES_COUNT stron (#TIME_SECONDS sekund)"
+
+footer:
+ builtWith:
+ other: Zbudowano z {{ .Generator }}
+
+ designedBy:
+ other: Motyw {{ .Theme }} zaprojektowany przez {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/pt-br.yaml b/themes/hugo-theme-stack/i18n/pt-br.yaml
new file mode 100644
index 0000000..2784f3d
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/pt-br.yaml
@@ -0,0 +1,67 @@
+toggleMenu:
+ other: Alternar Menu
+
+darkMode:
+ other: Modo Escuro
+
+list:
+ page:
+ one: "{{ .Count }} página"
+ other: "{{ .Count }} páginas"
+
+ section:
+ other: Seção
+
+ subsection:
+ one: Subseção
+ other: Subseções
+
+article:
+ back:
+ other: Voltar
+
+ tableOfContents:
+ other: Índice
+
+ relatedContent:
+ other: Conteúdo relacionado
+
+ lastUpdatedOn:
+ other: Última atualização em
+
+ readingTime:
+ one: "{{ .Count }} minuto de leitura"
+ other: "{{ .Count }} minutos de leitura"
+
+notFound:
+ title:
+ other: Não Encontrado
+ subtitle:
+ other: Esta página não existe.
+
+widget:
+ archives:
+ title:
+ other: Arquivos
+ more:
+ other: Mais
+ tagCloud:
+ title:
+ other: Tags
+ categoriesCloud:
+ title:
+ other: Categorias
+
+search:
+ title:
+ other: Busca
+ placeholder:
+ other: Digite algo...
+ resultTitle:
+ other: "#PAGES_COUNT páginas (#TIME_SECONDS segundos)"
+
+footer:
+ builtWith:
+ other: Criado com {{ .Generator }}
+ designedBy:
+ other: Tema {{ .Theme }} desenvolvido por {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/pt-pt.yaml b/themes/hugo-theme-stack/i18n/pt-pt.yaml
new file mode 100644
index 0000000..f524969
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/pt-pt.yaml
@@ -0,0 +1,67 @@
+toggleMenu:
+ other: Alternar Menu
+
+darkMode:
+ other: Modo Escuro
+
+list:
+ page:
+ one: "{{ .Count }} página"
+ other: "{{ .Count }} páginas"
+
+ section:
+ other: Secção
+
+ subsection:
+ one: Subsecção
+ other: Subsecções
+
+article:
+ back:
+ other: Voltar
+
+ tableOfContents:
+ other: Índice
+
+ relatedContent:
+ other: Conteúdo relacionado
+
+ lastUpdatedOn:
+ other: Última atualização a
+
+ readingTime:
+ one: "{{ .Count }} minuto de leitura"
+ other: "{{ .Count }} minutos de leitura"
+
+notFound:
+ title:
+ other: Não Encontrado
+ subtitle:
+ other: Esta página não existe.
+
+widget:
+ archives:
+ title:
+ other: Arquivos
+ more:
+ other: Mais
+ tagCloud:
+ title:
+ other: Tags
+ categoriesCloud:
+ title:
+ other: Categorias
+
+search:
+ title:
+ other: Pesquisa
+ placeholder:
+ other: Escreva algo...
+ resultTitle:
+ other: "#PAGES_COUNT páginas (#TIME_SECONDS segundos)"
+
+footer:
+ builtWith:
+ other: Criado com {{ .Generator }}
+ designedBy:
+ other: Tema {{ .Theme }} desenvolvido por {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/ru.yaml b/themes/hugo-theme-stack/i18n/ru.yaml
new file mode 100644
index 0000000..b1f1e51
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/ru.yaml
@@ -0,0 +1,63 @@
+toggleMenu:
+ other: Показать/скрыть меню
+
+darkMode:
+ other: Тёмный режим
+
+list:
+ page:
+ one: "{{ .Count }} страница"
+ few: "{{ .Count }} страницы"
+ many: "{{ .Count }} страниц"
+ other: "{{ .Count }} страниц"
+
+ section:
+ other: Раздел
+
+ subsection:
+ one: Подраздел
+ few: Подразделы
+ many: Подразделы
+ other: Подразделы
+
+article:
+ back:
+ other: Назад
+ relatedContent:
+ other: Также рекомендуем
+ lastUpdatedOn:
+ other: Обновлено
+ tableOfContents:
+ other: Содержание
+ readingTime:
+ other: "Время чтения: {{ .Count }} мин."
+
+notFound:
+ title:
+ other: Не найдено
+ subtitle:
+ other: Запрашиваемая страница не существует
+
+widget:
+ archives:
+ title:
+ other: Архивы
+ more:
+ other: Ещё
+ tagCloud:
+ title:
+ other: Теги
+
+search:
+ title:
+ other: Поиск
+ placeholder:
+ other: Введите что-нибудь...
+ resultTitle:
+ other: "Найдено #PAGES_COUNT страниц (за #TIME_SECONDS с.)"
+
+footer:
+ builtWith:
+ other: Создано при помощи {{ .Generator }}
+ designedBy:
+ other: Тема {{ .Theme }}, дизайн {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/sk.yaml b/themes/hugo-theme-stack/i18n/sk.yaml
new file mode 100644
index 0000000..59c680e
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/sk.yaml
@@ -0,0 +1,71 @@
+toggleMenu:
+ other: Skryť menu
+
+darkMode:
+ other: Tmavý režim
+
+list:
+ page:
+ one: "{{ .Count }} stránka"
+ other: "{{ .Count }} stránok"
+
+ section:
+ other: Kategórie
+
+ subsection:
+ one: Podkategória
+ other: Podkategórie
+
+article:
+ back:
+ other: Späť
+
+ tableOfContents:
+ other: Obsah
+
+ relatedContent:
+ other: Súvisiace
+
+ lastUpdatedOn:
+ other: Naposledy aktualizované
+
+ readingTime:
+ one: "{{ .Count }} minúta"
+ other: "{{ .Count }} minút"
+
+notFound:
+ title:
+ other: Nenájdené
+
+ subtitle:
+ other: Tato stránka neexistuje
+
+widget:
+ archives:
+ title:
+ other: Archívy
+ more:
+ other: Viac
+ tagCloud:
+ title:
+ other: Štítky
+ categoriesCloud:
+ title:
+ other: Kategórie
+
+search:
+ title:
+ other: Hladať
+
+ placeholder:
+ other: Zadajte niečo...
+
+ resultTitle:
+ other: "#PAGES_COUNT stránok (#TIME_SECONDS sekúnd)"
+
+footer:
+ builtWith:
+ other: Vytvorené pomocou {{ .Generator }}
+
+ designedBy:
+ other: Šablóna {{ .Theme }} od {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/th.yaml b/themes/hugo-theme-stack/i18n/th.yaml
new file mode 100644
index 0000000..9982c06
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/th.yaml
@@ -0,0 +1,70 @@
+toggleMenu:
+ other: สลับเมนู
+
+darkMode:
+ other: ธีมมืด
+
+list:
+ page:
+ one: "{{ .Count }} หน้า"
+ other: "{{ .Count }} หน้า"
+
+ section:
+ other: หมวดหมู่
+
+ subsection:
+ one: หมวดหมู่ย่อย
+ other: หมวดหมู่ย่อยอื่นๆ
+
+article:
+ back:
+ other: กลับไป
+
+ tableOfContents:
+ other: สารบัญ
+
+ relatedContent:
+ other: เนื้อหาคล้ายคลึงกัน
+
+ lastUpdatedOn:
+ other: อัปเดตล่าสุดเมื่อ
+
+ readingTime:
+ one: "น่าจะใช้เวลา {{ .Count }} นาทีในการอ่าน"
+ other: "น่าจะใช้เวลา {{ .Count }} นาทีในการอ่าน"
+
+notFound:
+ title:
+ other: ไม่พบหัวข้อ
+
+ subtitle:
+ other: ไม่พบหน้านี้ในระบบ
+
+widget:
+ archives:
+ title:
+ other: เนื้อหาที่เก็บถาวรแล้ว
+
+ more:
+ other: อื่นๆ นอกจากนี้
+
+ tagCloud:
+ title:
+ other: แท็ก
+
+search:
+ title:
+ other: ค้นหา
+
+ placeholder:
+ other: พิมพ์เพื่อค้นหา ...
+
+ resultTitle:
+ other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
+
+footer:
+ builtWith:
+ other: ถูกสร้างด้วย {{ .Generator }}
+
+ designedBy:
+ other: ธีม {{ .Theme }} ออกแบบโดย {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/tr.yaml b/themes/hugo-theme-stack/i18n/tr.yaml
new file mode 100644
index 0000000..2dbb9d5
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/tr.yaml
@@ -0,0 +1,53 @@
+toggleMenu:
+ other: Menüyü Gizle
+
+darkMode:
+ other: Koyu Mod
+
+list:
+ page:
+ one: "{{ .Count }} makale"
+ other: "{{ .Count }} makale"
+
+ section:
+ other: Bölüm
+
+ subsection:
+ one: Alt bölüm
+ other: Alt bölümler
+
+article:
+ relatedContent:
+ other: Alakalı içerikler
+ lastUpdatedOn:
+ other: Son güncelleme
+
+notFound:
+ title:
+ other: Bulunamadı
+ subtitle:
+ other: Aradığınız sayfa mevcut değil.
+
+widget:
+ archives:
+ title:
+ other: Arşiv
+ more:
+ other: Daha fazla
+ tagCloud:
+ title:
+ other: Etiketler
+
+search:
+ title:
+ other: Arama
+ placeholder:
+ other: Birşeyler yazın...
+ resultTitle:
+ other: "#PAGES_COUNT sayfa (#TIME_SECONDS saniye)"
+
+footer:
+ builtWith:
+ other: "{{ .Generator }} ile oluşturuldu."
+ designedBy:
+ other: "{{ .Theme }} teması {{ .DesignedBy }} tarafından tasarlandı"
diff --git a/themes/hugo-theme-stack/i18n/uk.yaml b/themes/hugo-theme-stack/i18n/uk.yaml
new file mode 100644
index 0000000..3bd4f71
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/uk.yaml
@@ -0,0 +1,71 @@
+toggleMenu:
+ other: Показати меню
+
+darkMode:
+ other: Темна тема
+
+list:
+ page:
+ one: "{{ .Count }} сторінка"
+ few: "{{ .Count }} сторінки"
+ other: "{{ .Count }} сторінок"
+
+ section:
+ other: Секція
+
+ subsection:
+ one: Підсекція
+ other: Підсекції
+
+article:
+ back:
+ other: Назад
+
+ tableOfContents:
+ other: Зміст
+
+ relatedContent:
+ other: Схожі матеріали
+
+ lastUpdatedOn:
+ other: Востаннє оновлено
+
+ readingTime:
+ one: "Час читання: {{ .Count }} хв"
+ other: "Час читання: {{ .Count }} хв"
+
+notFound:
+ title:
+ other: Не знайдено
+
+ subtitle:
+ other: Ця сторінка не існує
+
+widget:
+ archives:
+ title:
+ other: Архіви
+
+ more:
+ other: Більше
+
+ tagCloud:
+ title:
+ other: Теґи
+
+search:
+ title:
+ other: Пошук
+
+ placeholder:
+ other: Напишіть що-небудь...
+
+ resultTitle:
+ other: "#PAGES_COUNT сторінок (#TIME_SECONDS секунд)"
+
+footer:
+ builtWith:
+ other: Створено з {{ .Generator }}
+
+ designedBy:
+ other: Тема {{ .Theme }}, дизайн {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/vi.yaml b/themes/hugo-theme-stack/i18n/vi.yaml
new file mode 100644
index 0000000..13dc624
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/vi.yaml
@@ -0,0 +1,74 @@
+toggleMenu:
+ other: Hiển thị Menu
+
+darkMode:
+ other: Chế độ nền tối
+
+list:
+ page:
+ one: "{{ .Count }} trang"
+ other: "{{ .Count }} trang"
+
+ section:
+ other: Section
+
+ subsection:
+ one: Subsection
+ other: Subsections
+
+article:
+ back:
+ other: Trở lại
+
+ tableOfContents:
+ other: Mục lục
+
+ relatedContent:
+ other: Bài viết liên quan
+
+ lastUpdatedOn:
+ other: Cập nhật lần cuối
+
+ readingTime:
+ one: "{{ .Count }} phút đọc"
+ other: "{{ .Count }} phút đọc"
+
+notFound:
+ title:
+ other: Không tìm thấy
+
+ subtitle:
+ other: Trang này không tồn tại
+
+widget:
+ archives:
+ title:
+ other: Lưu trữ
+
+ more:
+ other: Còn nữa
+
+ tagCloud:
+ title:
+ other: Nhãn dán
+
+ categoriesCloud:
+ title:
+ other: Chuỗi bài
+
+search:
+ title:
+ other: Tìm kiếm
+
+ placeholder:
+ other: Nhập từ khoá ...
+
+ resultTitle:
+ other: "#PAGES_COUNT trang (#TIME_SECONDS giây)"
+
+footer:
+ builtWith:
+ other: Built with {{ .Generator }}
+
+ designedBy:
+ other: Theme {{ .Theme }} thiết kế bởi {{ .DesignedBy }}
diff --git a/themes/hugo-theme-stack/i18n/zh-cn.yaml b/themes/hugo-theme-stack/i18n/zh-cn.yaml
new file mode 100644
index 0000000..da39c8f
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/zh-cn.yaml
@@ -0,0 +1,67 @@
+toggleMenu:
+ other: 切换菜单
+
+darkMode:
+ other: 暗色模式
+
+list:
+ page: "{{ .Count }} 个页面"
+
+ section: 章节
+
+ subsection: 子章节
+
+article:
+ back:
+ other: 返回
+
+ tableOfContents:
+ other: 目录
+
+ relatedContent:
+ other: 相关文章
+
+ lastUpdatedOn:
+ other: 最后更新于
+
+ readingTime:
+ other: "阅读时长: {{ .Count }} 分钟"
+
+notFound:
+ title:
+ other: 404 错误
+ subtitle:
+ other: 页面不存在
+
+widget:
+ archives:
+ title:
+ other: 归档
+
+ more:
+ other: 更多
+
+ tagCloud:
+ title:
+ other: 标签云
+
+ categoriesCloud:
+ title:
+ other: 分类
+
+search:
+ title:
+ other: 搜索
+
+ placeholder:
+ other: 输入关键词...
+
+ resultTitle:
+ other: "#PAGES_COUNT 个结果 (用时 #TIME_SECONDS 秒)"
+
+footer:
+ builtWith:
+ other: 使用 {{ .Generator }} 构建
+
+ designedBy:
+ other: 主题 {{ .Theme }} 由 {{ .DesignedBy }} 设计
diff --git a/themes/hugo-theme-stack/i18n/zh-hk.yaml b/themes/hugo-theme-stack/i18n/zh-hk.yaml
new file mode 100644
index 0000000..9e3c246
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/zh-hk.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: 切換選單
+
+darkMode:
+ other: 深色模式
+
+list:
+ page:
+ one: "第 {{ .Count }} 頁"
+ other: "第 {{ .Count }} 頁"
+
+ section:
+ other: Section
+
+ subsection:
+ one: Subsection
+ other: Subsections
+
+article:
+ back:
+ other: 返回
+
+ tableOfContents:
+ other: 目錄
+
+ relatedContent:
+ other: 相關內容
+
+ lastUpdatedOn:
+ other: 上次改過於
+
+ readingTime:
+ one: "需要 {{ .Count }} 分鐘閱讀"
+ other: "需要 {{ .Count }} 分鐘閱讀"
+
+notFound:
+ title:
+ other: Not Found
+
+ subtitle:
+ other: 頁面不存在
+
+widget:
+ archives:
+ title:
+ other: Archives
+
+ more:
+ other: 更多
+
+ tagCloud:
+ title:
+ other: Tags
+ categoriesCloud:
+ title:
+ other: Categories
+
+search:
+ title:
+ other: 搜尋
+
+ placeholder:
+ other: Type 關鍵字...
+
+ resultTitle:
+ other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
+
+footer:
+ builtWith:
+ other: Built with {{ .Generator }}
+
+ designedBy:
+ other: 主題 {{ .Theme }} 由 {{ .DesignedBy }} 設計
diff --git a/themes/hugo-theme-stack/i18n/zh-tw.yaml b/themes/hugo-theme-stack/i18n/zh-tw.yaml
new file mode 100644
index 0000000..4b71572
--- /dev/null
+++ b/themes/hugo-theme-stack/i18n/zh-tw.yaml
@@ -0,0 +1,73 @@
+toggleMenu:
+ other: 切換選單
+
+darkMode:
+ other: 夜晚模式
+
+list:
+ page:
+ one: "第 {{ .Count }} 頁"
+ other: "第 {{ .Count }} 頁"
+
+ section:
+ other: 段落
+
+ subsection:
+ one: 小節
+ other: 小節
+
+article:
+ back:
+ other: 返回
+
+ tableOfContents:
+ other: 目錄
+
+ relatedContent:
+ other: 相關文章
+
+ lastUpdatedOn:
+ other: 最後更新
+
+ readingTime:
+ one: "閱讀時間: {{ .Count }} 分鐘"
+ other: "閱讀時間: {{ .Count }} 分鐘"
+
+notFound:
+ title:
+ other: 404 錯誤
+
+ subtitle:
+ other: 頁面不存在
+
+widget:
+ archives:
+ title:
+ other: 紀錄
+
+ more:
+ other: 更多
+
+ tagCloud:
+ title:
+ other: 標籤雲
+ categoriesCloud:
+ title:
+ other: 分類
+
+search:
+ title:
+ other: 搜尋
+
+ placeholder:
+ other: 輸入關鍵字...
+
+ resultTitle:
+ other: "#PAGES_COUNT 個結果 (用時 #TIME_SECONDS 秒)"
+
+footer:
+ builtWith:
+ other: 使用 {{ .Generator }} 建立
+
+ designedBy:
+ other: 主題 {{ .Theme }} 由 {{ .DesignedBy }} 設計
diff --git a/themes/hugo-theme-stack/images/screenshot.png b/themes/hugo-theme-stack/images/screenshot.png
new file mode 100644
index 0000000..efcfd8a
--- /dev/null
+++ b/themes/hugo-theme-stack/images/screenshot.png
Binary files differ
diff --git a/themes/hugo-theme-stack/images/tn.png b/themes/hugo-theme-stack/images/tn.png
new file mode 100644
index 0000000..f85fd75
--- /dev/null
+++ b/themes/hugo-theme-stack/images/tn.png
Binary files differ
diff --git a/themes/hugo-theme-stack/layouts/404.html b/themes/hugo-theme-stack/layouts/404.html
new file mode 100644
index 0000000..98f4a67
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/404.html
@@ -0,0 +1,45 @@
+{{ define "main" }}
+ <div class="not-found-card">
+ <h1 class="article-title">{{ T "notFound.title" }}</h1>
+ <h2 class="article-subtitle">{{ T "notFound.subtitle" }}</h2>
+ </div>
+
+ {{- $query := first 1 (where .Site.Pages "Layout" "==" "search") -}}
+ {{- $searchPage := index $query 0 -}}
+
+ {{- with $searchPage -}}
+ <form action="{{ $searchPage.RelPermalink }}" class="search-form widget" {{ with .OutputFormats.Get "json" -}}data-json="{{ .Permalink }}" {{- end }}>
+ <p>
+ <label>{{ T "search.title" }}</label>
+ <input id="searchInput" name="keyword" required placeholder="{{ T `search.placeholder` }}" />
+
+ <button title="{{ T `search.title` }}">
+ {{ partial "helper/icon" "search" }}
+ </button>
+ </p>
+ </form>
+
+ <div class="search-result">
+ <h3 class="search-result--title section-title"></h3>
+ <div class="search-result--list article-list--compact"></div>
+ </div>
+
+ <script>
+ window.searchResultTitleTemplate = "{{ T `search.resultTitle` }}"
+ </script>
+
+ {{- $opts := dict "minify" hugo.IsProduction "JSXFactory" "createElement" -}}
+ {{- $searchScript := resources.Get "ts/search.tsx" | js.Build $opts -}}
+ <script type="text/javascript" src="{{ $searchScript.RelPermalink }}" defer></script>
+
+ <script>
+ const wrongUrl = new URL(window.location.href);
+
+ /// Get the search keyword from the wrong URL by removing all slashes and dashes
+ const searchKeyword = wrongUrl.pathname.split(/[/|-]/).join(' ').trim();
+
+ document.getElementById('searchInput').setAttribute('value', searchKeyword);
+ </script>
+ {{- end -}}
+ {{ partialCached "footer/footer" . }}
+{{ end }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html b/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html
new file mode 100644
index 0000000..f79308a
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,6 @@
+<h{{ .Level }} id="{{ .Anchor }}">
+ {{- if site.Params.Article.HeadingAnchor -}}
+ <a href="#{{ .Anchor }}" class="header-anchor"></a>
+ {{- end -}}
+ {{ .Text | safeHTML }}
+</h{{ .Level }}> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/_default/_markup/render-image.html b/themes/hugo-theme-stack/layouts/_default/_markup/render-image.html
new file mode 100644
index 0000000..0ed5584
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/_default/_markup/render-image.html
@@ -0,0 +1,41 @@
+{{- $image := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) -}}
+{{- $Permalink := .Destination | relURL | safeURL -}}
+{{- $alt := .PlainText | safeHTML -}}
+{{- $Width := 0 -}}
+{{- $Height := 0 -}}
+{{- $Srcset := "" -}}
+
+{{/* SVG and external images won't work with gallery layout, because their width and height attributes are unknown */}}
+{{- $galleryImage := false -}}
+
+{{- if $image -}}
+ {{- $notSVG := ne (path.Ext .Destination) ".svg" -}}
+ {{- $Permalink = $image.RelPermalink -}}
+
+ {{- if $notSVG -}}
+ {{- $Width = $image.Width -}}
+ {{- $Height = $image.Height -}}
+ {{- $galleryImage = true -}}
+
+ {{- if (default true .Page.Site.Params.imageProcessing.content.enabled) -}}
+ {{- $small := $image.Resize `480x` -}}
+ {{- $big := $image.Resize `1024x` -}}
+ {{- $Srcset = printf `%s 480w, %s 1024w` $small.RelPermalink $big.RelPermalink -}}
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
+
+<img src="{{ $Permalink }}"
+ {{ with $Width }}width="{{ . }}"{{ end }}
+ {{ with $Height }}height="{{ . }}"{{ end }}
+ {{ with $Srcset }}srcset="{{ . }}"{{ end }}
+ loading="lazy"
+ {{ with $alt }}
+ alt="{{ . }}"
+ {{ end }}
+ {{ if $galleryImage }}
+ class="gallery-image"
+ data-flex-grow="{{ div (mul $image.Width 100) $image.Height }}"
+ data-flex-basis="{{ div (mul $image.Width 240) $image.Height }}px"
+ {{ end }}
+> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html b/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html
new file mode 100644
index 0000000..843854d
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html
@@ -0,0 +1,3 @@
+<a class="link" href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"
+ {{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"
+ {{ end }}>{{ .Text | safeHTML }}</a> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/_default/archives.html b/themes/hugo-theme-stack/layouts/_default/archives.html
new file mode 100644
index 0000000..5d5243c
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/_default/archives.html
@@ -0,0 +1,35 @@
+{{ define "body-class" }}template-archives{{ end }}
+{{ define "main" }}
+ <header>
+ {{- $taxonomy := $.Site.GetPage "taxonomyTerm" "categories" -}}
+ {{- $terms := $taxonomy.Pages -}}
+ {{ if $terms }}
+ <h2 class="section-title">{{ $taxonomy.Title }}</h2>
+ <div class="subsection-list">
+ <div class="article-list--tile">
+ {{ range $terms }}
+ {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "taxonomy") }}
+ {{ end }}
+ </div>
+ </div>
+ {{ end }}
+ </header>
+
+ {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
+ {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
+ {{ $filtered := ($pages | intersect $notHidden) }}
+
+ {{ range $filtered.GroupByDate "2006" }}
+ {{ $id := lower (replace .Key " " "-") }}
+ <div class="archives-group" id="{{ $id }}">
+ <h2 class="archives-date section-title"><a href="{{ $.RelPermalink }}#{{ $id }}">{{ .Key }}</a></h2>
+ <div class="article-list--compact">
+ {{ range .Pages }}
+ {{ partial "article-list/compact" . }}
+ {{ end }}
+ </div>
+ </div>
+ {{ end }}
+
+ {{ partialCached "footer/footer" . }}
+{{ end }}
diff --git a/themes/hugo-theme-stack/layouts/_default/baseof.html b/themes/hugo-theme-stack/layouts/_default/baseof.html
new file mode 100644
index 0000000..83fdaa3
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/_default/baseof.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}" dir="{{ default `ltr` .Language.LanguageDirection }}">
+ <head>
+ {{- partial "head/head.html" . -}}
+ {{- block "head" . -}}{{ end }}
+ </head>
+ <body class="{{ block `body-class` . }}{{ end }}">
+ {{- partial "head/colorScheme" . -}}
+
+ {{/* The container is wider when there's any activated widget */}}
+ {{- $hasWidget := false -}}
+ {{- range .Site.Params.widgets -}}
+ {{- if gt (len .) 0 -}}
+ {{- $hasWidget = true -}}
+ {{- end -}}
+ {{- end -}}
+ <div class="container main-container flex on-phone--column {{ if $hasWidget }}extended{{ else }}compact{{ end }}">
+ {{- block "left-sidebar" . -}}
+ {{ partial "sidebar/left.html" . }}
+ {{- end -}}
+ {{- block "right-sidebar" . -}}{{ end }}
+ <main class="main full-width">
+ {{- block "main" . }}{{- end }}
+ </main>
+ </div>
+ {{ partial "footer/include.html" . }}
+ </body>
+</html>
diff --git a/themes/hugo-theme-stack/layouts/_default/list.html b/themes/hugo-theme-stack/layouts/_default/list.html
new file mode 100644
index 0000000..9bc618d
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/_default/list.html
@@ -0,0 +1,85 @@
+{{ define "main" }}
+ <header>
+ <h3 class="section-title">
+ {{ if eq .Parent (.GetPage "/") }}
+ {{ T "list.section" }}
+ {{ else }}
+ {{ .Parent.Title }}
+ {{ end }}
+ </h3>
+
+ <div class="section-card">
+ <div class="section-details">
+ <h3 class="section-count">{{ T "list.page" (len .Pages) }}</h3>
+ <h1 class="section-term">{{ .Title }}</h1>
+ {{ with .Params.description }}
+ <h2 class="section-description">{{ . }}</h2>
+ {{ end }}
+ </div>
+
+ {{- $image := partialCached "helper/image" (dict "Context" . "Type" "section") .RelPermalink "section" -}}
+ {{ if $image.exists }}
+ <div class="section-image">
+ {{ if $image.resource }}
+ {{- $Permalink := $image.resource.RelPermalink -}}
+ {{- $Width := $image.resource.Width -}}
+ {{- $Height := $image.resource.Height -}}
+
+ {{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
+ {{- $thumbnail := $image.resource.Fill "120x120" -}}
+ {{- $Permalink = $thumbnail.RelPermalink -}}
+ {{- $Width = $thumbnail.Width -}}
+ {{- $Height = $thumbnail.Height -}}
+ {{- end -}}
+
+ <img src="{{ $Permalink }}"
+ width="{{ $Width }}"
+ height="{{ $Height }}"
+ loading="lazy">
+ {{ else }}
+ <img src="{{ $image.permalink }}" loading="lazy" />
+ {{ end }}
+ </div>
+ {{ end }}
+ </div>
+ </header>
+
+ {{- $subsections := .Sections -}}
+ {{- $pages := .Pages | complement $subsections -}}
+
+ {{- if eq (len $pages) 0 -}}
+ {{/* If there are no normal pages, display subsections in list style, with pagination */}}
+ {{/* This happens with taxonomies like categories or tags */}}
+ {{- $pages = $subsections -}}
+ {{- $subsections = slice -}}
+ {{- end -}}
+
+ {{- with $subsections -}}
+ <aside>
+ <h2 class="section-title">{{ T "list.subsection" (len $subsections) }}</h2>
+ <div class="subsection-list">
+ <div class="article-list--tile">
+ {{ range . }}
+ {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "section") }}
+ {{ end }}
+ </div>
+ </div>
+ </aside>
+ {{- end -}}
+
+ {{/* List only pages that are not a subsection */}}
+ {{ $paginator := .Paginate $pages }}
+ <section class="article-list--compact">
+ {{ range $paginator.Pages }}
+ {{ partial "article-list/compact" . }}
+ {{ end }}
+ </section>
+
+ {{- partial "pagination.html" . -}}
+
+ {{ partialCached "footer/footer" . }}
+{{ end }}
+
+{{ define "right-sidebar" }}
+ {{ partial "sidebar/right.html" (dict "Context" . "Scope" "homepage") }}
+{{ end }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/_default/rss.xml b/themes/hugo-theme-stack/layouts/_default/rss.xml
new file mode 100644
index 0000000..3d2e592
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/_default/rss.xml
@@ -0,0 +1,48 @@
+{{- $pctx := . -}}
+{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
+{{- $pages := slice -}}
+{{- if or $.IsHome $.IsSection -}}
+{{- $pages = $pctx.RegularPages -}}
+{{- else -}}
+{{- $pages = $pctx.Pages -}}
+{{- end -}}
+{{- $pages := where $pages "Params.hidden" "!=" true -}}
+{{- $limit := .Site.Config.Services.RSS.Limit -}}
+{{- if ge $limit 1 -}}
+{{- $pages = $pages | first $limit -}}
+{{- end -}}
+{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
+ <link>{{ .Permalink }}</link>
+ <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
+ <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
+ <language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
+ <managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
+ <webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
+ <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
+ <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
+ {{- with .OutputFormats.Get "RSS" -}}
+ {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
+ {{- end -}}
+ {{ range $pages }}
+ {{- $content := safeHTML (.Summary | html) -}}
+ {{- if .Site.Params.rssFullContent -}}
+ {{- $content = safeHTML (.Content | html) -}}
+ {{- end -}}
+ <item>
+ <title>{{ .Title }}</title>
+ <link>{{ .Permalink }}</link>
+ <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
+ {{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
+ <guid>{{ .Permalink }}</guid>
+ <description>
+ {{- $image := partial "helper/image" (dict "Context" . "Type" "rss") -}}
+ {{- if $image.exists -}}
+ {{ "<" | html }}img src="{{ $image.permalink | absURL }}" alt="Featured image of post {{ .Title }}" {{ "/>" | html}}
+ {{- end -}}{{ $content }}</description>
+ </item>
+ {{ end }}
+ </channel>
+</rss>
diff --git a/themes/hugo-theme-stack/layouts/_default/single.html b/themes/hugo-theme-stack/layouts/_default/single.html
new file mode 100644
index 0000000..5f300bf
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/_default/single.html
@@ -0,0 +1,46 @@
+{{ define "body-class" }}
+ article-page
+ {{/*
+ Enable the right sidebar if
+ - Widget different from 'TOC' is enabled
+ - TOC is enabled and not empty
+ */}}
+ {{- $HasWidgetNotTOC := false -}}
+ {{- $TOCWidgetEnabled := false -}}
+ {{- range .Site.Params.widgets.page -}}
+ {{- if ne .type "toc" -}}
+ {{ $HasWidgetNotTOC = true -}}
+ {{- else -}}
+ {{ $TOCWidgetEnabled = true -}}
+ {{- end -}}
+ {{- end -}}
+
+ {{- $TOCManuallyDisabled := eq .Params.toc false -}}
+ {{- $TOCEnabled := and (not $TOCManuallyDisabled) $TOCWidgetEnabled -}}
+ {{- $hasTOC := ge (len .TableOfContents) 100 -}}
+ {{- .Scratch.Set "TOCEnabled" (and $TOCEnabled $hasTOC) -}}
+
+ {{- .Scratch.Set "hasWidget" (or $HasWidgetNotTOC (and $TOCEnabled $hasTOC)) -}}
+{{ end }}
+
+{{ define "main" }}
+ {{ partial "article/article.html" . }}
+
+ {{ if .Params.links }}
+ {{ partial "article/components/links" . }}
+ {{ end }}
+
+ {{ partial "article/components/related-content" . }}
+
+ {{ if not (eq .Params.comments false) }}
+ {{ partial "comments/include" . }}
+ {{ end }}
+
+ {{ partialCached "footer/footer" . }}
+
+ {{ partialCached "article/components/photoswipe" . }}
+{{ end }}
+
+{{ define "right-sidebar" }}
+ {{ if .Scratch.Get "hasWidget" }}{{ partial "sidebar/right.html" (dict "Context" . "Scope" "page") }}{{ end}}
+{{ end }}
diff --git a/themes/hugo-theme-stack/layouts/index.html b/themes/hugo-theme-stack/layouts/index.html
new file mode 100644
index 0000000..0cd0b88
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/index.html
@@ -0,0 +1,19 @@
+{{ define "main" }}
+ {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
+ {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
+ {{ $filtered := ($pages | intersect $notHidden) }}
+ {{ $pag := .Paginate ($filtered) }}
+
+ <section class="article-list">
+ {{ range $index, $element := $pag.Pages }}
+ {{ partial "article-list/default" . }}
+ {{ end }}
+ </section>
+
+ {{- partial "pagination.html" . -}}
+ {{- partial "footer/footer" . -}}
+{{ end }}
+
+{{ define "right-sidebar" }}
+ {{ partial "sidebar/right.html" (dict "Context" . "Scope" "homepage") }}
+{{ end }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/page/search.html b/themes/hugo-theme-stack/layouts/page/search.html
new file mode 100644
index 0000000..fbfb74d
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/page/search.html
@@ -0,0 +1,33 @@
+{{ define "body-class" }}template-search{{ end }}
+{{ define "head" }}
+ {{- with .OutputFormats.Get "json" -}}
+ <link rel="preload" href="{{ .RelPermalink }}" as="fetch" crossorigin="anonymous">
+ {{- end -}}
+{{ end }}
+{{ define "main" }}
+<form action="{{ .RelPermalink }}" class="search-form"{{ with .OutputFormats.Get "json" -}} data-json="{{ .RelPermalink }}"{{- end }}>
+ <p>
+ <label>{{ T "search.title" }}</label>
+ <input name="keyword" placeholder="{{ T `search.placeholder` }}" />
+ </p>
+
+ <button title="{{ T `search.title` }}">
+ {{ partial "helper/icon" "search" }}
+ </button>
+</form>
+
+<div class="search-result">
+ <h3 class="search-result--title section-title"></h3>
+ <div class="search-result--list article-list--compact"></div>
+</div>
+
+<script>
+ window.searchResultTitleTemplate = "{{ T `search.resultTitle` }}"
+</script>
+
+{{- $opts := dict "minify" hugo.IsProduction "JSXFactory" "createElement" -}}
+{{- $searchScript := resources.Get "ts/search.tsx" | js.Build $opts -}}
+<script type="text/javascript" src="{{ $searchScript.RelPermalink }}" defer></script>
+
+{{ partialCached "footer/footer" . }}
+{{ end }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/page/search.json b/themes/hugo-theme-stack/layouts/page/search.json
new file mode 100644
index 0000000..5d4e627
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/page/search.json
@@ -0,0 +1,26 @@
+{{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections -}}
+{{- $notHidden := where .Site.RegularPages "Params.hidden" "!=" true -}}
+{{- $filtered := ($pages | intersect $notHidden) -}}
+
+{{- $result := slice -}}
+
+{{- range $filtered -}}
+ {{- $data := dict "title" .Title "date" .Date "permalink" .Permalink "content" (.Plain) -}}
+
+ {{- $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" -}}
+ {{- if $image.exists -}}
+ {{- $imagePermalink := "" -}}
+ {{- if and $image.resource (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
+ {{- $thumbnail := $image.resource.Fill "120x120" -}}
+ {{- $imagePermalink = (absURL $thumbnail.Permalink) -}}
+ {{- else -}}
+ {{- $imagePermalink = $image.permalink -}}
+ {{- end -}}
+
+ {{- $data = merge $data (dict "image" (absURL $imagePermalink)) -}}
+ {{- end -}}
+
+ {{- $result = $result | append $data -}}
+{{- end -}}
+
+{{ jsonify $result }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/article-list/compact.html b/themes/hugo-theme-stack/layouts/partials/article-list/compact.html
new file mode 100644
index 0000000..376512a
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article-list/compact.html
@@ -0,0 +1,40 @@
+<article>
+ <a href="{{ .RelPermalink }}">
+ <div class="article-details">
+ <h2 class="article-title">
+ {{- .Title -}}
+ </h2>
+ <footer class="article-time">
+ <time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
+ {{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
+ </time>
+ </footer>
+ </div>
+
+ {{- $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" -}}
+ {{ if $image.exists }}
+ <div class="article-image">
+ {{ if $image.resource }}
+ {{- $Permalink := $image.resource.RelPermalink -}}
+ {{- $Width := $image.resource.Width -}}
+ {{- $Height := $image.resource.Height -}}
+
+ {{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
+ {{- $thumbnail := $image.resource.Fill "120x120" -}}
+ {{- $Permalink = $thumbnail.RelPermalink -}}
+ {{- $Width = $thumbnail.Width -}}
+ {{- $Height = $thumbnail.Height -}}
+ {{- end -}}
+
+ <img src="{{ $Permalink }}"
+ width="{{ $Width }}"
+ height="{{ $Height }}"
+ alt="{{ .Title }}"
+ loading="lazy">
+ {{ else }}
+ <img src="{{ $image.permalink }}" loading="lazy" alt="Featured image of post {{ .Title }}" />
+ {{ end }}
+ </div>
+ {{ end }}
+ </a>
+</article> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/article-list/default.html b/themes/hugo-theme-stack/layouts/partials/article-list/default.html
new file mode 100644
index 0000000..02e0b30
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article-list/default.html
@@ -0,0 +1,4 @@
+{{ $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" }}
+<article class="{{ if $image.exists }}has-image{{ end }}">
+ {{ partial "article/components/header" . }}
+</article> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/article-list/tile.html b/themes/hugo-theme-stack/layouts/partials/article-list/tile.html
new file mode 100644
index 0000000..be5744b
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article-list/tile.html
@@ -0,0 +1,39 @@
+{{ $image := partialCached "helper/image" (dict "Context" .context "Type" .Type) .context.RelPermalink .Type }}
+<article class="{{ if $image.exists }}has-image{{ end }}">
+ <a href="{{ .context.RelPermalink }}">
+
+ {{ if $image.exists }}
+ <div class="article-image">
+ {{ if $image.resource }}
+ {{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}}
+ {{- $Permalink := $imageRaw.RelPermalink -}}
+ {{- $Width := $imageRaw.Width -}}
+ {{- $Height := $imageRaw.Height -}}
+
+ {{- if .context.Site.Params.imageProcessing.cover.enabled -}}
+ {{- $thumbnail := $imageRaw.Fill .size -}}
+ {{- $Permalink = $thumbnail.RelPermalink -}}
+ {{- $Width = $thumbnail.Width -}}
+ {{- $Height = $thumbnail.Height -}}
+ {{- end -}}
+
+ <img src="{{ $Permalink }}"
+ width="{{ $Width }}"
+ height="{{ $Height }}"
+ loading="lazy"
+ alt="Featured image of post {{ .context.Title }}"
+ {{ with .context.Slug }}data-key="{{ . }}" {{ end }}
+ data-hash="{{ $imageRaw.Data.Integrity }}">
+ {{ else }}
+ <img src="{{ $image.permalink }}" loading="lazy" data-key="{{ .context.Slug }}" data-hash="{{ $image.permalink }}"/>
+ {{ end }}
+ </div>
+ {{ end }}
+
+ <div class="article-details">
+ <h2 class="article-title">
+ {{- .context.Title -}}
+ </h2>
+ </div>
+ </a>
+</article>
diff --git a/themes/hugo-theme-stack/layouts/partials/article/article.html b/themes/hugo-theme-stack/layouts/partials/article/article.html
new file mode 100644
index 0000000..f3f7e90
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article/article.html
@@ -0,0 +1,11 @@
+<article class="{{ if .Params.image }}has-image {{ end }}main-article">
+ {{ partial "article/components/header" . }}
+
+ {{ partial "article/components/content" . }}
+
+ {{ partial "article/components/footer" . }}
+
+ {{ if or .Params.math .Site.Params.article.math }}
+ {{ partialCached "article/components/math.html" . }}
+ {{ end }}
+</article> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/content.html b/themes/hugo-theme-stack/layouts/partials/article/components/content.html
new file mode 100644
index 0000000..61e536c
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article/components/content.html
@@ -0,0 +1,5 @@
+<section class="article-content">
+ <!-- Refer to https://discourse.gohugo.io/t/responsive-tables-in-markdown/10639/5 -->
+ {{ $wrappedTable := printf "<div class=\"table-wrapper\">${1}</div>" }}
+ {{ .Content | replaceRE "(<table>(?:.|\n)+?</table>)" $wrappedTable | safeHTML }}
+</section>
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/details.html b/themes/hugo-theme-stack/layouts/partials/article/components/details.html
new file mode 100644
index 0000000..7c27302
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article/components/details.html
@@ -0,0 +1,61 @@
+<div class="article-details">
+ {{ if .Params.categories }}
+ <header class="article-category">
+ {{ range (.GetTerms "categories") }}
+ <a href="{{ .RelPermalink }}" {{ with .Params.style }}style="background-color: {{ .background }}; color: {{ .color }};"{{ end }}>
+ {{ .LinkTitle }}
+ </a>
+ {{ end }}
+ </header>
+ {{ end }}
+
+ <div class="article-title-wrapper">
+ <h2 class="article-title">
+ <a href="{{ .RelPermalink }}">
+ {{- .Title -}}
+ </a>
+ </h2>
+
+ {{ with .Params.description }}
+ <h3 class="article-subtitle">
+ {{ . }}
+ </h3>
+ {{ end }}
+ </div>
+
+ {{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }}
+ {{ $showDate := not .Date.IsZero }}
+ {{ $showFooter := or $showDate $showReadingTime }}
+ {{ if $showFooter }}
+ <footer class="article-time">
+ {{ if $showDate }}
+ <div>
+ {{ partial "helper/icon" "date" }}
+ <time class="article-time--published">
+ {{- .Date | time.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
+ </time>
+ </div>
+ {{ end }}
+
+ {{ if $showReadingTime }}
+ <div>
+ {{ partial "helper/icon" "clock" }}
+ <time class="article-time--reading">
+ {{ T "article.readingTime" .ReadingTime }}
+ </time>
+ </div>
+ {{ end }}
+ </footer>
+ {{ end }}
+
+ {{ if .IsTranslated }}
+ <footer class="article-translations">
+ {{ partial "helper/icon" "language" }}
+ <div>
+ {{ range .Translations }}
+ <a href="{{ .Permalink }}" class="link">{{ .Language.LanguageName }}</a>
+ {{ end }}
+ </div>
+ </footer>
+ {{ end }}
+</div>
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/footer.html b/themes/hugo-theme-stack/layouts/partials/article/components/footer.html
new file mode 100644
index 0000000..9795880
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article/components/footer.html
@@ -0,0 +1,19 @@
+<footer class="article-footer">
+ {{ partial "article/components/tags" . }}
+
+ {{ if and (.Site.Params.article.license.enabled) (not (eq .Params.license false)) }}
+ <section class="article-copyright">
+ {{ partial "helper/icon" "copyright" }}
+ <span>{{ default .Site.Params.article.license.default .Params.license | markdownify }}</span>
+ </section>
+ {{ end }}
+
+ {{- if ne .Lastmod .Date -}}
+ <section class="article-lastmod">
+ {{ partial "helper/icon" "clock" }}
+ <span>
+ {{ T "article.lastUpdatedOn" }} {{ .Lastmod | time.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }}
+ </span>
+ </section>
+ {{- end -}}
+</footer>
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/header.html b/themes/hugo-theme-stack/layouts/partials/article/components/header.html
new file mode 100644
index 0000000..7582ec2
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article/components/header.html
@@ -0,0 +1,35 @@
+<header class="article-header">
+ {{- $image := partialCached "helper/image" (dict "Context" . "Type" "article") .RelPermalink "article" -}}
+ {{ if $image.exists }}
+ <div class="article-image">
+ <a href="{{ .RelPermalink }}">
+ {{ if $image.resource }}
+ {{- $Permalink := $image.resource.RelPermalink -}}
+ {{- $Width := $image.resource.Width -}}
+ {{- $Height := $image.resource.Height -}}
+ {{- $Srcset := "" -}}
+
+ {{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
+ {{- $thumbnail := $image.resource.Resize "800x" -}}
+ {{- $thumbnailRetina := $image.resource.Resize "1600x" -}}
+ {{- $Srcset = printf "%s 800w, %s 1600w" $thumbnail.RelPermalink $thumbnailRetina.RelPermalink -}}
+ {{- $Permalink = $thumbnail.RelPermalink -}}
+ {{- $Width = $thumbnail.Width -}}
+ {{- $Height = $thumbnail.Height -}}
+ {{- end -}}
+
+ <img src="{{ $Permalink }}"
+ {{ with $Srcset }}srcset="{{ . }}"{{ end }}
+ width="{{ $Width }}"
+ height="{{ $Height }}"
+ loading="lazy"
+ alt="Featured image of post {{ .Title }}" />
+ {{ else }}
+ <img src="{{ $image.permalink }}" loading="lazy" alt="Featured image of post {{ .Title }}" />
+ {{ end }}
+ </a>
+ </div>
+ {{ end }}
+
+ {{ partialCached "article/components/details" . .RelPermalink }}
+</header> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/links.html b/themes/hugo-theme-stack/layouts/partials/article/components/links.html
new file mode 100644
index 0000000..a2ac26c
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article/components/links.html
@@ -0,0 +1,30 @@
+<div class="article-list--compact links">
+ {{ range $i, $link := .Params.links }}
+ <article>
+ <a href="{{ $link.website }}" target="_blank" rel="noopener">
+ <div class="article-details">
+ <h2 class="article-title">
+ {{- $link.title -}}
+ </h2>
+ <footer class="article-time">
+ {{ with $link.description }}
+ {{ . }}
+ {{ else }}
+ {{ $link.website }}
+ {{ end }}
+ </footer>
+ </div>
+
+ {{ with $link.image }}
+ {{ $permalink := . }}
+ {{ with ($.Resources.GetMatch (printf "%s" (. | safeURL))) }}
+ {{ $permalink = .RelPermalink }}
+ {{ end }}
+ <div class="article-image">
+ <img src="{{ $permalink }}" loading="lazy">
+ </div>
+ {{ end }}
+ </a>
+ </article>
+ {{ end }}
+</div> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/math.html b/themes/hugo-theme-stack/layouts/partials/article/components/math.html
new file mode 100644
index 0000000..bd1a7f8
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article/components/math.html
@@ -0,0 +1,13 @@
+{{- partial "helper/external" (dict "Context" . "Namespace" "KaTeX") -}}
+<script>
+ window.addEventListener("DOMContentLoaded", () => {
+ renderMathInElement(document.body, {
+ delimiters: [
+ { left: "$$", right: "$$", display: true },
+ { left: "$", right: "$", display: false },
+ { left: "\\(", right: "\\)", display: false },
+ { left: "\\[", right: "\\]", display: true }
+ ],
+ ignoredClasses: ["gist"]
+ });})
+</script> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/photoswipe.html b/themes/hugo-theme-stack/layouts/partials/article/components/photoswipe.html
new file mode 100644
index 0000000..c33ff49
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article/components/photoswipe.html
@@ -0,0 +1,68 @@
+<!-- Root element of PhotoSwipe. Must have class pswp. -->
+<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
+
+ <!-- Background of PhotoSwipe.
+ It's a separate element as animating opacity is faster than rgba(). -->
+ <div class="pswp__bg"></div>
+
+ <!-- Slides wrapper with overflow:hidden. -->
+ <div class="pswp__scroll-wrap">
+
+ <!-- Container that holds slides.
+ PhotoSwipe keeps only 3 of them in the DOM to save memory.
+ Don't modify these 3 pswp__item elements, data is added later on. -->
+ <div class="pswp__container">
+ <div class="pswp__item"></div>
+ <div class="pswp__item"></div>
+ <div class="pswp__item"></div>
+ </div>
+
+ <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
+ <div class="pswp__ui pswp__ui--hidden">
+
+ <div class="pswp__top-bar">
+
+ <!-- Controls are self-explanatory. Order can be changed. -->
+
+ <div class="pswp__counter"></div>
+
+ <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
+
+ <button class="pswp__button pswp__button--share" title="Share"></button>
+
+ <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
+
+ <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
+
+ <!-- Preloader demo https://codepen.io/dimsemenov/pen/yyBWoR -->
+ <!-- element will get class pswp__preloader--active when preloader is running -->
+ <div class="pswp__preloader">
+ <div class="pswp__preloader__icn">
+ <div class="pswp__preloader__cut">
+ <div class="pswp__preloader__donut"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
+ <div class="pswp__share-tooltip"></div>
+ </div>
+
+ <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
+ </button>
+
+ <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
+ </button>
+
+ <div class="pswp__caption">
+ <div class="pswp__caption__center"></div>
+ </div>
+
+ </div>
+
+ </div>
+
+</div>
+
+{{- partial "helper/external" (dict "Context" . "Namespace" "PhotoSwipe") -}} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/related-content.html b/themes/hugo-theme-stack/layouts/partials/article/components/related-content.html
new file mode 100644
index 0000000..aba88e3
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article/components/related-content.html
@@ -0,0 +1,13 @@
+{{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }}
+{{ with $related }}
+<aside class="related-content--wrapper">
+ <h2 class="section-title">{{ T "article.relatedContent" }}</h2>
+ <div class="related-content">
+ <div class="flex article-list--tile">
+ {{ range . }}
+ {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }}
+ {{ end }}
+ </div>
+ </div>
+</aside>
+{{ end }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/tags.html b/themes/hugo-theme-stack/layouts/partials/article/components/tags.html
new file mode 100644
index 0000000..aae38b4
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/article/components/tags.html
@@ -0,0 +1,7 @@
+{{ if .Params.Tags }}
+ <section class="article-tags">
+ {{ range (.GetTerms "tags") }}
+ <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
+ {{ end }}
+ </section>
+{{ end }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/include.html b/themes/hugo-theme-stack/layouts/partials/comments/include.html
new file mode 100644
index 0000000..a3d0618
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/include.html
@@ -0,0 +1,3 @@
+{{ if .Site.Params.comments.enabled }}
+ {{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }}
+{{ end }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/beaudar.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/beaudar.html
new file mode 100644
index 0000000..761801f
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/beaudar.html
@@ -0,0 +1,46 @@
+<script
+ src="https://beaudar.lipk.org/client.js"
+ repo="{{ .Site.Params.comments.beaudar.repo }}"
+ issue-term="{{ .Site.Params.comments.beaudar.issueTerm }}"
+ {{ with .Site.Params.comments.beaudar.label }}
+ label="{{ . }}"
+ {{ end }}
+ theme="{{ .Site.Params.comments.beaudar.theme }}"
+ crossorigin="anonymous"
+ async
+></script>
+
+<style>
+ .beaudar {
+ max-width: unset;
+ }
+</style>
+
+<script>
+ let beaudarLoaded = false;
+
+ function setBeaudarTheme(theme) {
+ let beaudar = document.querySelector(".beaudar iframe");
+ if (beaudar) {
+ beaudar.contentWindow.postMessage(
+ {
+ type: "set-theme",
+ theme: `github-${theme}`,
+ },
+ "https://beaudar.lipk.org"
+ );
+ }
+ }
+
+ addEventListener("message", (event) => {
+ if (event.origin !== "https://beaudar.lipk.org") return;
+ /// Called when Beaudar is ready
+ beaudarLoaded = true;
+ setBeaudarTheme(document.documentElement.dataset.scheme);
+ });
+
+ window.addEventListener("onColorSchemeChange", (e) => {
+ if (!beaudarLoaded) return;
+ setBeaudarTheme(e.detail);
+ });
+</script>
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/cactus.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/cactus.html
new file mode 100644
index 0000000..ae172d3
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/cactus.html
@@ -0,0 +1,29 @@
+{{- with .Site.Params.comments.cactus -}}
+{{- partial "helper/external" (dict "Context" $ "Namespace" "Cactus") -}}
+
+<style>
+ .cactus-editor-textarea {
+ color: var(--body-text-color);
+ }
+
+ .cactus-comment-header {
+ color: var(--card-text-color-main);
+ }
+
+ .cactus-message-text > p {
+ color: var(--body-text-color);
+ }
+</style>
+
+<div id="comment-section"></div>
+
+<script>
+ initComments({
+ node: document.getElementById("comment-section"),
+ defaultHomeserverUrl: "{{ .defaultHomeserverUrl | safeJS }}",
+ serverName: "{{ .serverName }}",
+ siteName: "{{ .siteName }}",
+ commentSectionId: "{{ $.File.UniqueID }}"
+ })
+</script>
+{{- end -}}
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/cusdis.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/cusdis.html
new file mode 100644
index 0000000..a89746c
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/cusdis.html
@@ -0,0 +1,21 @@
+{{- $host := default "https://cusdis.com" .Site.Params.comments.cusdis.host -}}
+<div id="cusdis_thread"
+ data-host="{{ $host }}"
+ data-app-id="{{ .Site.Params.comments.cusdis.id }}"
+ data-page-id="{{ .File.UniqueID }}"
+ data-page-url="{{ .Permalink }}"
+ data-page-title="{{ .Title }}"></div>
+<script async defer src="{{ $host }}/js/cusdis.es.js"></script>
+
+<script>
+ function setCusdisTheme(theme) {
+ let cusdis = document.querySelector('#cusdis_thread iframe');
+ if (cusdis) {
+ window.CUSDIS.setTheme(theme)
+ }
+ }
+
+ window.addEventListener('onColorSchemeChange', (e) => {
+ setCusdisTheme(e.detail)
+ })
+</script>
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/disqus.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/disqus.html
new file mode 100644
index 0000000..fb17b77
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/disqus.html
@@ -0,0 +1,22 @@
+<div class="disqus-container">
+ {{ template "_internal/disqus.html" . }}
+</div>
+
+<style>
+ .disqus-container {
+ background-color: var(--card-background);
+ border-radius: var(--card-border-radius);
+ box-shadow: var(--shadow-l1);
+ padding: var(--card-padding);
+ }
+</style>
+
+<script>
+ window.addEventListener('onColorSchemeChange', (e) => {
+ if (typeof DISQUS == 'object') {
+ DISQUS.reset({
+ reload: true
+ });
+ }
+ })
+</script> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/disqusjs.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/disqusjs.html
new file mode 100644
index 0000000..967c38c
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/disqusjs.html
@@ -0,0 +1,61 @@
+{{- $pc := .Site.Config.Privacy.Disqus -}}
+{{- $disqusjs := .Site.Params.Comments.disqusjs -}}
+{{- if and (not $pc.Disable) (and $disqusjs.Shortname $disqusjs.ApiKey) -}}
+
+{{- $style := resources.Get "scss/partials/comments/disqusjs.scss" | toCSS | minify -}}
+<link rel="stylesheet" href="{{ $style.RelPermalink }}">
+
+<div class="disqus-container">
+ <div id="disqus_thread"></div>
+ <script type="application/javascript">
+ let disqusjs;
+ function loadDisqusJS() {
+ disqusjs = new DisqusJS({
+ shortname: {{ $disqusjs.Shortname }},
+ siteName: {{ .Site.Title }},
+ apikey: {{ $disqusjs.ApiKey }},
+ {{ with $disqusjs.ApiUrl }}api: {{ . }},{{ end }}
+ {{ with $disqusjs.Admin }}admin: {{ . }},{{ end }}
+ {{ with $disqusjs.AdminLabel }}adminLabel: {{ . }}{{ end }}
+ });
+ }
+
+ function lazyLoadDisqusJS() {
+ if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
+ document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
+ return;
+ }
+
+ let d = document.createElement('script');
+ d.src = 'https://cdn.jsdelivr.net/npm/disqusjs@1.3/dist/disqus.js';
+ d.async = false;
+ document.body.appendChild(d);
+ d.onload = () => {
+ loadDisqusJS();
+ window.addEventListener('onColorSchemeChange', (e) => {
+ if (disqusjs) {
+ loadDisqusJS();
+ }
+ })
+ }
+ }
+
+ let runningOnBrowser = typeof window !== "undefined";
+ let isBot = runningOnBrowser && !("onscroll" in window) || typeof navigator !== "undefined" && /(gle|ing|ro|msn)bot|crawl|spider|yand|duckgo/i.test(navigator.userAgent);
+ let supportsIntersectionObserver = runningOnBrowser && "IntersectionObserver" in window;
+
+ if (!isBot && supportsIntersectionObserver) {
+ let disqus_observer = new IntersectionObserver(function(entries) {
+ if (entries[0].isIntersecting) {
+ lazyLoadDisqusJS();
+ disqus_observer.disconnect();
+ }
+ });
+ disqus_observer.observe(document.getElementById('disqus_thread'));
+ } else {
+ lazyLoadDisqusJS();
+ }
+ </script>
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+</div>
+{{- end -}} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/giscus.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/giscus.html
new file mode 100644
index 0000000..97fbb77
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/giscus.html
@@ -0,0 +1,52 @@
+{{- with .Site.Params.comments.giscus -}}
+<script
+ src="https://giscus.app/client.js"
+ data-repo="{{- .repo -}}"
+ data-repo-id="{{- .repoID -}}"
+ data-category="{{- .category -}}"
+ data-category-id="{{- .categoryID -}}"
+ data-mapping="{{- default `title` .mapping -}}"
+ data-strict="{{- default 0 .strict -}}"
+ data-reactions-enabled="{{- default 1 .reactionsEnabled -}}"
+ data-emit-metadata="{{- default 0 .emitMetadata -}}"
+ data-input-position="{{- default `top` .inputPosition -}}"
+ data-theme="{{- default `light` .lightTheme -}}"
+ data-lang="{{- default (default `en` $.Language.LanguageCode) .lang -}}"
+ data-loading="{{- .loading -}}"
+ crossorigin="anonymous"
+ async
+></script>
+<script>
+ function setGiscusTheme(theme) {
+ let giscus = document.querySelector("iframe.giscus-frame");
+ if (giscus) {
+ giscus.contentWindow.postMessage(
+ {
+ giscus: {
+ setConfig: {
+ theme: theme,
+ },
+ },
+ },
+ "https://giscus.app"
+ );
+ }
+ }
+
+ (function () {
+ addEventListener("message", (e) => {
+ if (event.origin !== "https://giscus.app") return;
+ handler();
+ });
+ window.addEventListener("onColorSchemeChange", handler);
+
+ function handler() {
+ if (document.documentElement.dataset.scheme === "light") {
+ setGiscusTheme('{{- default "light" .lightTheme -}}');
+ } else {
+ setGiscusTheme('{{- default "dark_dimmed" .darkTheme -}}');
+ }
+ }
+ })();
+</script>
+{{- end -}}
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/gitalk.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/gitalk.html
new file mode 100644
index 0000000..54bfcba
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/gitalk.html
@@ -0,0 +1,31 @@
+{{- with .Site.Params.comments.gitalk -}}
+<div id="gitalk-container"></div>
+<link
+ rel="stylesheet"
+ href="https://cdn.jsdelivr.net/npm/gitalk@1.7.2/dist/gitalk.css"
+/>
+<script src="https://cdn.jsdelivr.net/npm/gitalk@1.7.2/dist/gitalk.min.js"></script>
+<script src="https://cdn.jsdelivr.net/npm/blueimp-md5@2.18.0/js/md5.min.js"></script>
+<script>
+ const gitalk = new Gitalk({
+ clientID: "{{- .clientID -}}",
+ clientSecret: "{{- .clientSecret -}}",
+ repo: "{{- .repo -}}",
+ owner: "{{- .owner -}}",
+ admin: ["{{- .admin -}}"],
+ distractionFreeMode: false, // Facebook-like distraction free mode
+ id: md5(location.pathname), // Max Location.pathname Legth:75 https://github.com/gitalk/gitalk/issues/102
+ proxy: {{- .proxy -}},
+ });
+ (function () {
+ if (
+ ["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1
+ ) {
+ document.getElementById("gitalk-container").innerHTML =
+ "Gitalk comments not available by default when the website is previewed locally.";
+ return;
+ }
+ gitalk.render("gitalk-container");
+ })();
+</script>
+{{ end }}
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/remark42.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/remark42.html
new file mode 100644
index 0000000..18acf1b
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/remark42.html
@@ -0,0 +1,29 @@
+{{- with .Site.Params.comments.remark42 -}}
+<div id="remark42"></div>
+<script>
+ var remark_config = {
+ host: '{{ .host }}',
+ site_id: '{{ .site }}',
+ components: ['embed'],
+ url: '{{ $.Permalink }}',
+ max_shown_comments: {{ default 15 .max_shown_comments }},
+ theme: document.documentElement.dataset.scheme,
+ page_title: '{{ $.Title }}',
+ locale: '{{ default "en" .locale }}',
+ show_email_subscription: {{ default true .show_email_subscription }}
+ };
+
+ !function(e, n) {
+ for (var o = 0; o < e.length; o++) {
+ var r = n.createElement('script'),
+ c = '.js',
+ d = n.head || n.body;
+ 'noModule' in r ? (r.type = 'module', c = '.mjs') : r.async = !0, r.defer = !0, r.src = remark_config.host + '/web/' + e[o] + c, d.appendChild(r)
+ }
+ }(remark_config.components || ['embed'], document);
+
+ window.addEventListener('onColorSchemeChange', (e) => {
+ window.REMARK42.changeTheme(e.detail);
+ })
+</script>
+{{- end -}}
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/twikoo.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/twikoo.html
new file mode 100644
index 0000000..8c22507
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/twikoo.html
@@ -0,0 +1,58 @@
+<script src="//cdn.jsdelivr.net/npm/twikoo@1.6.39/dist/twikoo.all.min.js"></script>
+<div id="tcomment"></div>
+<style>
+ .twikoo {
+ background-color: var(--card-background);
+ border-radius: var(--card-border-radius);
+ box-shadow: var(--shadow-l1);
+ padding: var(--card-padding);
+ }
+ :root[data-scheme="dark"] {
+ --twikoo-body-text-color-main: rgba(255, 255, 255, 0.9);
+ --twikoo-body-text-color: rgba(255, 255, 255, 0.7);
+ }
+ .twikoo .el-input-group__prepend,
+ .twikoo .tk-action-icon,
+ .twikoo .tk-submit-action-icon,
+ .twikoo .tk-time,
+ .twikoo .tk-comments-no,
+ .twikoo .tk-comments-count {
+ color: var(--twikoo-body-text-color);
+ }
+ .twikoo .el-input__inner,
+ .twikoo .el-textarea__inner,
+ .twikoo .tk-preview-container,
+ .twikoo .tk-content,
+ .twikoo .tk-nick,
+ .twikoo .tk-send {
+ color: var(--twikoo-body-text-color-main);
+ }
+ .twikoo .el-button{
+ color: var(--twikoo-body-text-color)!important;
+ }
+ .twikoo .el-input__count {
+ color: var(--twikoo-body-text-color) !important;
+ }
+ .OwO .OwO-body {
+ background-color: var(--body-background) !important;
+ color: var(--body-text-color) !important;
+ }
+</style>
+
+{{- with .Site.Params.comments.twikoo -}}
+<script>
+ twikoo.init({
+ envId: '{{- .envId -}}',
+ el: '#tcomment',
+ {{- with .region -}}
+ region: '{{- . -}}',
+ {{- end -}}
+ {{- with .path -}}
+ path: '{{- . -}}',
+ {{- end -}}
+ {{- with .lang -}}
+ lang: '{{- . -}}',
+ {{- end -}}
+ })
+</script>
+{{- end -}}
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/utterances.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/utterances.html
new file mode 100644
index 0000000..b1e370b
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/utterances.html
@@ -0,0 +1,46 @@
+<script src="https://utteranc.es/client.js"
+ repo="{{ .Site.Params.comments.utterances.repo }}"
+ issue-term="{{ .Site.Params.comments.utterances.issueTerm }}"
+ {{ with .Site.Params.comments.utterances.label }}
+ label="{{ . }}"
+ {{ end }}
+ crossorigin="anonymous"
+ async
+ >
+</script>
+
+<style>
+ .utterances {
+ max-width: unset;
+ }
+</style>
+
+<script>
+ let utterancesLoaded = false;
+
+ function setUtterancesTheme(theme) {
+ let utterances = document.querySelector('.utterances iframe');
+ if (utterances) {
+ utterances.contentWindow.postMessage(
+ {
+ type: 'set-theme',
+ theme: `github-${theme}`
+ },
+ 'https://utteranc.es'
+ );
+ }
+ }
+
+ addEventListener('message', event => {
+ if (event.origin !== 'https://utteranc.es') return;
+
+ /// Called when Utterances is ready
+ utterancesLoaded = true;
+ setUtterancesTheme(document.documentElement.dataset.scheme)
+ });
+
+ window.addEventListener('onColorSchemeChange', (e) => {
+ if (!utterancesLoaded) return;
+ setUtterancesTheme(e.detail)
+ })
+</script>
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html
new file mode 100644
index 0000000..79ac381
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html
@@ -0,0 +1,27 @@
+{{- with .Site.Params.comments.vssue -}}
+<link rel="stylesheet" href="https://unpkg.com/vssue/dist/vssue.min.css" />
+
+<div id="vssue"></div>
+
+<script src="https://unpkg.com/vue@2/dist/vue.runtime.min.js"></script>
+<script src="https://unpkg.com/vssue/dist/vssue.{{ .platform }}.min.js"></script>
+
+<script>
+ new Vue({
+ el: "#vssue",
+ render: (h) =>
+ h("Vssue", {
+ props: {
+ title: "{{ $.Title }}",
+ options: {
+ autoCreateIssue: {{ default false .autoCreateIssue }},
+ owner: "{{ .owner }}",
+ repo: "{{ .repo }}",
+ clientId: "{{ .clientId }}",
+ clientSecret: "{{ .clientSecret }}",
+ },
+ },
+ }),
+ });
+</script>
+{{- end -}}
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/waline.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/waline.html
new file mode 100644
index 0000000..9d1a2a0
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/waline.html
@@ -0,0 +1,34 @@
+<script src='//unpkg.com/@waline/client@v2/dist/waline.js'></script>
+<link href='//unpkg.com/@waline/client@v2/dist/waline.css' rel='stylesheet'/>
+<div id="waline" class="waline-container"></div>
+<style>
+ .waline-container {
+ background-color: var(--card-background);
+ border-radius: var(--card-border-radius);
+ box-shadow: var(--shadow-l1);
+ padding: var(--card-padding);
+ --waline-font-size: var(--article-font-size);
+ }
+ .waline-container .wl-count {
+ color: var(--card-text-color-main);
+ }
+</style>
+
+{{- with .Site.Params.comments.waline -}}
+{{- $config := dict "el" "#waline" "dark" `html[data-scheme="dark"]` -}}
+{{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "imageuploader" "imageUploader" "texrenderer" "texRenderer" -}}
+
+{{- range $key, $val := . -}}
+ {{- if ne $val nil -}}
+ {{- $replaceKey := index $replaceKeys $key -}}
+ {{- $k := default $key $replaceKey -}}
+
+ {{- $config = merge $config (dict $k $val) -}}
+ {{- end -}}
+{{- end -}}
+
+<script>
+ /// Waline client configuration see: https://waline.js.org/en/reference/client.html
+ Waline.init({{ $config | jsonify | safeJS }});
+</script>
+{{- end -}}
diff --git a/themes/hugo-theme-stack/layouts/partials/data/description.html b/themes/hugo-theme-stack/layouts/partials/data/description.html
new file mode 100644
index 0000000..7f6cc32
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/data/description.html
@@ -0,0 +1,17 @@
+<!-- Use site subtitle by default -->
+{{ $description := .Site.Params.sidebar.subtitle }}
+
+<!-- Seprate description exists -->
+{{ if .Site.Params.description }}
+ {{ $description = .Site.Params.description }}
+{{ end }}
+
+{{ if .Description }}
+ <!-- Page description exists -->
+ {{ $description = .Description }}
+{{ else if .IsPage }}
+ <!-- Use page summary -->
+ {{ $description = .Summary }}
+{{ end }}
+
+{{ return (replaceRE "\n" " " $description | plainify) }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/data/title.html b/themes/hugo-theme-stack/layouts/partials/data/title.html
new file mode 100644
index 0000000..85a7bc7
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/data/title.html
@@ -0,0 +1,38 @@
+{{- $title := .Title -}}
+{{- $siteTitle := .Site.Title -}}
+
+{{- if .IsHome -}}
+ <!-- Homepage, and it's pagination -->
+
+ <!-- Build paginator -->
+ {{ $pages := where .Site.RegularPages "Section" "in" .Site.Params.mainSections }}
+ {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
+ {{ $filtered := ($pages | intersect $notHidden) }}
+ {{ $pag := .Paginate ($filtered) }}
+
+ {{ if .Paginator.HasPrev }}
+ <!-- Paginated. Append page number to title -->
+ {{ $title = printf "%s - %s" .Paginator $siteTitle }}
+ {{ else }}
+ {{ $title = $siteTitle}}
+ {{ end }}
+{{- else if eq .Kind "term" -}}
+ <!-- Taxonomy page -->
+
+ <!-- Build paginator -->
+ {{ $notHidden := where .Pages "Params.hidden" "!=" true }}
+ {{ $pag := .Paginate ($notHidden) }}
+
+ <!-- {TAXONOMY_TYPE}: {TAXONOMY_TERM} -->
+ {{ $title = slice (title .Data.Singular) ": " $title }}
+
+ {{ if .Paginator.HasPrev }}
+ <!-- Add page number-->
+ {{ $title = $title | append " - " .Paginator }}
+ {{ end }}
+
+ {{ $title = $title | append " - " $siteTitle }}
+ {{ $title = delimit $title "" }}
+{{- end -}}
+
+{{ return $title }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/footer/components/custom-font.html b/themes/hugo-theme-stack/layouts/partials/footer/components/custom-font.html
new file mode 100644
index 0000000..8e2ff37
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/footer/components/custom-font.html
@@ -0,0 +1,11 @@
+<script>
+ (function () {
+ const customFont = document.createElement('link');
+ customFont.href = "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap";
+
+ customFont.type = "text/css";
+ customFont.rel = "stylesheet";
+
+ document.head.appendChild(customFont);
+ }());
+</script> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/footer/components/script.html b/themes/hugo-theme-stack/layouts/partials/footer/components/script.html
new file mode 100644
index 0000000..3dc96cb
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/footer/components/script.html
@@ -0,0 +1,12 @@
+{{- partial "helper/external" (dict "Context" . "Namespace" "Vibrant") -}}
+
+{{- $opts := dict "minify" hugo.IsProduction -}}
+{{- $script := resources.Get "ts/main.ts" | js.Build $opts | fingerprint -}}
+
+<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
+
+{{- with resources.Get "ts/custom.ts" -}}
+ {{/* Place your custom script in HUGO_SITE_FOLDER/assets/ts/custom.ts */}}
+ {{- $customScript := . | js.Build $opts | fingerprint -}}
+ <script type="text/javascript" src="{{ $customScript.RelPermalink }}" defer></script>
+{{- end -}} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/footer/custom.html b/themes/hugo-theme-stack/layouts/partials/footer/custom.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/footer/custom.html
diff --git a/themes/hugo-theme-stack/layouts/partials/footer/footer.html b/themes/hugo-theme-stack/layouts/partials/footer/footer.html
new file mode 100644
index 0000000..9c28779
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/footer/footer.html
@@ -0,0 +1,23 @@
+{{- $ThemeVersion := "3.29.0" -}}
+<footer class="site-footer">
+ <section class="copyright">
+ &copy;
+ {{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
+ {{ .Site.Params.footer.since }} -
+ {{ end }}
+ {{ now.Format "2006" }} {{ default .Site.Title .Site.Copyright }}
+ </section>
+
+ <section class="powerby">
+ {{ with .Site.Params.footer.customText }}
+ {{ . | safeHTML }} <br/>
+ {{ end }}
+
+ {{- $Generator := `<a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>` -}}
+ {{- $Theme := printf `<b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="%s">Stack</a></b>` $ThemeVersion -}}
+ {{- $DesignedBy := `<a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>` -}}
+
+ {{ T "footer.builtWith" (dict "Generator" $Generator) | safeHTML }} <br />
+ {{ T "footer.designedBy" (dict "Theme" $Theme "DesignedBy" $DesignedBy) | safeHTML }}
+ </section>
+</footer>
diff --git a/themes/hugo-theme-stack/layouts/partials/footer/include.html b/themes/hugo-theme-stack/layouts/partials/footer/include.html
new file mode 100644
index 0000000..4b50a88
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/footer/include.html
@@ -0,0 +1,3 @@
+{{ partialCached "footer/components/script.html" . }}
+{{ partialCached "footer/components/custom-font.html" . }}
+{{ partial "footer/custom.html" . }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/head/colorScheme.html b/themes/hugo-theme-stack/layouts/partials/head/colorScheme.html
new file mode 100644
index 0000000..42f4dd8
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/head/colorScheme.html
@@ -0,0 +1,39 @@
+{{- $defaultColorScheme := default "auto" .Site.Params.colorScheme.default -}}
+{{- if not (default false .Site.Params.colorScheme.toggle) -}}
+ {{/* If toggle is disabled, force default scheme */}}
+ <script>
+ (function() {
+ const colorSchemeKey = 'StackColorScheme';
+ localStorage.setItem(colorSchemeKey, "{{ $defaultColorScheme }}");
+ })();
+ </script>
+{{- else -}}
+ {{/* Otherwise set to default scheme only if no preference is set by user */}}
+ <script>
+ (function() {
+ const colorSchemeKey = 'StackColorScheme';
+ if(!localStorage.getItem(colorSchemeKey)){
+ localStorage.setItem(colorSchemeKey, "{{ $defaultColorScheme }}");
+ }
+ })();
+ </script>
+{{- end -}}
+
+<script>
+ (function() {
+ const colorSchemeKey = 'StackColorScheme';
+ const colorSchemeItem = localStorage.getItem(colorSchemeKey);
+ const supportDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches === true;
+
+ if (colorSchemeItem == 'dark' || colorSchemeItem === 'auto' && supportDarkMode) {
+ /**
+ * Enable dark mode if:
+ * 1. If dark mode is set already (in local storage)
+ * 2. Auto mode & prefere color scheme is dark
+ */
+ document.documentElement.dataset.scheme = 'dark';
+ } else {
+ document.documentElement.dataset.scheme = 'light';
+ }
+ })();
+</script>
diff --git a/themes/hugo-theme-stack/layouts/partials/head/custom.html b/themes/hugo-theme-stack/layouts/partials/head/custom.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/head/custom.html
diff --git a/themes/hugo-theme-stack/layouts/partials/head/head.html b/themes/hugo-theme-stack/layouts/partials/head/head.html
new file mode 100644
index 0000000..a7991c1
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/head/head.html
@@ -0,0 +1,26 @@
+<meta charset='utf-8'>
+<meta name='viewport' content='width=device-width, initial-scale=1'>
+
+{{- $description := partialCached "data/description" . .RelPermalink -}}
+<meta name='description' {{ printf "content=%q" $description | safeHTMLAttr }}>
+{{ with .Params.Keywords }}<meta name="keywords" content="{{ delimit . ", " }}">{{ end }}
+
+{{- $title := partial "data/title" . -}}
+<title>{{ $title }}</title>
+
+<link rel='canonical' href='{{ .Permalink }}'>
+
+{{- partial "head/style.html" . -}}
+{{- partial "head/script.html" . -}}
+{{- partial "head/opengraph/include.html" . -}}
+
+{{- range .AlternativeOutputFormats -}}
+ <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
+{{- end -}}
+
+{{ with .Site.Params.favicon }}
+ <link rel="shortcut icon" href="{{ . | relURL }}" />
+{{ end }}
+
+{{- template "_internal/google_analytics.html" . -}}
+{{- partial "head/custom.html" . -}}
diff --git a/themes/hugo-theme-stack/layouts/partials/head/opengraph/include.html b/themes/hugo-theme-stack/layouts/partials/head/opengraph/include.html
new file mode 100644
index 0000000..3a43f48
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/head/opengraph/include.html
@@ -0,0 +1,2 @@
+{{ partial "head/opengraph/provider/base" . }}
+{{ partial "head/opengraph/provider/twitter" . }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/base.html b/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/base.html
new file mode 100644
index 0000000..055745d
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/base.html
@@ -0,0 +1,43 @@
+{{- $title := partialCached "data/title" . .RelPermalink -}}
+{{- $description := partialCached "data/description" . .RelPermalink -}}
+
+<meta property='og:title' {{ printf "content=%q" $title | safeHTMLAttr }}>
+<meta property='og:description' {{ printf "content=%q" $description | safeHTMLAttr }}>
+<meta property='og:url' content='{{ .Permalink }}'>
+<meta property='og:site_name' content='{{ .Site.Title }}'>
+<meta property='og:type' content='
+ {{- if .IsPage -}}
+ article
+ {{- else -}}
+ website
+ {{- end -}}
+'>
+
+{{- with .Params.locale -}}
+ <meta property='og:locale' content='{{ . }}'>
+{{- end -}}
+
+{{- if .IsPage -}}
+ <meta property='article:section' content='{{ .Section | title }}' />
+ {{- range .Params.tags -}}
+ <meta property='article:tag' content='{{ . }}' />
+ {{- end -}}
+{{- end -}}
+
+{{- if .IsPage -}}
+ {{- if not .Date.IsZero -}}
+ <meta property='article:published_time' content='{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}'/>
+ {{- end -}}
+ {{- if not .Lastmod.IsZero -}}
+ <meta property='article:modified_time' content='{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}'/>
+ {{- end -}}
+{{- else -}}
+ {{- if not .Site.Lastmod.IsZero -}}
+ <meta property='og:updated_time' content='{{ .Site.Lastmod.Format " 2006-01-02T15:04:05-07:00 " | safeHTML }}'/>
+ {{- end -}}
+{{- end -}}
+
+{{ $image := partialCached "helper/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" }}
+{{- if $image.exists -}}
+ <meta property='og:image' content='{{ absURL $image.permalink }}' />
+{{- end -}} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/twitter.html b/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/twitter.html
new file mode 100644
index 0000000..c39eba3
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/twitter.html
@@ -0,0 +1,16 @@
+{{- with .Site.Params.opengraph.twitter.site -}}
+ <meta name="twitter:site" content="@{{ . }}">
+ <meta name="twitter:creator" content="@{{ . }}">
+{{- end -}}
+
+{{- $title := partialCached "data/title" . .RelPermalink -}}
+{{- $description := partialCached "data/description" . .RelPermalink -}}
+
+<meta name="twitter:title" {{ printf "content=%q" $title | safeHTMLAttr }}>
+<meta name="twitter:description" {{ printf "content=%q" $description | safeHTMLAttr }}>
+
+{{- $image := partialCached "helper/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" -}}
+{{- if $image.exists -}}
+ <meta name="twitter:card" content="{{ default `summary_large_image` .Site.Params.opengraph.twitter.card }}">
+ <meta name="twitter:image" content='{{ absURL $image.permalink }}' />
+{{- end -}} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/head/script.html b/themes/hugo-theme-stack/layouts/partials/head/script.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/head/script.html
diff --git a/themes/hugo-theme-stack/layouts/partials/head/style.html b/themes/hugo-theme-stack/layouts/partials/head/style.html
new file mode 100644
index 0000000..30ca26e
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/head/style.html
@@ -0,0 +1,3 @@
+{{ $sass := resources.Get "scss/style.scss" }}
+{{ $style := $sass | toCSS | minify | resources.Fingerprint "sha256" }}
+<link rel="stylesheet" href="{{ $style.RelPermalink }}"> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/helper/external.html b/themes/hugo-theme-stack/layouts/partials/helper/external.html
new file mode 100644
index 0000000..88d9525
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/helper/external.html
@@ -0,0 +1,29 @@
+{{- $List := index .Context.Site.Data.external .Namespace -}}
+{{- with $List -}}
+ {{- range . -}}
+ {{- if eq .type "script" -}}
+ <script
+ src="{{ .src }}"
+ {{- with .integrity -}}
+ integrity="{{ . }}"
+ {{- end -}}
+ crossorigin="anonymous"
+ {{ if .defer }}defer{{ end }}
+ >
+ </script>
+ {{- else if eq .type "style" -}}
+ <link
+ rel="stylesheet"
+ href="{{ .src }}"
+ {{- with .integrity -}}
+ integrity="{{ . }}"
+ {{- end -}}
+ crossorigin="anonymous"
+ >
+ {{- else -}}
+ {{- errorf "Error: unknown external resource type: %s" .type -}}
+ {{- end -}}
+ {{- end -}}
+{{- else -}}
+ {{- errorf "Error: external resource '%s' is not found" .Namespace -}}
+{{- end -}} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/helper/icon.html b/themes/hugo-theme-stack/layouts/partials/helper/icon.html
new file mode 100644
index 0000000..72162e8
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/helper/icon.html
@@ -0,0 +1,6 @@
+{{- $iconFile := resources.GetMatch (printf "icons/%s.svg" .) -}}
+{{- if $iconFile -}}
+ {{- $iconFile.Content | safeHTML -}}
+{{- else -}}
+ {{- errorf "Error: icon '%s.svg' is not found under 'assets/icons' folder" . -}}
+{{- end -}} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/helper/image.html b/themes/hugo-theme-stack/layouts/partials/helper/image.html
new file mode 100644
index 0000000..11fc3b6
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/helper/image.html
@@ -0,0 +1,61 @@
+{{ $result := dict "exists" false "permalink" nil "resource" nil "isDefault" false }}
+{{ $imageField := default "image" .Context.Site.Params.featuredImageField }}
+{{ $imageValue := index .Context.Params $imageField }}
+
+{{ if $imageValue }}
+ <!-- If page has `image` field set -->
+ {{ $result = merge $result (dict "exists" true) }}
+ {{ $url := urls.Parse $imageValue }}
+
+ {{ if or (eq $url.Scheme "http") (eq $url.Scheme "https") }}
+ <!-- Is an external image -->
+ {{ $result = merge $result (dict "permalink" $imageValue) }}
+ {{ else }}
+ {{ $pageResourceImage := .Context.Resources.GetMatch (printf "%s" ($imageValue | safeURL)) }}
+
+ {{ if $pageResourceImage }}
+ <!-- If image is found under page bundle -->
+ {{ $result = merge $result (dict "permalink" $pageResourceImage.RelPermalink) }}
+
+ <!-- Disable SVG image processing, not supported by Hugo -->
+ {{ if ne (path.Ext $imageValue) ".svg" }}
+ {{ $result = merge $result (dict "resource" $pageResourceImage) }}
+ {{ end }}
+ {{ else }}
+ <!-- Can not find the image under page bundle. Could be a relative linked image -->
+ {{ $result = merge $result (dict "permalink" (relURL $imageValue)) }}
+ {{ end }}
+
+ {{ end }}
+
+{{ else if and (ne .Type nil) (index .Context.Site.Params.defaultImage .Type) }}
+ <!-- Type arg is set, check for defaultImage setting -->
+ {{ $defaultImageSetting := index .Context.Site.Params.defaultImage .Type }}
+
+ {{ if $defaultImageSetting.enabled }}
+ {{ $result = merge $result (dict "isDefault" true) }}
+ {{ $result = merge $result (dict "exists" true) }}
+
+ {{ if $defaultImageSetting.local }}
+ {{ $siteResourceImage := resources.GetMatch (printf "%s" ($defaultImageSetting.src | safeURL)) }}
+
+ {{ if $siteResourceImage }}
+ <!-- Try search image under site's assets folder -->
+ {{ $result = merge $result (dict "permalink" $siteResourceImage.RelPermalink) }}
+ {{ $result = merge $result (dict "resource" $siteResourceImage) }}
+ {{ else }}
+ <!-- Can not find the image -->
+ {{ errorf "Failed loading image: %q" $defaultImageSetting.src }}
+ {{ $result = merge $result (dict "exists" false) }}
+ {{ end }}
+
+ {{ else }}
+ <!-- External image -->
+ {{ $result = merge $result (dict "permalink" (relURL $defaultImageSetting.src)) }}
+ {{ end }}
+
+ {{ end }}
+
+{{ end }}
+
+{{ return $result }}
diff --git a/themes/hugo-theme-stack/layouts/partials/pagination.html b/themes/hugo-theme-stack/layouts/partials/pagination.html
new file mode 100644
index 0000000..7756050
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/pagination.html
@@ -0,0 +1,26 @@
+{{ if gt .Paginator.TotalPages 1 }}
+ <nav class='pagination'>
+ {{ $.Scratch.Set "hasPrevDots" false }}
+ {{ $.Scratch.Set "hasNextDots" false }}
+
+ {{ range .Paginator.Pagers }}
+ {{ if eq . $.Paginator }}
+ <span class='page-link current'>
+ {{- .PageNumber -}}
+ </span>
+ {{ else if or (or (eq . $.Paginator.First) (eq . $.Paginator.Prev)) (or (eq . $.Paginator.Next) (eq . $.Paginator.Last )) }}
+ <a class='page-link' href='{{ .URL }}'>
+ {{- .PageNumber -}}
+ </a>
+ {{ else }}
+ {{ if and (not ($.Scratch.Get "hasPrevDots")) (lt .PageNumber $.Paginator.PageNumber) }}
+ {{ $.Scratch.Set "hasPrevDots" true }}
+ <span class='page-link dots'>&hellip;</span>
+ {{ else if and (not ($.Scratch.Get "hasNextDots")) (gt .PageNumber $.Paginator.PageNumber) }}
+ {{ $.Scratch.Set "hasNextDots" true }}
+ <span class='page-link dots'>&hellip;</span>
+ {{ end }}
+ {{ end }}
+ {{ end }}
+ </nav>
+{{ end }}
diff --git a/themes/hugo-theme-stack/layouts/partials/sidebar/left.html b/themes/hugo-theme-stack/layouts/partials/sidebar/left.html
new file mode 100644
index 0000000..21e7d3e
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/sidebar/left.html
@@ -0,0 +1,103 @@
+<aside class="sidebar left-sidebar sticky {{ if .Site.Params.sidebar.compact }}compact{{ end }}">
+ <button class="hamburger hamburger--spin" type="button" id="toggle-menu" aria-label="{{ T `toggleMenu` }}">
+ <span class="hamburger-box">
+ <span class="hamburger-inner"></span>
+ </span>
+ </button>
+
+ <header>
+ {{ with .Site.Params.sidebar.avatar }}
+ {{ if (default true .enabled) }}
+ <figure class="site-avatar">
+ <a href="{{ .Site.BaseURL | relLangURL }}">
+ {{ if not .local }}
+ <img src="{{ .src }}" width="300" height="300" class="site-logo" loading="lazy" alt="Avatar">
+ {{ else }}
+ {{ $avatar := resources.Get (.src) }}
+
+ {{ if $avatar }}
+ {{ $avatarResized := $avatar.Resize "300x" }}
+ <img src="{{ $avatarResized.RelPermalink }}" width="{{ $avatarResized.Width }}"
+ height="{{ $avatarResized.Height }}" class="site-logo" loading="lazy" alt="Avatar">
+ {{ else }}
+ {{ errorf "Failed loading avatar from %q" . }}
+ {{ end }}
+ {{ end }}
+ </a>
+ {{ with $.Site.Params.sidebar.emoji }}
+ <span class="emoji">{{ . }}</span>
+ {{ end }}
+ </figure>
+ {{ end }}
+ {{ end }}
+
+ <div class="site-meta">
+ <h1 class="site-name"><a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Title }}</a></h1>
+ <h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
+ </div>
+ </header>
+
+ {{- with .Site.Menus.social -}}
+ <ol class="menu-social">
+ {{ range . }}
+ <li>
+ <a
+ href='{{ .URL }}'
+ {{ if eq (default true .Params.newTab) true }}target="_blank"{{ end }}
+ {{ with .Name }}title="{{ . }}"{{ end }}
+ rel="me"
+ >
+ {{ $icon := default "link" .Params.Icon }}
+ {{ with $icon }}
+ {{ partial "helper/icon" . }}
+ {{ end }}
+ </a>
+ </li>
+ {{ end }}
+ </ol>
+ {{- end -}}
+
+ <ol class="menu" id="main-menu">
+ {{ $currentPage := . }}
+ {{ range .Site.Menus.main }}
+ {{ $active := or (eq $currentPage.Title .Name) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
+ <li {{ if $active }} class='current' {{ end }}>
+ <a href='{{ .URL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}>
+ {{ $icon := default .Pre .Params.Icon }}
+ {{ if .Pre }}
+ {{ warnf "Menu item [%s] is using [pre] field to set icon, please use [params.icon] instead.\nMore information: https://stack.jimmycai.com/config/menu" .URL }}
+ {{ end }}
+ {{ with $icon }}
+ {{ partial "helper/icon" . }}
+ {{ end }}
+ <span>{{- .Name -}}</span>
+ </a>
+ </li>
+ {{ end }}
+ <li class="menu-bottom-section">
+ <ol class="menu">
+ {{- $currentLanguageCode := .Language.Lang -}}
+ {{ if ( compare.Gt .Site.Home.AllTranslations.Len 1 ) }}
+ {{ with .Site.Home.AllTranslations }}
+ <li id="i18n-switch">
+ {{ partial "helper/icon" "language" }}
+ <select name="language" title="language" onchange="window.location.href = this.selectedOptions[0].value">
+ {{ range . }}
+ <option value="{{ .Permalink }}" {{ if eq .Language.Lang $currentLanguageCode }}selected{{ end }}>{{ .Language.LanguageName }}</option>
+ {{ end }}
+ </select>
+ </li>
+ {{ end }}
+ {{ end }}
+
+ {{ if (default false .Site.Params.colorScheme.toggle) }}
+ <li id="dark-mode-toggle">
+ {{ partial "helper/icon" "toggle-left" }}
+ {{ partial "helper/icon" "toggle-right" }}
+ <span>{{ T "darkMode" }}</span>
+ </li>
+ {{ end }}
+ </ol>
+ </li>
+ </ol>
+</aside>
diff --git a/themes/hugo-theme-stack/layouts/partials/sidebar/right.html b/themes/hugo-theme-stack/layouts/partials/sidebar/right.html
new file mode 100644
index 0000000..6333f10
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/sidebar/right.html
@@ -0,0 +1,16 @@
+{{- $scope := default "homepage" .Scope -}}
+{{- $context := .Context -}}
+{{- with (index .Context.Site.Params.widgets $scope) -}}
+ <aside class="sidebar right-sidebar sticky">
+ {{ range $widget := . }}
+ {{ if templates.Exists (printf "partials/widget/%s.html" .type) }}
+ <!-- Ensure that the `params` is not nil -->
+ {{- $params := default dict .params -}}
+
+ {{ partial (printf "widget/%s" .type) (dict "Context" $context "Params" $params) }}
+ {{ else }}
+ {{ warnf "Widget %s not found" .type }}
+ {{ end }}
+ {{ end }}
+ </aside>
+{{ end }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/widget/archives.html b/themes/hugo-theme-stack/layouts/partials/widget/archives.html
new file mode 100644
index 0000000..1f2abc5
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/widget/archives.html
@@ -0,0 +1,35 @@
+{{- $query := first 1 (where .Context.Site.Pages "Layout" "==" "archives") -}}
+{{- $context := .Context -}}
+{{- $limit := default 5 .Params.limit -}}
+{{- if $query -}}
+ {{- $archivesPage := index $query 0 -}}
+ <section class="widget archives">
+ <div class="widget-icon">
+ {{ partial "helper/icon" "infinity" }}
+ </div>
+ <h2 class="widget-title section-title">{{ T "widget.archives.title" }}</h2>
+
+ {{ $pages := where $context.Site.RegularPages "Type" "in" $context.Site.Params.mainSections }}
+ {{ $notHidden := where $context.Site.RegularPages "Params.hidden" "!=" true }}
+ {{ $filtered := ($pages | intersect $notHidden) }}
+ {{ $archives := $filtered.GroupByDate "2006" }}
+
+ <div class="widget-archive--list">
+ {{ range $index, $item := first (add $limit 1) ($archives) }}
+ {{- $id := lower (replace $item.Key " " "-") -}}
+ <div class="archives-year">
+ <a href="{{ $archivesPage.RelPermalink }}#{{ $id }}">
+ {{ if eq $index $limit }}
+ <span class="year">{{ T "widget.archives.more" }}</span>
+ {{ else }}
+ <span class="year">{{ .Key }}</span>
+ <span class="count">{{ len $item.Pages }}</span>
+ {{ end }}
+ </a>
+ </div>
+ {{ end }}
+ </div>
+ </section>
+{{- else -}}
+ {{- warnf "Archives page not found. Create a page with layout: archives." -}}
+{{- end -}} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/widget/categories.html b/themes/hugo-theme-stack/layouts/partials/widget/categories.html
new file mode 100644
index 0000000..10c8a35
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/widget/categories.html
@@ -0,0 +1,16 @@
+{{- $context := .Context -}}
+{{- $limit := default 10 .Params.limit -}}
+<section class="widget tagCloud">
+ <div class="widget-icon">
+ {{ partial "helper/icon" "categories" }}
+ </div>
+ <h2 class="widget-title section-title">{{ T "widget.categoriesCloud.title" }}</h2>
+
+ <div class="tagCloud-tags">
+ {{ range first $limit $context.Site.Taxonomies.categories.ByCount }}
+ <a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
+ {{ .Page.Title }}
+ </a>
+ {{ end }}
+ </div>
+</section>
diff --git a/themes/hugo-theme-stack/layouts/partials/widget/search.html b/themes/hugo-theme-stack/layouts/partials/widget/search.html
new file mode 100644
index 0000000..7b0fc73
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/widget/search.html
@@ -0,0 +1,16 @@
+{{- $query := first 1 (where .Context.Site.Pages "Layout" "==" "search") -}}
+{{- if $query -}}
+ {{- $searchPage := index $query 0 -}}
+ <form action="{{ $searchPage.RelPermalink }}" class="search-form widget" {{ with .OutputFormats.Get "json" -}}data-json="{{ .Permalink }}" {{- end }}>
+ <p>
+ <label>{{ T "search.title" }}</label>
+ <input name="keyword" required placeholder="{{ T `search.placeholder` }}" />
+
+ <button title="{{ T `search.title` }}">
+ {{ partial "helper/icon" "search" }}
+ </button>
+ </p>
+ </form>
+{{- else -}}
+ {{- warnf "Search page not found. Create a page with layout: search." -}}
+{{- end -}} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/widget/tag-cloud.html b/themes/hugo-theme-stack/layouts/partials/widget/tag-cloud.html
new file mode 100644
index 0000000..e64e5e2
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/widget/tag-cloud.html
@@ -0,0 +1,16 @@
+{{- $context := .Context -}}
+{{- $limit := default 10 .Params.limit -}}
+<section class="widget tagCloud">
+ <div class="widget-icon">
+ {{ partial "helper/icon" "tag" }}
+ </div>
+ <h2 class="widget-title section-title">{{ T "widget.tagCloud.title" }}</h2>
+
+ <div class="tagCloud-tags">
+ {{ range first $limit $context.Site.Taxonomies.tags.ByCount }}
+ <a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
+ {{ .Page.Title }}
+ </a>
+ {{ end }}
+ </div>
+</section> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/partials/widget/toc.html b/themes/hugo-theme-stack/layouts/partials/widget/toc.html
new file mode 100644
index 0000000..e311de3
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/widget/toc.html
@@ -0,0 +1,12 @@
+{{ if (.Context.Scratch.Get "TOCEnabled") }}
+ <section class="widget archives">
+ <div class="widget-icon">
+ {{ partial "helper/icon" "hash" }}
+ </div>
+ <h2 class="widget-title section-title">{{ T "article.tableOfContents" }}</h2>
+
+ <div class="widget--toc">
+ {{ .Context.TableOfContents }}
+ </div>
+ </section>
+{{ end }} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/shortcodes/bilibili.html b/themes/hugo-theme-stack/layouts/shortcodes/bilibili.html
new file mode 100644
index 0000000..cb72e43
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/shortcodes/bilibili.html
@@ -0,0 +1,23 @@
+{{ $vid := (.Get 0) }}
+{{ $videopage := default 1 (.Get 1) }}
+{{ $basicQuery := querify "page" $videopage "high_quality" 1 "as_wide" 1 }}
+{{ $videoQuery := "" }}
+
+{{ if strings.HasPrefix (lower $vid) "av" }}
+ {{ $videoQuery = querify "aid" (strings.TrimPrefix "av" (lower $vid)) }}
+{{ else if strings.HasPrefix (lower $vid) "bv" }}
+ {{ $videoQuery = querify "bvid" $vid }}
+{{ else }}
+ <p>Bilibili 视频av号或BV号错误!请检查视频av号或BV号是否正确</p>
+ <p>当前视频av或BV号:{{ $vid }},视频分P:{{ $videopage }}</p>
+{{ end }}
+
+<div class="video-wrapper">
+ <iframe src="https://player.bilibili.com/player.html?{{ $basicQuery | safeURL }}&{{ $videoQuery | safeURL }}"
+ scrolling="no"
+ frameborder="no"
+ framespacing="0"
+ allowfullscreen="true"
+ >
+ </iframe>
+</div>
diff --git a/themes/hugo-theme-stack/layouts/shortcodes/gitlab.html b/themes/hugo-theme-stack/layouts/shortcodes/gitlab.html
new file mode 100644
index 0000000..b5a16cf
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/shortcodes/gitlab.html
@@ -0,0 +1,4 @@
+<script
+ type="application/javascript"
+ src="https://gitlab.com/-/snippets/{{ index .Params 0 }}.js"
+></script> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/shortcodes/quote.html b/themes/hugo-theme-stack/layouts/shortcodes/quote.html
new file mode 100644
index 0000000..09bb07c
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/shortcodes/quote.html
@@ -0,0 +1,15 @@
+<blockquote>
+ <p>{{ .Inner | markdownify }}</p>
+ {{- if or (.Get "author") (.Get "source") -}}
+ <span class="cite"><span>― </span>
+ {{- if .Get "author" -}}
+ <span>
+ {{- .Get "author" -}}{{- if .Get "source" -}}, {{ end -}}
+ </span>
+ {{- end -}}
+ {{- with .Get "url" -}}<a href="{{ . }}">{{- end -}}
+ <cite>{{ .Get "source" }}</cite>
+ {{- if .Get "url" -}}</a>{{- end -}}
+ </span>
+ {{- end -}}
+</blockquote> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/shortcodes/tencent.html b/themes/hugo-theme-stack/layouts/shortcodes/tencent.html
new file mode 100644
index 0000000..463dec5
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/shortcodes/tencent.html
@@ -0,0 +1,10 @@
+{{ $vid := .Get 0 }}
+<div class="video-wrapper">
+ <iframe src="https://v.qq.com/txp/iframe/player.html?vid={{ $vid }}&auto=0"
+ scrolling="no"
+ frameborder="no"
+ framespacing="0"
+ allowfullscreen="true"
+ >
+ </iframe>
+</div> \ No newline at end of file
diff --git a/themes/hugo-theme-stack/layouts/shortcodes/video.html b/themes/hugo-theme-stack/layouts/shortcodes/video.html
new file mode 100644
index 0000000..5324754
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/shortcodes/video.html
@@ -0,0 +1,14 @@
+{{- $src := .Get "src" | default (.Get 0) -}}
+<div class="video-wrapper">
+ <video
+ controls
+ src="{{- $src -}}"
+ {{ with .Get "poster" }}poster="{{- . -}}"{{ end }}
+ {{ with .Get "autoplay" }}autoplay{{ end }}
+ >
+ <p>
+ Your browser doesn't support HTML5 video. Here is a
+ <a href="{{- $src -}}">link to the video</a> instead.
+ </p>
+ </video>
+</div>
diff --git a/themes/hugo-theme-stack/layouts/shortcodes/youtube.html b/themes/hugo-theme-stack/layouts/shortcodes/youtube.html
new file mode 100644
index 0000000..2f85931
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/shortcodes/youtube.html
@@ -0,0 +1,13 @@
+{{- $pc := .Page.Site.Config.Privacy.YouTube -}}
+{{- if not $pc.Disable -}}
+{{- $ytHost := cond $pc.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" -}}
+{{- $id := .Get "id" | default (.Get 0) -}}
+<div class="video-wrapper">
+ <iframe loading="lazy"
+ src="https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}?autoplay=1{{ end }}{{ end }}"
+ allowfullscreen
+ title="YouTube Video"
+ >
+ </iframe>
+</div>
+{{ end -}} \ No newline at end of file
diff --git a/themes/hugo-theme-stack/netlify.toml b/themes/hugo-theme-stack/netlify.toml
new file mode 100644
index 0000000..b7cd29f
--- /dev/null
+++ b/themes/hugo-theme-stack/netlify.toml
@@ -0,0 +1,26 @@
+[build]
+ publish = "exampleSite/public"
+
+[build.environment]
+ HUGO_VERSION = "0.124.0"
+ HUGO_THEME = "repo"
+
+[context.production]
+ command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${URL}"
+ [context.production.environment]
+ HUGO_ENV = "production"
+
+[context.branch-deploy]
+ command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}"
+
+[context.deploy-preview]
+ command = "cd exampleSite && hugo --gc --themesDir ../.. -b ${DEPLOY_PRIME_URL}"
+
+[[plugins]]
+ package = "netlify-plugin-hugo-cache-resources"
+
+ [plugins.inputs]
+ # If it should show more verbose logs (optional, default = true)
+ debug = true
+ # Relative path to source directory in case you use Hugo's "--s" option
+ srcdir = "exampleSite"
diff --git a/themes/hugo-theme-stack/theme.toml b/themes/hugo-theme-stack/theme.toml
new file mode 100644
index 0000000..6c5ea62
--- /dev/null
+++ b/themes/hugo-theme-stack/theme.toml
@@ -0,0 +1,27 @@
+# theme.toml template for a Hugo theme
+# See https://github.com/gohugoio/hugoThemes#themetoml for an example
+
+name = "Stack"
+license = "GPL-3.0-only"
+licenselink = "https://github.com/CaiJimmy/hugo-theme-stack/blob/master/LICENSE"
+description = "Card-style Hugo theme designed for bloggers"
+homepage = "https://github.com/CaiJimmy/hugo-theme-stack"
+demosite = "https://demo.stack.jimmycai.com"
+
+tags = ["blog", "responsive", "clean", "light", "dark", "personal"]
+
+features = [
+ "disqus",
+ "photoswipe",
+ "opengraph",
+ "widgets",
+ "darkmode",
+ "table of contents",
+ "search",
+]
+
+min_version = "0.123.0"
+
+[author]
+name = "Jimmy Cai"
+homepage = "https://jimmycai.com"