From 239d68f94c6250276850fbe95eaa6cdd5c38fb26 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sat, 16 Nov 2024 19:32:18 +0300 Subject: Своя тема, полностью всё переделал MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../layouts/partials/article-list/compact.html | 40 -------- .../layouts/partials/article-list/default.html | 4 - .../layouts/partials/article-list/tile.html | 39 -------- .../layouts/partials/article/article.html | 11 --- .../partials/article/components/content.html | 5 - .../partials/article/components/details.html | 61 ------------ .../partials/article/components/footer.html | 19 ---- .../partials/article/components/header.html | 35 ------- .../layouts/partials/article/components/links.html | 30 ------ .../layouts/partials/article/components/math.html | 13 --- .../partials/article/components/photoswipe.html | 68 -------------- .../article/components/related-content.html | 13 --- .../layouts/partials/article/components/tags.html | 7 -- .../layouts/partials/comments/include.html | 3 - .../partials/comments/provider/beaudar.html | 46 --------- .../layouts/partials/comments/provider/cactus.html | 29 ------ .../layouts/partials/comments/provider/cusdis.html | 21 ----- .../layouts/partials/comments/provider/disqus.html | 22 ----- .../partials/comments/provider/disqusjs.html | 61 ------------ .../layouts/partials/comments/provider/giscus.html | 52 ----------- .../layouts/partials/comments/provider/gitalk.html | 31 ------- .../partials/comments/provider/remark42.html | 29 ------ .../layouts/partials/comments/provider/twikoo.html | 58 ------------ .../partials/comments/provider/utterances.html | 46 --------- .../layouts/partials/comments/provider/vssue.html | 27 ------ .../layouts/partials/comments/provider/waline.html | 34 ------- .../layouts/partials/data/description.html | 17 ---- .../layouts/partials/data/title.html | 38 -------- .../partials/footer/components/custom-font.html | 11 --- .../layouts/partials/footer/components/script.html | 12 --- .../layouts/partials/footer/custom.html | 0 .../layouts/partials/footer/footer.html | 23 ----- .../layouts/partials/footer/include.html | 3 - .../layouts/partials/head/colorScheme.html | 39 -------- .../layouts/partials/head/custom.html | 0 .../layouts/partials/head/head.html | 26 ------ .../layouts/partials/head/opengraph/include.html | 2 - .../partials/head/opengraph/provider/base.html | 43 --------- .../partials/head/opengraph/provider/twitter.html | 16 ---- .../layouts/partials/head/script.html | 0 .../layouts/partials/head/style.html | 3 - .../layouts/partials/helper/external.html | 29 ------ .../layouts/partials/helper/icon.html | 6 -- .../layouts/partials/helper/image.html | 61 ------------ .../layouts/partials/pagination.html | 26 ------ .../layouts/partials/sidebar/left.html | 103 --------------------- .../layouts/partials/sidebar/right.html | 16 ---- .../layouts/partials/widget/archives.html | 35 ------- .../layouts/partials/widget/categories.html | 16 ---- .../layouts/partials/widget/search.html | 16 ---- .../layouts/partials/widget/tag-cloud.html | 16 ---- .../layouts/partials/widget/toc.html | 12 --- 52 files changed, 1373 deletions(-) delete mode 100644 themes/hugo-theme-stack/layouts/partials/article-list/compact.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article-list/default.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article-list/tile.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article/article.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article/components/content.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article/components/details.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article/components/footer.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article/components/header.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article/components/links.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article/components/math.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article/components/photoswipe.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article/components/related-content.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/article/components/tags.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/include.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/beaudar.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/cactus.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/cusdis.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/disqus.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/disqusjs.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/giscus.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/gitalk.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/remark42.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/twikoo.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/utterances.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/comments/provider/waline.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/data/description.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/data/title.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/footer/components/custom-font.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/footer/components/script.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/footer/custom.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/footer/footer.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/footer/include.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/head/colorScheme.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/head/custom.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/head/head.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/head/opengraph/include.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/base.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/twitter.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/head/script.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/head/style.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/helper/external.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/helper/icon.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/helper/image.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/pagination.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/sidebar/left.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/sidebar/right.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/widget/archives.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/widget/categories.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/widget/search.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/widget/tag-cloud.html delete mode 100644 themes/hugo-theme-stack/layouts/partials/widget/toc.html (limited to 'themes/hugo-theme-stack/layouts/partials') diff --git a/themes/hugo-theme-stack/layouts/partials/article-list/compact.html b/themes/hugo-theme-stack/layouts/partials/article-list/compact.html deleted file mode 100644 index 376512a..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article-list/compact.html +++ /dev/null @@ -1,40 +0,0 @@ -
- -
-

