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
---
themes/hugo-theme-stack/layouts/404.html | 45 ---------
.../layouts/_default/_markup/render-heading.html | 6 --
.../layouts/_default/_markup/render-image.html | 41 --------
.../layouts/_default/_markup/render-link.html | 3 -
.../layouts/_default/archives.html | 35 -------
.../hugo-theme-stack/layouts/_default/baseof.html | 28 ------
themes/hugo-theme-stack/layouts/_default/list.html | 85 -----------------
themes/hugo-theme-stack/layouts/_default/rss.xml | 48 ----------
.../hugo-theme-stack/layouts/_default/single.html | 46 ---------
themes/hugo-theme-stack/layouts/index.html | 19 ----
themes/hugo-theme-stack/layouts/page/search.html | 33 -------
themes/hugo-theme-stack/layouts/page/search.json | 26 ------
.../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 ---
.../layouts/shortcodes/bilibili.html | 23 -----
.../layouts/shortcodes/gitlab.html | 4 -
.../hugo-theme-stack/layouts/shortcodes/quote.html | 15 ---
.../layouts/shortcodes/tencent.html | 10 --
.../hugo-theme-stack/layouts/shortcodes/video.html | 14 ---
.../layouts/shortcodes/youtube.html | 13 ---
70 files changed, 1867 deletions(-)
delete mode 100644 themes/hugo-theme-stack/layouts/404.html
delete mode 100644 themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html
delete mode 100644 themes/hugo-theme-stack/layouts/_default/_markup/render-image.html
delete mode 100644 themes/hugo-theme-stack/layouts/_default/_markup/render-link.html
delete mode 100644 themes/hugo-theme-stack/layouts/_default/archives.html
delete mode 100644 themes/hugo-theme-stack/layouts/_default/baseof.html
delete mode 100644 themes/hugo-theme-stack/layouts/_default/list.html
delete mode 100644 themes/hugo-theme-stack/layouts/_default/rss.xml
delete mode 100644 themes/hugo-theme-stack/layouts/_default/single.html
delete mode 100644 themes/hugo-theme-stack/layouts/index.html
delete mode 100644 themes/hugo-theme-stack/layouts/page/search.html
delete mode 100644 themes/hugo-theme-stack/layouts/page/search.json
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
delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/bilibili.html
delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/gitlab.html
delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/quote.html
delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/tencent.html
delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/video.html
delete mode 100644 themes/hugo-theme-stack/layouts/shortcodes/youtube.html
(limited to 'themes/hugo-theme-stack/layouts')
diff --git a/themes/hugo-theme-stack/layouts/404.html b/themes/hugo-theme-stack/layouts/404.html
deleted file mode 100644
index 98f4a67..0000000
--- a/themes/hugo-theme-stack/layouts/404.html
+++ /dev/null
@@ -1,45 +0,0 @@
-{{ define "main" }}
-
-
{{ T "notFound.title" }}
- {{ T "notFound.subtitle" }}
-
-
- {{- $query := first 1 (where .Site.Pages "Layout" "==" "search") -}}
- {{- $searchPage := index $query 0 -}}
-
- {{- with $searchPage -}}
-
-
-
-
-
-
- {{- $opts := dict "minify" hugo.IsProduction "JSXFactory" "createElement" -}}
- {{- $searchScript := resources.Get "ts/search.tsx" | js.Build $opts -}}
-
-
-
- {{- 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
deleted file mode 100644
index f79308a..0000000
--- a/themes/hugo-theme-stack/layouts/_default/_markup/render-heading.html
+++ /dev/null
@@ -1,6 +0,0 @@
-
- {{- if site.Params.Article.HeadingAnchor -}}
-
- {{- end -}}
- {{ .Text | safeHTML }}
-
\ 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
deleted file mode 100644
index 0ed5584..0000000
--- a/themes/hugo-theme-stack/layouts/_default/_markup/render-image.html
+++ /dev/null
@@ -1,41 +0,0 @@
-{{- $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 -}}
-
-
\ 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
deleted file mode 100644
index 843854d..0000000
--- a/themes/hugo-theme-stack/layouts/_default/_markup/render-link.html
+++ /dev/null
@@ -1,3 +0,0 @@
-{{ .Text | safeHTML }}
\ 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
deleted file mode 100644
index 5d5243c..0000000
--- a/themes/hugo-theme-stack/layouts/_default/archives.html
+++ /dev/null
@@ -1,35 +0,0 @@
-{{ define "body-class" }}template-archives{{ end }}
-{{ define "main" }}
-
-
- {{ $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 " " "-") }}
-
-
-
- {{ range .Pages }}
- {{ partial "article-list/compact" . }}
- {{ end }}
-
-
- {{ 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
deleted file mode 100644
index 83fdaa3..0000000
--- a/themes/hugo-theme-stack/layouts/_default/baseof.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
- {{- partial "head/head.html" . -}}
- {{- block "head" . -}}{{ 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 -}}
-
- {{- block "left-sidebar" . -}}
- {{ partial "sidebar/left.html" . }}
- {{- end -}}
- {{- block "right-sidebar" . -}}{{ end }}
-
- {{- block "main" . }}{{- end }}
-
-
- {{ partial "footer/include.html" . }}
-
-
diff --git a/themes/hugo-theme-stack/layouts/_default/list.html b/themes/hugo-theme-stack/layouts/_default/list.html
deleted file mode 100644
index 9bc618d..0000000
--- a/themes/hugo-theme-stack/layouts/_default/list.html
+++ /dev/null
@@ -1,85 +0,0 @@
-{{ define "main" }}
-
-
- {{- $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 -}}
-
- {{- end -}}
-
- {{/* List only pages that are not a subsection */}}
- {{ $paginator := .Paginate $pages }}
-
- {{ range $paginator.Pages }}
- {{ partial "article-list/compact" . }}
- {{ end }}
-
-
- {{- 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
deleted file mode 100644
index 3d2e592..0000000
--- a/themes/hugo-theme-stack/layouts/_default/rss.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-{{- $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 "" | safeHTML }}
-
-
- {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}
- {{ .Permalink }}
- Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}
- Hugo -- gohugo.io{{ with .Site.LanguageCode }}
- {{.}}{{end}}{{ with .Site.Params.Author.email }}
- {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }}
- {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }}
- {{.}}{{end}}{{ if not .Date.IsZero }}
- {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }}
- {{- with .OutputFormats.Get "RSS" -}}
- {{ printf "" .Permalink .MediaType | safeHTML }}
- {{- end -}}
- {{ range $pages }}
- {{- $content := safeHTML (.Summary | html) -}}
- {{- if .Site.Params.rssFullContent -}}
- {{- $content = safeHTML (.Content | html) -}}
- {{- end -}}
- -
- {{ .Title }}
- {{ .Permalink }}
- {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
- {{ with .Site.Params.Author.email }}{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}
- {{ .Permalink }}
-
- {{- $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 }}
-
- {{ end }}
-
-
diff --git a/themes/hugo-theme-stack/layouts/_default/single.html b/themes/hugo-theme-stack/layouts/_default/single.html
deleted file mode 100644
index 5f300bf..0000000
--- a/themes/hugo-theme-stack/layouts/_default/single.html
+++ /dev/null
@@ -1,46 +0,0 @@
-{{ 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
deleted file mode 100644
index 0cd0b88..0000000
--- a/themes/hugo-theme-stack/layouts/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-{{ 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) }}
-
-
- {{ range $index, $element := $pag.Pages }}
- {{ partial "article-list/default" . }}
- {{ end }}
-
-
- {{- 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
deleted file mode 100644
index fbfb74d..0000000
--- a/themes/hugo-theme-stack/layouts/page/search.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{{ define "body-class" }}template-search{{ end }}
-{{ define "head" }}
- {{- with .OutputFormats.Get "json" -}}
-
- {{- end -}}
-{{ end }}
-{{ define "main" }}
-
-
-
-
-
-
-{{- $opts := dict "minify" hugo.IsProduction "JSXFactory" "createElement" -}}
-{{- $searchScript := resources.Get "ts/search.tsx" | js.Build $opts -}}
-
-
-{{ 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
deleted file mode 100644
index 5d4e627..0000000
--- a/themes/hugo-theme-stack/layouts/page/search.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{{- $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
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 -}}
-
-
- {{ else }}
-
- {{ 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 -}}
-
-
- {{ 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 "()" $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 }}
-
- {{ range (.GetTerms "categories") }}
-
- {{ .LinkTitle }}
-
- {{ end }}
-
- {{ end }}
-
-
-
-
- {{ with .Params.description }}
-
- {{ . }}
-
- {{ end }}
-
-
- {{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }}
- {{ $showDate := not .Date.IsZero }}
- {{ $showFooter := or $showDate $showReadingTime }}
- {{ if $showFooter }}
-
- {{ 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 }}
-
- {{ 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 @@
-
\ 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 }}
-
-{{ 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 @@
-
-
-
-
-
\ 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 -}}
-
-{{- 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 -}}
-
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 -}}
-
\ 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") }}
-
-{{ 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
deleted file mode 100644
index cb72e43..0000000
--- a/themes/hugo-theme-stack/layouts/shortcodes/bilibili.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{{ $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 }}
- Bilibili 视频av号或BV号错误!请检查视频av号或BV号是否正确
- 当前视频av或BV号:{{ $vid }},视频分P:{{ $videopage }}
-{{ end }}
-
-
-
-
diff --git a/themes/hugo-theme-stack/layouts/shortcodes/gitlab.html b/themes/hugo-theme-stack/layouts/shortcodes/gitlab.html
deleted file mode 100644
index b5a16cf..0000000
--- a/themes/hugo-theme-stack/layouts/shortcodes/gitlab.html
+++ /dev/null
@@ -1,4 +0,0 @@
-
\ 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
deleted file mode 100644
index 09bb07c..0000000
--- a/themes/hugo-theme-stack/layouts/shortcodes/quote.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
- {{ .Inner | markdownify }}
- {{- if or (.Get "author") (.Get "source") -}}
- ―
- {{- if .Get "author" -}}
-
- {{- .Get "author" -}}{{- if .Get "source" -}}, {{ end -}}
-
- {{- end -}}
- {{- with .Get "url" -}}{{- end -}}
- {{ .Get "source" }}
- {{- if .Get "url" -}}{{- end -}}
-
- {{- end -}}
-
\ 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
deleted file mode 100644
index 463dec5..0000000
--- a/themes/hugo-theme-stack/layouts/shortcodes/tencent.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{{ $vid := .Get 0 }}
-
-
-
\ 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
deleted file mode 100644
index 5324754..0000000
--- a/themes/hugo-theme-stack/layouts/shortcodes/video.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{{- $src := .Get "src" | default (.Get 0) -}}
-
-
-
diff --git a/themes/hugo-theme-stack/layouts/shortcodes/youtube.html b/themes/hugo-theme-stack/layouts/shortcodes/youtube.html
deleted file mode 100644
index 2f85931..0000000
--- a/themes/hugo-theme-stack/layouts/shortcodes/youtube.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{{- $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) -}}
-
-
-
-{{ end -}}
\ No newline at end of file
--
cgit v1.2.3