From 956e73d0e45ae0be12c7d0017f02b8b5cfc0b918 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 26 Aug 2024 17:13:18 +0200 Subject: [PATCH] [hugo] feat: update --- themes/hugo-coder/.editorconfig | 2 +- themes/hugo-coder/.github/FUNDING.yml | 1 + .../.github/ISSUE_TEMPLATE/bug_report.md | 30 + .../.github/ISSUE_TEMPLATE/feature_request.md | 11 + .../.github/ISSUE_TEMPLATE/question.md | 11 + themes/hugo-coder/.gitignore | 8 +- themes/hugo-coder/CONTRIBUTORS.md | 80 +- themes/hugo-coder/Makefile | 20 +- themes/hugo-coder/README.md | 47 +- themes/hugo-coder/archetypes/posts.md | 3 +- themes/hugo-coder/assets/js/coder.js | 97 + themes/hugo-coder/assets/js/purify.min.js | 3 + themes/hugo-coder/assets/scss/_base.scss | 164 +- themes/hugo-coder/assets/scss/_base_dark.scss | 66 +- themes/hugo-coder/assets/scss/_base_rtl.scss | 1 + themes/hugo-coder/assets/scss/_content.scss | 156 +- .../hugo-coder/assets/scss/_content_dark.scss | 23 +- .../hugo-coder/assets/scss/_content_rtl.scss | 6 +- themes/hugo-coder/assets/scss/_float.scss | 38 + .../hugo-coder/assets/scss/_float_dark.scss | 27 + themes/hugo-coder/assets/scss/_footer.scss | 8 +- .../hugo-coder/assets/scss/_footer_dark.scss | 4 +- themes/hugo-coder/assets/scss/_mastodon.scss | 73 + .../hugo-coder/assets/scss/_navigation.scss | 125 +- .../assets/scss/_navigation_dark.scss | 40 +- .../assets/scss/_navigation_rtl.scss | 6 +- themes/hugo-coder/assets/scss/_notices.scss | 111 + .../hugo-coder/assets/scss/_notices_dark.scss | 17 + .../hugo-coder/assets/scss/_pagination.scss | 24 +- themes/hugo-coder/assets/scss/_syntax.scss | 86 + .../hugo-coder/assets/scss/_syntax_dark.scss | 98 + themes/hugo-coder/assets/scss/_tabs.scss | 77 + themes/hugo-coder/assets/scss/_tabs_dark.scss | 27 + .../hugo-coder/assets/scss/_taxonomies.scss | 20 + .../assets/scss/_taxonomies_dark.scss | 22 + themes/hugo-coder/assets/scss/_variables.scss | 58 +- themes/hugo-coder/assets/scss/coder-dark.scss | 5 + themes/hugo-coder/assets/scss/coder.scss | 12 + .../hugo-coder/assets/scss/css/normalize.css | 350 ++ .../assets/scss/font-awesome/LICENSE.txt | 165 + .../assets/scss/font-awesome/_animated.scss | 152 + .../scss/font-awesome/_bordered-pulled.scss | 20 + .../assets/scss/font-awesome/_core.scss | 43 + .../scss/font-awesome/_fixed-width.scss | 7 + .../assets/scss/font-awesome/_functions.scss | 57 + .../assets/scss/font-awesome/_icons.scss | 10 + .../assets/scss/font-awesome/_list.scss | 18 + .../assets/scss/font-awesome/_mixins.scss | 72 + .../scss/font-awesome/_rotated-flipped.scss | 31 + .../scss/font-awesome/_screen-reader.scss | 14 + .../assets/scss/font-awesome/_shims.scss | 1578 ++++++ .../assets/scss/font-awesome/_sizing.scss | 16 + .../assets/scss/font-awesome/_stacked.scss | 32 + .../assets/scss/font-awesome/_variables.scss | 5021 +++++++++++++++++ .../assets/scss/font-awesome/brands.scss | 30 + .../assets/scss/font-awesome/fontawesome.scss | 21 + .../assets/scss/font-awesome/regular.scss | 27 + .../assets/scss/font-awesome/solid.scss | 27 + .../assets/scss/font-awesome/v4-shims.scss | 11 + themes/hugo-coder/docs/analytics.md | 21 + .../docs/analytics/applicationinsights.md | 6 + themes/hugo-coder/docs/analytics/baidu.md | 25 + themes/hugo-coder/docs/analytics/clicky.md | 6 + .../hugo-coder/docs/analytics/cloudflare.md | 6 + themes/hugo-coder/docs/analytics/fathom.md | 7 + .../hugo-coder/docs/analytics/goatcounter.md | 6 + .../docs/analytics/googleanalytics.md | 3 + .../docs/analytics/googletagmanager.md | 6 + themes/hugo-coder/docs/analytics/matomo.md | 7 + .../docs/analytics/microanalytics.md | 7 + themes/hugo-coder/docs/analytics/pirsch.md | 6 + themes/hugo-coder/docs/analytics/plausible.md | 7 + themes/hugo-coder/docs/analytics/umami.md | 9 + themes/hugo-coder/docs/analytics/vercel.md | 6 + themes/hugo-coder/docs/analytics/wideangle.md | 25 + themes/hugo-coder/docs/comment-system.md | 1 + themes/hugo-coder/docs/configurations.md | 350 ++ themes/hugo-coder/docs/contributing.md | 1 + themes/hugo-coder/docs/faq.md | 1 + themes/hugo-coder/docs/home.md | 19 + themes/hugo-coder/docs/multilingual-mode.md | 74 + themes/hugo-coder/docs/quick-start.md | 23 + themes/hugo-coder/exampleSite/config.toml | 161 - .../hugo-coder/exampleSite/content/about.md | 36 +- .../exampleSite/content/about.pt-br.md | 25 +- .../content/authors/hugo-authors/_index.md | 5 + .../authors/hugo-authors/_index.pt-br.md | 6 + .../content/categories/syntax/_index.pt-br.md | 6 + .../content/posts/creating-a-new-theme.md | 1145 ---- .../exampleSite/content/posts/dummy.pt-br.md | 9 - .../content/posts/emoji-support.md | 57 + .../content/posts/emoji-support.pt-br.md | 57 + .../content/posts/external-post.md | 13 +- .../content/posts/external-post.pt-br.md | 10 + .../content/posts/goisforlovers.md | 344 -- .../content/posts/html-and-css-only-tabs.md | 134 + .../posts/html-and-css-only-tabs.pt-br.md | 133 + .../content/posts/hugoisforlovers.md | 89 - .../content/posts/markdown-syntax.md | 168 + .../content/posts/markdown-syntax.pt-br.md | 164 + .../content/posts/math-typesetting.md | 64 + .../content/posts/math-typesetting.pt-br.md | 64 + .../content/posts/mermaid-support.md | 43 + .../content/posts/mermaid-support.pt-br.md | 43 + .../content/posts/migrate-from-jekyll.md | 167 - .../content/posts/more-rich-content.md | 52 + .../content/posts/more-rich-content.pt-br.md | 52 + .../content/posts/placeholder-text.md | 47 + .../content/posts/placeholder-text.pt-br.md | 47 + .../content/posts/render-latex-using-katex.md | 38 - .../exampleSite/content/posts/rich-content.md | 42 + .../content/posts/rich-content.pt-br.md | 42 + .../exampleSite/content/posts/theme-demo.md | 80 - .../content/posts/twemoji-support.md | 23 - .../exampleSite/content/projects.pt-br.md | 2 +- .../exampleSite/content/snippets/_index.md | 5 - .../content/snippets/first/index.md | 9 - .../content/snippets/second/index.md | 9 - .../content/tags/shortcodes/_index.pt-br.md | 5 + themes/hugo-coder/exampleSite/hugo.toml | 222 + .../static/images/apple-touch-icon.png | Bin 0 -> 3578 bytes .../exampleSite/static/images/favicon.svg | 13 + themes/hugo-coder/go.mod | 3 + themes/hugo-coder/hugo.toml | 5 + themes/hugo-coder/i18n/ar.toml | 50 +- themes/hugo-coder/i18n/bn.toml | 64 + themes/hugo-coder/i18n/cs.toml | 63 + themes/hugo-coder/i18n/de.toml | 52 +- themes/hugo-coder/i18n/en.toml | 51 +- themes/hugo-coder/i18n/es.toml | 58 +- themes/hugo-coder/i18n/fi.toml | 53 +- themes/hugo-coder/i18n/fr.toml | 47 +- themes/hugo-coder/i18n/he.toml | 49 +- themes/hugo-coder/i18n/hi.toml | 59 +- themes/hugo-coder/i18n/hu.toml | 50 +- themes/hugo-coder/i18n/id.toml | 64 + themes/hugo-coder/i18n/it.toml | 56 +- themes/hugo-coder/i18n/ja.toml | 48 +- themes/hugo-coder/i18n/ko.toml | 64 + themes/hugo-coder/i18n/ms.toml | 67 + themes/hugo-coder/i18n/nl.toml | 64 + themes/hugo-coder/i18n/np.toml | 64 + themes/hugo-coder/i18n/oc.toml | 64 + themes/hugo-coder/i18n/pl.toml | 51 +- themes/hugo-coder/i18n/pt-br.toml | 48 +- themes/hugo-coder/i18n/ro.toml | 64 + themes/hugo-coder/i18n/ru.toml | 48 +- themes/hugo-coder/i18n/se.toml | 50 +- themes/hugo-coder/i18n/sk.toml | 50 +- themes/hugo-coder/i18n/sq.toml | 64 + themes/hugo-coder/i18n/sr-latn.toml | 64 + themes/hugo-coder/i18n/sr.toml | 64 + themes/hugo-coder/i18n/tr.toml | 51 +- themes/hugo-coder/i18n/ur.toml | 64 + themes/hugo-coder/i18n/zh-cn.toml | 50 +- themes/hugo-coder/i18n/zh-tw.toml | 64 + themes/hugo-coder/images/screenshot.png | Bin 68406 -> 72410 bytes themes/hugo-coder/images/tn.png | Bin 38306 -> 38120 bytes .../_default/_markup/render-heading.html | 7 + .../layouts/_default/_markup/render-link.html | 1 + .../hugo-coder/layouts/_default/baseof.html | 229 +- themes/hugo-coder/layouts/_default/list.html | 7 +- themes/hugo-coder/layouts/_default/terms.html | 10 + .../analytics/applicationinsights.html | 13 + .../layouts/partials/analytics/baidu.html | 11 + .../layouts/partials/analytics/clicky.html | 1 + .../partials/analytics/cloudflare.html | 4 + .../partials/analytics/goatcounter.html | 2 + .../partials/analytics/googletagmanager.html | 9 + .../layouts/partials/analytics/matomo.html | 13 + .../partials/analytics/microanalyticsio.html | 8 + .../layouts/partials/analytics/pirsch.html | 3 + .../layouts/partials/analytics/plausible.html | 1 + .../layouts/partials/analytics/umami.html | 3 + .../layouts/partials/analytics/vercel.html | 4 + .../layouts/partials/analytics/wideangle.html | 5 + .../partials/analytics/yandex-metrika.html | 14 + .../layouts/partials/body/extensions.html | 5 + themes/hugo-coder/layouts/partials/csp.html | 1 + themes/hugo-coder/layouts/partials/float.html | 7 + .../hugo-coder/layouts/partials/footer.html | 45 +- themes/hugo-coder/layouts/partials/head.html | 21 + .../head/alternative-output-formats.html | 3 + .../layouts/partials/head/color-scheme.html | 11 + .../layouts/partials/head/custom-icons.html | 9 + .../layouts/partials/head/custom-styles.html | 21 + .../layouts/partials/head/extensions.html | 4 + .../layouts/partials/head/hugo-generator.html | 1 + .../layouts/partials/head/meta-tags.html | 16 + .../layouts/partials/head/theme-styles.html | 25 + .../hugo-coder/layouts/partials/header.html | 58 +- themes/hugo-coder/layouts/partials/home.html | 34 +- .../layouts/partials/home/author.html | 6 + .../layouts/partials/home/avatar.html | 8 + .../layouts/partials/home/extensions.html | 4 + .../layouts/partials/home/social.html | 17 + themes/hugo-coder/layouts/partials/list.html | 23 +- themes/hugo-coder/layouts/partials/page.html | 6 +- .../layouts/partials/posts/commento.html | 4 +- .../layouts/partials/posts/cusdis.html | 16 + .../layouts/partials/posts/disqus.html | 27 +- .../layouts/partials/posts/giscus.html | 33 + .../layouts/partials/posts/mastodon.html | 106 + .../layouts/partials/posts/math.html | 34 +- .../layouts/partials/posts/series.html | 12 +- .../layouts/partials/posts/telegram.html | 22 + .../layouts/partials/posts/utterances.html | 37 +- .../layouts/partials/taxonomy/authors.html | 9 + .../layouts/partials/taxonomy/categories.html | 4 +- .../layouts/partials/taxonomy/tags.html | 6 +- themes/hugo-coder/layouts/partials/terms.html | 29 + themes/hugo-coder/layouts/posts/li.html | 4 +- themes/hugo-coder/layouts/posts/list.html | 9 +- themes/hugo-coder/layouts/posts/single.html | 29 +- .../layouts/shortcodes/mermaid.html | 3 + .../hugo-coder/layouts/shortcodes/notice.html | 12 + themes/hugo-coder/layouts/shortcodes/tab.html | 17 + .../layouts/shortcodes/tabgroup.html | 10 + themes/hugo-coder/netlify.toml | 14 +- ...s_5e1eb8e37c42cdfb6215b61e44dcfa5f.content | 1 - ...scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.json | 1 - themes/hugo-coder/stackbit.yaml | 250 - themes/hugo-coder/static/fonts/LICENSE.txt | 165 + .../hugo-coder/static/fonts/fa-brands-400.ttf | Bin 0 -> 209376 bytes .../static/fonts/fa-brands-400.woff2 | Bin 0 -> 118072 bytes .../static/fonts/fa-regular-400.ttf | Bin 0 -> 67976 bytes .../static/fonts/fa-regular-400.woff2 | Bin 0 -> 25464 bytes .../hugo-coder/static/fonts/fa-solid-900.ttf | Bin 0 -> 423676 bytes .../static/fonts/fa-solid-900.woff2 | Bin 0 -> 157192 bytes themes/hugo-coder/theme.toml | 8 +- 230 files changed, 13973 insertions(+), 2948 deletions(-) create mode 100644 themes/hugo-coder/.github/FUNDING.yml create mode 100644 themes/hugo-coder/.github/ISSUE_TEMPLATE/bug_report.md create mode 100644 themes/hugo-coder/.github/ISSUE_TEMPLATE/feature_request.md create mode 100644 themes/hugo-coder/.github/ISSUE_TEMPLATE/question.md create mode 100644 themes/hugo-coder/assets/js/coder.js create mode 100644 themes/hugo-coder/assets/js/purify.min.js create mode 100644 themes/hugo-coder/assets/scss/_float.scss create mode 100644 themes/hugo-coder/assets/scss/_float_dark.scss create mode 100644 themes/hugo-coder/assets/scss/_mastodon.scss create mode 100644 themes/hugo-coder/assets/scss/_notices.scss create mode 100644 themes/hugo-coder/assets/scss/_notices_dark.scss create mode 100644 themes/hugo-coder/assets/scss/_syntax.scss create mode 100644 themes/hugo-coder/assets/scss/_syntax_dark.scss create mode 100644 themes/hugo-coder/assets/scss/_tabs.scss create mode 100644 themes/hugo-coder/assets/scss/_tabs_dark.scss create mode 100644 themes/hugo-coder/assets/scss/_taxonomies.scss create mode 100644 themes/hugo-coder/assets/scss/_taxonomies_dark.scss create mode 100644 themes/hugo-coder/assets/scss/css/normalize.css create mode 100644 themes/hugo-coder/assets/scss/font-awesome/LICENSE.txt create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_animated.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_bordered-pulled.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_core.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_fixed-width.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_functions.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_icons.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_list.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_mixins.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_rotated-flipped.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_screen-reader.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_shims.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_sizing.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_stacked.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/_variables.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/brands.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/fontawesome.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/regular.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/solid.scss create mode 100644 themes/hugo-coder/assets/scss/font-awesome/v4-shims.scss create mode 100644 themes/hugo-coder/docs/analytics.md create mode 100644 themes/hugo-coder/docs/analytics/applicationinsights.md create mode 100644 themes/hugo-coder/docs/analytics/baidu.md create mode 100644 themes/hugo-coder/docs/analytics/clicky.md create mode 100644 themes/hugo-coder/docs/analytics/cloudflare.md create mode 100644 themes/hugo-coder/docs/analytics/fathom.md create mode 100644 themes/hugo-coder/docs/analytics/goatcounter.md create mode 100644 themes/hugo-coder/docs/analytics/googleanalytics.md create mode 100644 themes/hugo-coder/docs/analytics/googletagmanager.md create mode 100644 themes/hugo-coder/docs/analytics/matomo.md create mode 100644 themes/hugo-coder/docs/analytics/microanalytics.md create mode 100644 themes/hugo-coder/docs/analytics/pirsch.md create mode 100644 themes/hugo-coder/docs/analytics/plausible.md create mode 100644 themes/hugo-coder/docs/analytics/umami.md create mode 100644 themes/hugo-coder/docs/analytics/vercel.md create mode 100644 themes/hugo-coder/docs/analytics/wideangle.md create mode 100644 themes/hugo-coder/docs/comment-system.md create mode 100644 themes/hugo-coder/docs/configurations.md create mode 100644 themes/hugo-coder/docs/contributing.md create mode 100644 themes/hugo-coder/docs/faq.md create mode 100644 themes/hugo-coder/docs/home.md create mode 100644 themes/hugo-coder/docs/multilingual-mode.md create mode 100644 themes/hugo-coder/docs/quick-start.md delete mode 100644 themes/hugo-coder/exampleSite/config.toml create mode 100644 themes/hugo-coder/exampleSite/content/authors/hugo-authors/_index.md create mode 100644 themes/hugo-coder/exampleSite/content/authors/hugo-authors/_index.pt-br.md create mode 100644 themes/hugo-coder/exampleSite/content/categories/syntax/_index.pt-br.md delete mode 100644 themes/hugo-coder/exampleSite/content/posts/creating-a-new-theme.md delete mode 100644 themes/hugo-coder/exampleSite/content/posts/dummy.pt-br.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/emoji-support.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/emoji-support.pt-br.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/external-post.pt-br.md delete mode 100644 themes/hugo-coder/exampleSite/content/posts/goisforlovers.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/html-and-css-only-tabs.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/html-and-css-only-tabs.pt-br.md delete mode 100644 themes/hugo-coder/exampleSite/content/posts/hugoisforlovers.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/markdown-syntax.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/markdown-syntax.pt-br.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/math-typesetting.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/math-typesetting.pt-br.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/mermaid-support.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/mermaid-support.pt-br.md delete mode 100644 themes/hugo-coder/exampleSite/content/posts/migrate-from-jekyll.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/more-rich-content.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/more-rich-content.pt-br.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/placeholder-text.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/placeholder-text.pt-br.md delete mode 100644 themes/hugo-coder/exampleSite/content/posts/render-latex-using-katex.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/rich-content.md create mode 100644 themes/hugo-coder/exampleSite/content/posts/rich-content.pt-br.md delete mode 100644 themes/hugo-coder/exampleSite/content/posts/theme-demo.md delete mode 100644 themes/hugo-coder/exampleSite/content/posts/twemoji-support.md delete mode 100644 themes/hugo-coder/exampleSite/content/snippets/_index.md delete mode 100644 themes/hugo-coder/exampleSite/content/snippets/first/index.md delete mode 100644 themes/hugo-coder/exampleSite/content/snippets/second/index.md create mode 100644 themes/hugo-coder/exampleSite/content/tags/shortcodes/_index.pt-br.md create mode 100644 themes/hugo-coder/exampleSite/hugo.toml create mode 100644 themes/hugo-coder/exampleSite/static/images/apple-touch-icon.png create mode 100644 themes/hugo-coder/exampleSite/static/images/favicon.svg create mode 100644 themes/hugo-coder/go.mod create mode 100644 themes/hugo-coder/hugo.toml create mode 100644 themes/hugo-coder/i18n/bn.toml create mode 100644 themes/hugo-coder/i18n/cs.toml create mode 100644 themes/hugo-coder/i18n/id.toml create mode 100644 themes/hugo-coder/i18n/ko.toml create mode 100644 themes/hugo-coder/i18n/ms.toml create mode 100644 themes/hugo-coder/i18n/nl.toml create mode 100644 themes/hugo-coder/i18n/np.toml create mode 100644 themes/hugo-coder/i18n/oc.toml create mode 100644 themes/hugo-coder/i18n/ro.toml create mode 100644 themes/hugo-coder/i18n/sq.toml create mode 100644 themes/hugo-coder/i18n/sr-latn.toml create mode 100644 themes/hugo-coder/i18n/sr.toml create mode 100644 themes/hugo-coder/i18n/ur.toml create mode 100644 themes/hugo-coder/i18n/zh-tw.toml create mode 100644 themes/hugo-coder/layouts/_default/_markup/render-heading.html create mode 100644 themes/hugo-coder/layouts/_default/_markup/render-link.html create mode 100644 themes/hugo-coder/layouts/_default/terms.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/applicationinsights.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/baidu.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/clicky.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/cloudflare.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/goatcounter.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/googletagmanager.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/matomo.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/microanalyticsio.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/pirsch.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/plausible.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/umami.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/vercel.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/wideangle.html create mode 100644 themes/hugo-coder/layouts/partials/analytics/yandex-metrika.html create mode 100644 themes/hugo-coder/layouts/partials/body/extensions.html create mode 100644 themes/hugo-coder/layouts/partials/csp.html create mode 100644 themes/hugo-coder/layouts/partials/float.html create mode 100644 themes/hugo-coder/layouts/partials/head.html create mode 100644 themes/hugo-coder/layouts/partials/head/alternative-output-formats.html create mode 100644 themes/hugo-coder/layouts/partials/head/color-scheme.html create mode 100644 themes/hugo-coder/layouts/partials/head/custom-icons.html create mode 100644 themes/hugo-coder/layouts/partials/head/custom-styles.html create mode 100644 themes/hugo-coder/layouts/partials/head/extensions.html create mode 100644 themes/hugo-coder/layouts/partials/head/hugo-generator.html create mode 100644 themes/hugo-coder/layouts/partials/head/meta-tags.html create mode 100644 themes/hugo-coder/layouts/partials/head/theme-styles.html create mode 100644 themes/hugo-coder/layouts/partials/home/author.html create mode 100644 themes/hugo-coder/layouts/partials/home/avatar.html create mode 100644 themes/hugo-coder/layouts/partials/home/extensions.html create mode 100644 themes/hugo-coder/layouts/partials/home/social.html create mode 100644 themes/hugo-coder/layouts/partials/posts/cusdis.html create mode 100644 themes/hugo-coder/layouts/partials/posts/giscus.html create mode 100644 themes/hugo-coder/layouts/partials/posts/mastodon.html create mode 100644 themes/hugo-coder/layouts/partials/posts/telegram.html create mode 100644 themes/hugo-coder/layouts/partials/taxonomy/authors.html create mode 100644 themes/hugo-coder/layouts/partials/terms.html create mode 100644 themes/hugo-coder/layouts/shortcodes/mermaid.html create mode 100644 themes/hugo-coder/layouts/shortcodes/notice.html create mode 100644 themes/hugo-coder/layouts/shortcodes/tab.html create mode 100644 themes/hugo-coder/layouts/shortcodes/tabgroup.html delete mode 100644 themes/hugo-coder/resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.content delete mode 100644 themes/hugo-coder/resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.json delete mode 100644 themes/hugo-coder/stackbit.yaml create mode 100644 themes/hugo-coder/static/fonts/LICENSE.txt create mode 100644 themes/hugo-coder/static/fonts/fa-brands-400.ttf create mode 100644 themes/hugo-coder/static/fonts/fa-brands-400.woff2 create mode 100644 themes/hugo-coder/static/fonts/fa-regular-400.ttf create mode 100644 themes/hugo-coder/static/fonts/fa-regular-400.woff2 create mode 100644 themes/hugo-coder/static/fonts/fa-solid-900.ttf create mode 100644 themes/hugo-coder/static/fonts/fa-solid-900.woff2 diff --git a/themes/hugo-coder/.editorconfig b/themes/hugo-coder/.editorconfig index d5add1a..51c74a1 100644 --- a/themes/hugo-coder/.editorconfig +++ b/themes/hugo-coder/.editorconfig @@ -1,4 +1,4 @@ -# http://editorconfig.org +# https://editorconfig.org # this file is the top-most editorconfig file root = true diff --git a/themes/hugo-coder/.github/FUNDING.yml b/themes/hugo-coder/.github/FUNDING.yml new file mode 100644 index 0000000..f100056 --- /dev/null +++ b/themes/hugo-coder/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: https://www.buymeacoffee.com/luizdepra diff --git a/themes/hugo-coder/.github/ISSUE_TEMPLATE/bug_report.md b/themes/hugo-coder/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..0c8827e --- /dev/null +++ b/themes/hugo-coder/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,30 @@ +--- +name: Bug report +about: Create a report to help us improve +title: "" +labels: "Triage Needed" +assignees: "" +--- + +## Describe the problem: + +_Explain the problem you have encountered_ + +### Steps to reproduce: + +1. *** +2. *** +3. *** + +### Observed Results: + +- What happened? +- What did you expect to happen? + +### Relevant code exceptions or logs + +Note: Please copy/paste text of the messages, no screenshots of logs please. + +``` +// paste your log here +``` diff --git a/themes/hugo-coder/.github/ISSUE_TEMPLATE/feature_request.md b/themes/hugo-coder/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..1e99de0 --- /dev/null +++ b/themes/hugo-coder/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,11 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: "" +labels: "" +assignees: "" +--- + +## Describe the enhancement + +_Explain the enhancement you would like_ diff --git a/themes/hugo-coder/.github/ISSUE_TEMPLATE/question.md b/themes/hugo-coder/.github/ISSUE_TEMPLATE/question.md new file mode 100644 index 0000000..4aeca23 --- /dev/null +++ b/themes/hugo-coder/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,11 @@ +--- +name: Question +about: Ask a question you could not find an answer in the docs +title: "" +labels: "Question" +assignees: "" +--- + +## Your question + +_Ask the question you have not been able to find an answer in the Documentation_ diff --git a/themes/hugo-coder/.gitignore b/themes/hugo-coder/.gitignore index ddf775b..2be26dd 100644 --- a/themes/hugo-coder/.gitignore +++ b/themes/hugo-coder/.gitignore @@ -1,4 +1,6 @@ +.idea **/themes/ -demo/ -.hugo/* -!.hugo/version +exampleSite/public/ +exampleSite/resources/ +*.lock +public diff --git a/themes/hugo-coder/CONTRIBUTORS.md b/themes/hugo-coder/CONTRIBUTORS.md index d11c59a..b33a0e4 100644 --- a/themes/hugo-coder/CONTRIBUTORS.md +++ b/themes/hugo-coder/CONTRIBUTORS.md @@ -10,6 +10,7 @@ - [Jiri Hubacek](https://github.com/qeef) - [Khosrow Moossavi](https://github.com/khos2ow) - [Maikel](https://github.com/mbollemeijer) +- [MetBril](https://github.com/metbril) - [Myles Johnson](https://github.com/MylesJohnson) - [Niels Reijn](https://github.com/reijnn) - [Padraic Renaghan](https://github.com/prenagha) @@ -49,7 +50,7 @@ - [Bobby Lindsey](https://bobbywlindsey.com) - [José Mª Escartín](https://github.com/jme52) - [John Schroeder](https://blog.schroedernet.software) -- [Tobias Lindberg](https://tobiaslindberg.com) +- [Tobias Lindberg](https://github.com/tobiasehlert) - [KK](https://github.com/bebound) - [Eli W. Hunter](https://github.com/elihunter173) - [Víctor López](https://github.com/viticlick) @@ -62,7 +63,7 @@ - [Piotr Orzechowski](https://orzechowski.tech) - [Glenn Feunteun](https://github.com/gfeun) - [Santiago González](https://github.com/netrules) -- [Codruț Constantin Gușoi](https://www.sdwolfz.pro) +- [Codruț Constantin Gușoi](https://www.codrut.pro) - [Clément Pannetier](https://clementpannetier.dev) - [FantasticMao](https://github.com/FantasticMao) - [Utkarsh Gupta](https://utkarsh2102.com) @@ -70,3 +71,78 @@ - [Endormi](https://endormi.io) - [Rajiv Ranjan Singh](https://iamrajiv.github.io/) - [Pakhomov Alexander](https://github.com/PakhomovAlexander) +- [Rhys Perry](https://rhysperry.com) +- [Arunvel Sriram](https://github.com/arunvelsriram) +- [Lorenzo Cameroni](https://github.com/came88) +- [Jared Sturdy](https://github.com/jsturdy) +- [Daniel Monteiro](https://github.com/dfamonteiro) +- [Dave Rolsky](https://github.com/autarch) +- [Joseph Sanders](https://github.com/jls83) +- [Rabin Adhikari](https://github.com/rabinadk1/) +- [Hussaini Zulkifli](https://github.com/hussaini/) +- [Ellison Leão](https://github.com/ellisonleao) +- [Lucas de Oliveira](https://github.com/lucas-dOliveira) +- [Jian Loong Liew](https://github.com/JianLoong) +- [earnest ma](https://github.com/earnestma) +- [TMineCola](https://github.com/tminecola) +- [Arafat Hasan](https://github.com/arafat-hasan) +- [YUJI](https://yuji.ne.jp/) +- [JaeSang Yoo](https://github.com/JSYoo5B) +- [tianheg](https://github.com/tianheg) +- [Felix](https://github.com/lazyyz) +- [Peter Duchnovsky](https://pduchnovsky.com) +- [Alex Miranda](https://ammiranda.com) +- [Alphonse Mariya](https://github.com/alfunx) +- [Ziwei Pan](https://github.com/PanZiwei/) +- [Viktar Patotski](https://github.com/xp-vit) +- [cuso4-5h2o](https://www.cuso4.me) +- [freeformz](https://icanhazdowntime.org) +- [Roberto Gongora](https://yourfavourite.blog) +- [kuba86](https://kuba86.com) +- [Vladislav Matus](https://github.com/matusvla) +- [Kirill Feoktistov](https://feoktistoff.org) +- [leins275](https://github.com/LanskovNV) +- [Michael Weiss](https://mweiss.ch) +- [Simon Pai](https://github.com/simonpai) +- [Brenton Mallen](https://github.com/brentonmallen1) +- [Xiaoyang Luo](https://github.com/ccviolett/) +- [Michiel Appelman](https://appelman.se) +- [Mark Wood](https://digitalnotions.net) +- [Sam A.](https://samsapti.dev) +- [John Feminella](https://jxf.me) +- [zzsqwq](https://zzsqwq.cn) +- [George Tsiokos](https://george.tsiokos.com) +- [Eltjo](https://github.com/eltjo) +- [Saurmandal](https://saur.neocities.org) +- [Jneo8](https://github.com/jneo8) +- [Daniel Nduati](https://github.com/DanNduati) +- [Simon Hollingshead](https://github.com/simonhollingshead) +- [yangyangdaji](https://github.com/yangyangdaji) +- [xiaotianxt](https://github.com/xiaotianxt) +- [Nour Agha](https://github.com/nourkagha) +- [Brian Lachniet](https://github.com/blachniet) +- [ShortArrow](https://github.com/ShortArrow) +- [Martin Hellspong](https://github.com/marhel) +- [Robert Tucker](https://github.com/robertwtucker) +- [Michał Pawlik](https://michalp.net) +- [Kilian Kluge](https://github.com/ionicsolutions) +- [Jaroslaw Rozanski](https://jarekrozanski.eu) +- [Easton Man](https://github.com/eastonman) +- [Yiğit Altınay](https://altinay.xyz) +- [Fei Kong](https://github.com/alpha0422) +- [Ahmet Enes Bayraktar](https://github.com/aeb-dev) +- [Todor Bogosavljević](https://github.com/tbx1b) +- [Kemal Akkoyun](https://github.com/kakkoyun) +- [Igetin](https://github.com/Igetin) +- [Kirill Che.](https://github.com/g4s8) +- [iron3oxide](https://github.com/iron3oxide) +- [Jens Rantil](https://github.com/JensRantil) +- [Muqeet Malik](https://github.com/mmalik23) +- [Sammy44nts](https://github.com/sammy44nts) +- [Shaked8634](https://github.com/shaked8634) +- [Leo Heimann Ruiz](https://leo.heitmannruiz.org/) +- [Antoine "Toinux" Wam](https://github.com/itzwam) +- [Reberti Carvalho Soares](https://github.com/RebertiCS) +- [Andreas Deininger](https://github.com/deining) +- [Ardemium](https://github.com/ardemium) +- [Matt Ellery](https://github.com/matt-ellery) diff --git a/themes/hugo-coder/Makefile b/themes/hugo-coder/Makefile index 7ed802b..8e0c3e4 100644 --- a/themes/hugo-coder/Makefile +++ b/themes/hugo-coder/Makefile @@ -1,20 +1,12 @@ HUGO_BIN=hugo -.PHONY: prepare release build demo clean +.PHONY: build demo release -build: prepare - $(HUGO_BIN) --source demo +build: + $(HUGO_BIN) --themesDir=../.. --source=exampleSite -demo: prepare - $(HUGO_BIN) server --buildDrafts --source demo +demo: + $(HUGO_BIN) server -D --themesDir=../.. --source=exampleSite --bind 0.0.0.0 release: build - rm -rf ./resources && cp -r ./demo/resources ./resources - -prepare: clean - mkdir -p demo/themes/hugo-coder - rsync -av exampleSite/ demo - rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/hugo-coder - -clean: - rm -rf demo + rm -rf ./resources && cp -r ./exampleSite/resources ./resources diff --git a/themes/hugo-coder/README.md b/themes/hugo-coder/README.md index a77ac4f..0dfdeec 100644 --- a/themes/hugo-coder/README.md +++ b/themes/hugo-coder/README.md @@ -1,18 +1,37 @@ -![Hugo Coder Logotype](https://github.com/luizdepra/hugo-coder/blob/master/images/logos/logotype-a.png) +

