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