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 --- .../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 --- 9 files changed, 251 deletions(-) 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 (limited to 'themes/hugo-theme-stack/layouts/partials/article/components') 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 -- cgit v1.2.3