+

+ + Hugo Theme Badge + + + MIT License Badge + +

+ +

+ + Hugo Coder Logo + +

+

A simple and clean blog theme for [Hugo](https://gohugo.io/). -![](https://github.com/luizdepra/hugo-coder/blob/master/images/screenshot.png) +![](images/screenshot.png) + +## Live Demo + +See [here](https://hugo-coder.netlify.app/). ## Quick Start 1. Add the repository into your Hugo Project repository as a submodule, `git submodule add https://github.com/luizdepra/hugo-coder.git themes/hugo-coder`. -2. Configure your `config.toml`. You can either use the [this minimal configuration](https://github.com/luizdepra/hugo-coder/wiki/Configurations#complete-example) as a base, or look for a complete explanation about all configurations [here](https://github.com/luizdepra/hugo-coder/wiki/Configurations). The [`config.toml`](https://github.com/luizdepra/hugo-coder/blob/master/exampleSite/config.toml) inside the [`exampleSite`](https://github.com/luizdepra/hugo-coder/tree/master/exampleSite) is also a good reference. -3. Build your site with `hugo serve` and see the result at `http://localhost:1313/`. +2. Configure your `hugo.toml`. You can either use [this minimal configuration](https://github.com/luizdepra/hugo-coder/blob/main/docs/configurations.md#complete-example) as a base, or look for a complete explanation about all configurations [here](https://github.com/luizdepra/hugo-coder/blob/main/docs/configurations.md). The [`hugo.toml`](https://github.com/luizdepra/hugo-coder/blob/master/exampleSite/hugo.toml) inside the [`exampleSite`](https://github.com/luizdepra/hugo-coder/tree/master/exampleSite) is also a good reference. +3. Build your site with `hugo server` and see the result at `http://localhost:1313/`. -## Extra Guides +## Documentation -* [Multilingual Mode](https://github.com/luizdepra/hugo-coder/wiki/Multilingual-Mode) +See the [`docs`](docs/home.md) folder. ## License @@ -22,13 +41,13 @@ Coder is licensed under the [MIT license](https://github.com/luizdepra/hugo-code This theme is maintained by its author [Luiz de Prá](https://github.com/luizdepra) with the help from these awesome [contributors](CONTRIBUTORS.md). +## Sponsoring + +If you like my project or it was useful for you, consider supporting its development. Just: + +Buy Me A Coffee + ## Special Thanks -- Gleen McComb, for his great [article](https://glennmccomb.com/articles/how-to-build-custom-hugo-pagination/) about custom pagination. -- All contributors, for every PR and Issue reported. - -## Stackbit - -This theme is ready to import into Stackbit. This theme can be deployed to Netlify and you can connect any headless CMS including Forestry, NetlifyCMS, DatoCMS or Contentful. - -[![Create with Stackbit](https://assets.stackbit.com/badge/create-with-stackbit.svg)](https://app.stackbit.com/create?theme=https://github.com/luizdepra/hugo-coder) +- Gleen McComb, for his great [article](https://glennmccomb.com/articles/how-to-build-custom-hugo-pagination/) about custom pagination. +- All contributors, for every PR and Issue reported. diff --git a/themes/hugo-coder/archetypes/posts.md b/themes/hugo-coder/archetypes/posts.md index afdb40e..76242f8 100644 --- a/themes/hugo-coder/archetypes/posts.md +++ b/themes/hugo-coder/archetypes/posts.md @@ -3,7 +3,8 @@ draft = true date = {{ .Date }} title = "" description = "" -slug = "" +slug = "" +authors = [] tags = [] categories = [] externalLink = "" diff --git a/themes/hugo-coder/assets/js/coder.js b/themes/hugo-coder/assets/js/coder.js new file mode 100644 index 0000000..9b46cfc --- /dev/null +++ b/themes/hugo-coder/assets/js/coder.js @@ -0,0 +1,97 @@ +const body = document.body; +const darkModeToggle = document.getElementById('dark-mode-toggle'); +const darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)'); + +// Check if user preference is set, if not check value of body class for light or dark else it means that colorscheme = auto +if (localStorage.getItem("colorscheme")) { + setTheme(localStorage.getItem("colorscheme")); +} else if (body.classList.contains('colorscheme-light') || body.classList.contains('colorscheme-dark')) { + setTheme(body.classList.contains("colorscheme-dark") ? "dark" : "light"); +} else { + setTheme(darkModeMediaQuery.matches ? "dark" : "light"); +} + +if (darkModeToggle) { + darkModeToggle.addEventListener('click', () => { + let theme = body.classList.contains("colorscheme-dark") ? "light" : "dark"; + setTheme(theme); + rememberTheme(theme); + }); +} + +darkModeMediaQuery.addListener((event) => { + setTheme(event.matches ? "dark" : "light"); +}); + +document.addEventListener("DOMContentLoaded", function () { + let node = document.querySelector('.preload-transitions'); + node.classList.remove('preload-transitions'); +}); + +function setTheme(theme) { + body.classList.remove('colorscheme-auto'); + let inverse = theme === 'dark' ? 'light' : 'dark'; + body.classList.remove('colorscheme-' + inverse); + body.classList.add('colorscheme-' + theme); + document.documentElement.style['color-scheme'] = theme; + + function waitForElm(selector) { + return new Promise(resolve => { + if (document.querySelector(selector)) { + return resolve(document.querySelector(selector)); + } + + const observer = new MutationObserver(mutations => { + if (document.querySelector(selector)) { + resolve(document.querySelector(selector)); + observer.disconnect(); + } + }); + + observer.observe(document.body, { + childList: true, + subtree: true + }); + }); + } + + if (theme === 'dark') { + const message = { + type: 'set-theme', + theme: 'github-dark' + }; + waitForElm('.utterances-frame').then((iframe) => { + iframe.contentWindow.postMessage(message, 'https://utteranc.es'); + }) + + } + else { + const message = { + type: 'set-theme', + theme: 'github-light' + }; + waitForElm('.utterances-frame').then((iframe) => { + iframe.contentWindow.postMessage(message, 'https://utteranc.es'); + }) + + } + + function sendMessage(message) { + const iframe = document.querySelector('iframe.giscus-frame'); + if (!iframe) return; + iframe.contentWindow.postMessage({ giscus: message }, 'https://giscus.app'); + } + sendMessage({ + setConfig: { + theme: theme, + }, + }); + + // Create and send event + const event = new Event('themeChanged'); + document.dispatchEvent(event); +} + +function rememberTheme(theme) { + localStorage.setItem('colorscheme', theme); +} diff --git a/themes/hugo-coder/assets/js/purify.min.js b/themes/hugo-coder/assets/js/purify.min.js new file mode 100644 index 0000000..644aca0 --- /dev/null +++ b/themes/hugo-coder/assets/js/purify.min.js @@ -0,0 +1,3 @@ +/*! @license DOMPurify 2.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.1/LICENSE */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DOMPurify=t()}(this,(function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},r.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o/gm),Y=f(/\${[\w\W]*}/gm),$=f(/^data-[\-\w.\u00B7-\uFFFF]/),K=f(/^aria-[\-\w]+$/),V=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=f(/^(?:\w+script|data):/i),Z=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=f(/^html$/i),Q=function(){return"undefined"==typeof window?null:window},ee=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};var te=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),r=function(e){return t(e)};if(r.version="2.4.1",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,i=n.document,l=n.DocumentFragment,c=n.HTMLTemplateElement,u=n.Node,s=n.Element,f=n.NodeFilter,p=n.NamedNodeMap,d=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,h=n.HTMLFormElement,g=n.DOMParser,y=n.trustedTypes,O=s.prototype,te=R(O,"cloneNode"),ne=R(O,"nextSibling"),re=R(O,"childNodes"),oe=R(O,"parentNode");if("function"==typeof c){var ae=i.createElement("template");ae.content&&ae.content.ownerDocument&&(i=ae.content.ownerDocument)}var ie=ee(y,a),le=ie?ie.createHTML(""):"",ce=i,ue=ce.implementation,se=ce.createNodeIterator,me=ce.createDocumentFragment,fe=ce.getElementsByTagName,pe=a.importNode,de={};try{de=L(i).documentMode?i.documentMode:{}}catch(e){}var he={};r.isSupported="function"==typeof oe&&ue&&void 0!==ue.createHTMLDocument&&9!==de;var ge,ye,be=W,ve=q,Te=Y,Ne=$,Ae=K,Ee=X,we=Z,Se=V,xe=null,_e=D({},[].concat(o(M),o(C),o(I),o(U),o(z))),ke=null,Oe=D({},[].concat(o(P),o(j),o(B),o(G))),De=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Re=null,Me=!0,Ce=!0,Ie=!1,Fe=!1,Ue=!1,He=!1,ze=!1,Pe=!1,je=!1,Be=!1,Ge=!0,We=!1,qe="user-content-",Ye=!0,$e=!1,Ke={},Ve=null,Xe=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ze=null,Je=D({},["audio","video","img","source","image","track"]),Qe=null,et=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",ot=rt,at=!1,it=null,lt=D({},[tt,nt,rt],A),ct=["application/xhtml+xml","text/html"],ut="text/html",st=null,mt=i.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},pt=function(t){st&&st===t||(t&&"object"===e(t)||(t={}),t=L(t),ge=ge=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===ge?A:N,xe="ALLOWED_TAGS"in t?D({},t.ALLOWED_TAGS,ye):_e,ke="ALLOWED_ATTR"in t?D({},t.ALLOWED_ATTR,ye):Oe,it="ALLOWED_NAMESPACES"in t?D({},t.ALLOWED_NAMESPACES,A):lt,Qe="ADD_URI_SAFE_ATTR"in t?D(L(et),t.ADD_URI_SAFE_ATTR,ye):et,Ze="ADD_DATA_URI_TAGS"in t?D(L(Je),t.ADD_DATA_URI_TAGS,ye):Je,Ve="FORBID_CONTENTS"in t?D({},t.FORBID_CONTENTS,ye):Xe,Le="FORBID_TAGS"in t?D({},t.FORBID_TAGS,ye):{},Re="FORBID_ATTR"in t?D({},t.FORBID_ATTR,ye):{},Ke="USE_PROFILES"in t&&t.USE_PROFILES,Me=!1!==t.ALLOW_ARIA_ATTR,Ce=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=t.SAFE_FOR_TEMPLATES||!1,Ue=t.WHOLE_DOCUMENT||!1,Pe=t.RETURN_DOM||!1,je=t.RETURN_DOM_FRAGMENT||!1,Be=t.RETURN_TRUSTED_TYPE||!1,ze=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Ye=!1!==t.KEEP_CONTENT,$e=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,ot=t.NAMESPACE||rt,t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(De.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(De.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(De.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fe&&(Ce=!1),je&&(Pe=!0),Ke&&(xe=D({},o(z)),ke=[],!0===Ke.html&&(D(xe,M),D(ke,P)),!0===Ke.svg&&(D(xe,C),D(ke,j),D(ke,G)),!0===Ke.svgFilters&&(D(xe,I),D(ke,j),D(ke,G)),!0===Ke.mathMl&&(D(xe,U),D(ke,B),D(ke,G))),t.ADD_TAGS&&(xe===_e&&(xe=L(xe)),D(xe,t.ADD_TAGS,ye)),t.ADD_ATTR&&(ke===Oe&&(ke=L(ke)),D(ke,t.ADD_ATTR,ye)),t.ADD_URI_SAFE_ATTR&&D(Qe,t.ADD_URI_SAFE_ATTR,ye),t.FORBID_CONTENTS&&(Ve===Xe&&(Ve=L(Ve)),D(Ve,t.FORBID_CONTENTS,ye)),Ye&&(xe["#text"]=!0),Ue&&D(xe,["html","head","body"]),xe.table&&(D(xe,["tbody"]),delete Le.tbody),m&&m(t),st=t)},dt=D({},["mi","mo","mn","ms","mtext"]),ht=D({},["foreignobject","desc","title","annotation-xml"]),gt=D({},["title","style","font","a","script"]),yt=D({},C);D(yt,I),D(yt,F);var bt=D({},U);D(bt,H);var vt=function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=N(e.tagName),r=N(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(yt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&&ht[r]:Boolean(bt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!ht[r])&&(!(t.namespaceURI===tt&&!dt[r])&&(!bt[n]&&(gt[n]||!yt[n]))):!("application/xhtml+xml"!==ge||!it[e.namespaceURI]))},Tt=function(e){T(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=le}catch(t){e.remove()}}},Nt=function(e,t){try{T(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){T(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Pe||je)try{Tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},At=function(e){var t,n;if(ze)e=""+e;else{var r=E(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&ot===rt&&(e=''+e+"");var o=ie?ie.createHTML(e):e;if(ot===rt)try{t=(new g).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(ot,"template",null);try{t.documentElement.innerHTML=at?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),ot===rt?fe.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:a},Et=function(e){return se.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},wt=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},xt=function(e,t,n){he[e]&&b(he[e],(function(e){e.call(r,t,n,st)}))},_t=function(e){var t;if(xt("beforeSanitizeElements",e,null),wt(e))return Tt(e),!0;if(_(/[\u0080-\uFFFF]/,e.nodeName))return Tt(e),!0;var n=ye(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:n,allowedTags:xe}),e.hasChildNodes()&&!St(e.firstElementChild)&&(!St(e.content)||!St(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return Tt(e),!0;if("select"===n&&_(/