- {{- .Title -}} -

-
- -
-
- - {{- $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" -}} - {{ if $image.exists }} -
- {{ 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 -}} - - {{ .Title }} - {{ else }} - Featured image of post {{ .Title }} - {{ end }} -
- {{ end }} -
-
\ 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 deleted file mode 100644 index 02e0b30..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article-list/default.html +++ /dev/null @@ -1,4 +0,0 @@ -{{ $image := partialCached "helper/image" (dict "Context" . "Type" "articleList") .RelPermalink "articleList" }} -
- {{ partial "article/components/header" . }} -
\ 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 deleted file mode 100644 index be5744b..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article-list/tile.html +++ /dev/null @@ -1,39 +0,0 @@ -{{ $image := partialCached "helper/image" (dict "Context" .context "Type" .Type) .context.RelPermalink .Type }} -
- - - {{ if $image.exists }} -
- {{ 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 -}} - - Featured image of post {{ .context.Title }} - {{ else }} - - {{ end }} -
- {{ end }} - -
-

- {{- .context.Title -}} -

-
-
-
diff --git a/themes/hugo-theme-stack/layouts/partials/article/article.html b/themes/hugo-theme-stack/layouts/partials/article/article.html deleted file mode 100644 index f3f7e90..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/article.html +++ /dev/null @@ -1,11 +0,0 @@ -
- {{ 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 }} -
\ 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 deleted file mode 100644 index 61e536c..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/components/content.html +++ /dev/null @@ -1,5 +0,0 @@ -
- - {{ $wrappedTable := printf "
${1}
" }} - {{ .Content | replaceRE "((?:.|\n)+?
)" $wrappedTable | safeHTML }} -
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/details.html b/themes/hugo-theme-stack/layouts/partials/article/components/details.html deleted file mode 100644 index 7c27302..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/components/details.html +++ /dev/null @@ -1,61 +0,0 @@ -
- {{ if .Params.categories }} - - {{ end }} - -
-

- - {{- .Title -}} - -

- - {{ with .Params.description }} -

- {{ . }} -

- {{ end }} -
- - {{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }} - {{ $showDate := not .Date.IsZero }} - {{ $showFooter := or $showDate $showReadingTime }} - {{ if $showFooter }} -
- {{ if $showDate }} -
- {{ partial "helper/icon" "date" }} - -
- {{ end }} - - {{ if $showReadingTime }} -
- {{ partial "helper/icon" "clock" }} - -
- {{ end }} -
- {{ end }} - - {{ if .IsTranslated }} - - {{ end }} -
diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/footer.html b/themes/hugo-theme-stack/layouts/partials/article/components/footer.html deleted file mode 100644 index 9795880..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/components/footer.html +++ /dev/null @@ -1,19 +0,0 @@ - diff --git a/themes/hugo-theme-stack/layouts/partials/article/components/header.html b/themes/hugo-theme-stack/layouts/partials/article/components/header.html deleted file mode 100644 index 7582ec2..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/components/header.html +++ /dev/null @@ -1,35 +0,0 @@ -
- {{- $image := partialCached "helper/image" (dict "Context" . "Type" "article") .RelPermalink "article" -}} - {{ if $image.exists }} -
- - {{ 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 -}} - - Featured image of post {{ .Title }} - {{ else }} - Featured image of post {{ .Title }} - {{ end }} - -
- {{ end }} - - {{ partialCached "article/components/details" . .RelPermalink }} -
\ 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 deleted file mode 100644 index a2ac26c..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/components/links.html +++ /dev/null @@ -1,30 +0,0 @@ -
- {{ range $i, $link := .Params.links }} - - {{ end }} -
\ 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 deleted file mode 100644 index bd1a7f8..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/components/math.html +++ /dev/null @@ -1,13 +0,0 @@ -{{- partial "helper/external" (dict "Context" . "Namespace" "KaTeX") -}} - \ 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 deleted file mode 100644 index c33ff49..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/components/photoswipe.html +++ /dev/null @@ -1,68 +0,0 @@ - - - -{{- 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 deleted file mode 100644 index aba88e3..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/components/related-content.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }} -{{ with $related }} - -{{ 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 deleted file mode 100644 index aae38b4..0000000 --- a/themes/hugo-theme-stack/layouts/partials/article/components/tags.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ if .Params.Tags }} -
- {{ range (.GetTerms "tags") }} - {{ .LinkTitle }} - {{ end }} -
-{{ 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 deleted file mode 100644 index a3d0618..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/include.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ 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 deleted file mode 100644 index 761801f..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/beaudar.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/cactus.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/cactus.html deleted file mode 100644 index ae172d3..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/cactus.html +++ /dev/null @@ -1,29 +0,0 @@ -{{- with .Site.Params.comments.cactus -}} -{{- partial "helper/external" (dict "Context" $ "Namespace" "Cactus") -}} - - - -
- - -{{- 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 deleted file mode 100644 index a89746c..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/cusdis.html +++ /dev/null @@ -1,21 +0,0 @@ -{{- $host := default "https://cusdis.com" .Site.Params.comments.cusdis.host -}} -
- - - diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/disqus.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/disqus.html deleted file mode 100644 index fb17b77..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/disqus.html +++ /dev/null @@ -1,22 +0,0 @@ -
- {{ template "_internal/disqus.html" . }} -
- - - - \ 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 deleted file mode 100644 index 967c38c..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/disqusjs.html +++ /dev/null @@ -1,61 +0,0 @@ -{{- $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 -}} - - -
-
- - -
-{{- 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 deleted file mode 100644 index 97fbb77..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/giscus.html +++ /dev/null @@ -1,52 +0,0 @@ -{{- with .Site.Params.comments.giscus -}} - - -{{- 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 deleted file mode 100644 index 54bfcba..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/gitalk.html +++ /dev/null @@ -1,31 +0,0 @@ -{{- with .Site.Params.comments.gitalk -}} -
- - - - -{{ 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 deleted file mode 100644 index 18acf1b..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/remark42.html +++ /dev/null @@ -1,29 +0,0 @@ -{{- with .Site.Params.comments.remark42 -}} -
- -{{- 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 deleted file mode 100644 index 8c22507..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/twikoo.html +++ /dev/null @@ -1,58 +0,0 @@ - -
- - -{{- with .Site.Params.comments.twikoo -}} - -{{- 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 deleted file mode 100644 index b1e370b..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/utterances.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html deleted file mode 100644 index 79ac381..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html +++ /dev/null @@ -1,27 +0,0 @@ -{{- with .Site.Params.comments.vssue -}} - - -
- - - - - -{{- 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 deleted file mode 100644 index 9d1a2a0..0000000 --- a/themes/hugo-theme-stack/layouts/partials/comments/provider/waline.html +++ /dev/null @@ -1,34 +0,0 @@ - - -
- - -{{- 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 -}} - - -{{- end -}} diff --git a/themes/hugo-theme-stack/layouts/partials/data/description.html b/themes/hugo-theme-stack/layouts/partials/data/description.html deleted file mode 100644 index 7f6cc32..0000000 --- a/themes/hugo-theme-stack/layouts/partials/data/description.html +++ /dev/null @@ -1,17 +0,0 @@ - -{{ $description := .Site.Params.sidebar.subtitle }} - - -{{ if .Site.Params.description }} - {{ $description = .Site.Params.description }} -{{ end }} - -{{ if .Description }} - - {{ $description = .Description }} -{{ else if .IsPage }} - - {{ $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 deleted file mode 100644 index 85a7bc7..0000000 --- a/themes/hugo-theme-stack/layouts/partials/data/title.html +++ /dev/null @@ -1,38 +0,0 @@ -{{- $title := .Title -}} -{{- $siteTitle := .Site.Title -}} - -{{- if .IsHome -}} - - - - {{ $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 }} - - {{ $title = printf "%s - %s" .Paginator $siteTitle }} - {{ else }} - {{ $title = $siteTitle}} - {{ end }} -{{- else if eq .Kind "term" -}} - - - - {{ $notHidden := where .Pages "Params.hidden" "!=" true }} - {{ $pag := .Paginate ($notHidden) }} - - - {{ $title = slice (title .Data.Singular) ": " $title }} - - {{ if .Paginator.HasPrev }} - - {{ $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 deleted file mode 100644 index 8e2ff37..0000000 --- a/themes/hugo-theme-stack/layouts/partials/footer/components/custom-font.html +++ /dev/null @@ -1,11 +0,0 @@ - \ 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 deleted file mode 100644 index 3dc96cb..0000000 --- a/themes/hugo-theme-stack/layouts/partials/footer/components/script.html +++ /dev/null @@ -1,12 +0,0 @@ -{{- partial "helper/external" (dict "Context" . "Namespace" "Vibrant") -}} - -{{- $opts := dict "minify" hugo.IsProduction -}} -{{- $script := resources.Get "ts/main.ts" | js.Build $opts | fingerprint -}} - - - -{{- with resources.Get "ts/custom.ts" -}} - {{/* Place your custom script in HUGO_SITE_FOLDER/assets/ts/custom.ts */}} - {{- $customScript := . | js.Build $opts | fingerprint -}} - -{{- 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 deleted file mode 100644 index e69de29..0000000 diff --git a/themes/hugo-theme-stack/layouts/partials/footer/footer.html b/themes/hugo-theme-stack/layouts/partials/footer/footer.html deleted file mode 100644 index 9c28779..0000000 --- a/themes/hugo-theme-stack/layouts/partials/footer/footer.html +++ /dev/null @@ -1,23 +0,0 @@ -{{- $ThemeVersion := "3.29.0" -}} - diff --git a/themes/hugo-theme-stack/layouts/partials/footer/include.html b/themes/hugo-theme-stack/layouts/partials/footer/include.html deleted file mode 100644 index 4b50a88..0000000 --- a/themes/hugo-theme-stack/layouts/partials/footer/include.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ 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 deleted file mode 100644 index 42f4dd8..0000000 --- a/themes/hugo-theme-stack/layouts/partials/head/colorScheme.html +++ /dev/null @@ -1,39 +0,0 @@ -{{- $defaultColorScheme := default "auto" .Site.Params.colorScheme.default -}} -{{- if not (default false .Site.Params.colorScheme.toggle) -}} - {{/* If toggle is disabled, force default scheme */}} - -{{- else -}} - {{/* Otherwise set to default scheme only if no preference is set by user */}} - -{{- end -}} - - diff --git a/themes/hugo-theme-stack/layouts/partials/head/custom.html b/themes/hugo-theme-stack/layouts/partials/head/custom.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/hugo-theme-stack/layouts/partials/head/head.html b/themes/hugo-theme-stack/layouts/partials/head/head.html deleted file mode 100644 index a7991c1..0000000 --- a/themes/hugo-theme-stack/layouts/partials/head/head.html +++ /dev/null @@ -1,26 +0,0 @@ - - - -{{- $description := partialCached "data/description" . .RelPermalink -}} - -{{ with .Params.Keywords }}{{ end }} - -{{- $title := partial "data/title" . -}} -{{ $title }} - - - -{{- partial "head/style.html" . -}} -{{- partial "head/script.html" . -}} -{{- partial "head/opengraph/include.html" . -}} - -{{- range .AlternativeOutputFormats -}} - -{{- end -}} - -{{ with .Site.Params.favicon }} - -{{ 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 deleted file mode 100644 index 3a43f48..0000000 --- a/themes/hugo-theme-stack/layouts/partials/head/opengraph/include.html +++ /dev/null @@ -1,2 +0,0 @@ -{{ 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 deleted file mode 100644 index 055745d..0000000 --- a/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/base.html +++ /dev/null @@ -1,43 +0,0 @@ -{{- $title := partialCached "data/title" . .RelPermalink -}} -{{- $description := partialCached "data/description" . .RelPermalink -}} - - - - - - - -{{- with .Params.locale -}} - -{{- end -}} - -{{- if .IsPage -}} - - {{- range .Params.tags -}} - - {{- end -}} -{{- end -}} - -{{- if .IsPage -}} - {{- if not .Date.IsZero -}} - - {{- end -}} - {{- if not .Lastmod.IsZero -}} - - {{- end -}} -{{- else -}} - {{- if not .Site.Lastmod.IsZero -}} - - {{- end -}} -{{- end -}} - -{{ $image := partialCached "helper/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" }} -{{- if $image.exists -}} - -{{- 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 deleted file mode 100644 index c39eba3..0000000 --- a/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/twitter.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- with .Site.Params.opengraph.twitter.site -}} - - -{{- end -}} - -{{- $title := partialCached "data/title" . .RelPermalink -}} -{{- $description := partialCached "data/description" . .RelPermalink -}} - - - - -{{- $image := partialCached "helper/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" -}} -{{- if $image.exists -}} - - -{{- 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 deleted file mode 100644 index e69de29..0000000 diff --git a/themes/hugo-theme-stack/layouts/partials/head/style.html b/themes/hugo-theme-stack/layouts/partials/head/style.html deleted file mode 100644 index 30ca26e..0000000 --- a/themes/hugo-theme-stack/layouts/partials/head/style.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ $sass := resources.Get "scss/style.scss" }} -{{ $style := $sass | toCSS | minify | resources.Fingerprint "sha256" }} - \ 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 deleted file mode 100644 index 88d9525..0000000 --- a/themes/hugo-theme-stack/layouts/partials/helper/external.html +++ /dev/null @@ -1,29 +0,0 @@ -{{- $List := index .Context.Site.Data.external .Namespace -}} -{{- with $List -}} - {{- range . -}} - {{- if eq .type "script" -}} - - {{- else if eq .type "style" -}} - - {{- 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 deleted file mode 100644 index 72162e8..0000000 --- a/themes/hugo-theme-stack/layouts/partials/helper/icon.html +++ /dev/null @@ -1,6 +0,0 @@ -{{- $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 deleted file mode 100644 index 11fc3b6..0000000 --- a/themes/hugo-theme-stack/layouts/partials/helper/image.html +++ /dev/null @@ -1,61 +0,0 @@ -{{ $result := dict "exists" false "permalink" nil "resource" nil "isDefault" false }} -{{ $imageField := default "image" .Context.Site.Params.featuredImageField }} -{{ $imageValue := index .Context.Params $imageField }} - -{{ if $imageValue }} - - {{ $result = merge $result (dict "exists" true) }} - {{ $url := urls.Parse $imageValue }} - - {{ if or (eq $url.Scheme "http") (eq $url.Scheme "https") }} - - {{ $result = merge $result (dict "permalink" $imageValue) }} - {{ else }} - {{ $pageResourceImage := .Context.Resources.GetMatch (printf "%s" ($imageValue | safeURL)) }} - - {{ if $pageResourceImage }} - - {{ $result = merge $result (dict "permalink" $pageResourceImage.RelPermalink) }} - - - {{ if ne (path.Ext $imageValue) ".svg" }} - {{ $result = merge $result (dict "resource" $pageResourceImage) }} - {{ end }} - {{ else }} - - {{ $result = merge $result (dict "permalink" (relURL $imageValue)) }} - {{ end }} - - {{ end }} - -{{ else if and (ne .Type nil) (index .Context.Site.Params.defaultImage .Type) }} - - {{ $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 }} - - {{ $result = merge $result (dict "permalink" $siteResourceImage.RelPermalink) }} - {{ $result = merge $result (dict "resource" $siteResourceImage) }} - {{ else }} - - {{ errorf "Failed loading image: %q" $defaultImageSetting.src }} - {{ $result = merge $result (dict "exists" false) }} - {{ end }} - - {{ else }} - - {{ $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 deleted file mode 100644 index 7756050..0000000 --- a/themes/hugo-theme-stack/layouts/partials/pagination.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ if gt .Paginator.TotalPages 1 }} - -{{ end }} diff --git a/themes/hugo-theme-stack/layouts/partials/sidebar/left.html b/themes/hugo-theme-stack/layouts/partials/sidebar/left.html deleted file mode 100644 index 21e7d3e..0000000 --- a/themes/hugo-theme-stack/layouts/partials/sidebar/left.html +++ /dev/null @@ -1,103 +0,0 @@ - diff --git a/themes/hugo-theme-stack/layouts/partials/sidebar/right.html b/themes/hugo-theme-stack/layouts/partials/sidebar/right.html deleted file mode 100644 index 6333f10..0000000 --- a/themes/hugo-theme-stack/layouts/partials/sidebar/right.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- $scope := default "homepage" .Scope -}} -{{- $context := .Context -}} -{{- with (index .Context.Site.Params.widgets $scope) -}} - -{{ 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 deleted file mode 100644 index 1f2abc5..0000000 --- a/themes/hugo-theme-stack/layouts/partials/widget/archives.html +++ /dev/null @@ -1,35 +0,0 @@ -{{- $query := first 1 (where .Context.Site.Pages "Layout" "==" "archives") -}} -{{- $context := .Context -}} -{{- $limit := default 5 .Params.limit -}} -{{- if $query -}} - {{- $archivesPage := index $query 0 -}} -
-
- {{ partial "helper/icon" "infinity" }} -
-

{{ T "widget.archives.title" }}

- - {{ $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" }} - -
- {{ range $index, $item := first (add $limit 1) ($archives) }} - {{- $id := lower (replace $item.Key " " "-") -}} - - {{ end }} -
-
-{{- 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 deleted file mode 100644 index 10c8a35..0000000 --- a/themes/hugo-theme-stack/layouts/partials/widget/categories.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- $context := .Context -}} -{{- $limit := default 10 .Params.limit -}} -
-
- {{ partial "helper/icon" "categories" }} -
-

{{ T "widget.categoriesCloud.title" }}

- -
- {{ range first $limit $context.Site.Taxonomies.categories.ByCount }} - - {{ .Page.Title }} - - {{ end }} -
-
diff --git a/themes/hugo-theme-stack/layouts/partials/widget/search.html b/themes/hugo-theme-stack/layouts/partials/widget/search.html deleted file mode 100644 index 7b0fc73..0000000 --- a/themes/hugo-theme-stack/layouts/partials/widget/search.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- $query := first 1 (where .Context.Site.Pages "Layout" "==" "search") -}} -{{- if $query -}} - {{- $searchPage := index $query 0 -}} -
-

- - - - -

-
-{{- 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 deleted file mode 100644 index e64e5e2..0000000 --- a/themes/hugo-theme-stack/layouts/partials/widget/tag-cloud.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- $context := .Context -}} -{{- $limit := default 10 .Params.limit -}} -
-
- {{ partial "helper/icon" "tag" }} -
-

{{ T "widget.tagCloud.title" }}

- -
- {{ range first $limit $context.Site.Taxonomies.tags.ByCount }} - - {{ .Page.Title }} - - {{ end }} -
-
\ 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 deleted file mode 100644 index e311de3..0000000 --- a/themes/hugo-theme-stack/layouts/partials/widget/toc.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ if (.Context.Scratch.Get "TOCEnabled") }} -
-
- {{ partial "helper/icon" "hash" }} -
-

{{ T "article.tableOfContents" }}

- -
- {{ .Context.TableOfContents }} -
-
-{{ end }} \ No newline at end of file -- cgit v1.2.3