From 59c7d4567380d1a9c80e96eb958fdbdd512ce006 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 3 Nov 2024 20:08:36 +0300 Subject: новая жизнь блога MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../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 +++ 5 files changed, 49 insertions(+) create mode 100644 themes/hugo-theme-stack/layouts/partials/footer/components/custom-font.html create mode 100644 themes/hugo-theme-stack/layouts/partials/footer/components/script.html create mode 100644 themes/hugo-theme-stack/layouts/partials/footer/custom.html create mode 100644 themes/hugo-theme-stack/layouts/partials/footer/footer.html create mode 100644 themes/hugo-theme-stack/layouts/partials/footer/include.html (limited to 'themes/hugo-theme-stack/layouts/partials/footer') 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 new file mode 100644 index 0000000..8e2ff37 --- /dev/null +++ b/themes/hugo-theme-stack/layouts/partials/footer/components/custom-font.html @@ -0,0 +1,11 @@ + \ 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 new file mode 100644 index 0000000..3dc96cb --- /dev/null +++ b/themes/hugo-theme-stack/layouts/partials/footer/components/script.html @@ -0,0 +1,12 @@ +{{- 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 new file mode 100644 index 0000000..e69de29 diff --git a/themes/hugo-theme-stack/layouts/partials/footer/footer.html b/themes/hugo-theme-stack/layouts/partials/footer/footer.html new file mode 100644 index 0000000..9c28779 --- /dev/null +++ b/themes/hugo-theme-stack/layouts/partials/footer/footer.html @@ -0,0 +1,23 @@ +{{- $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 new file mode 100644 index 0000000..4b50a88 --- /dev/null +++ b/themes/hugo-theme-stack/layouts/partials/footer/include.html @@ -0,0 +1,3 @@ +{{ partialCached "footer/components/script.html" . }} +{{ partialCached "footer/components/custom-font.html" . }} +{{ partial "footer/custom.html" . }} \ No newline at end of file -- cgit v1.2.3