aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-theme-stack/layouts/partials/footer
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-11-16 19:32:18 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-11-17 01:28:57 +0300
commit239d68f94c6250276850fbe95eaa6cdd5c38fb26 (patch)
treec576da169afc442f51eae6213ad0ff749ed86589 /themes/hugo-theme-stack/layouts/partials/footer
parent8e79098193fd0a8b65305dd8054cf7c424c60bc5 (diff)
Своя тема, полностью всё переделал
Diffstat (limited to 'themes/hugo-theme-stack/layouts/partials/footer')
-rw-r--r--themes/hugo-theme-stack/layouts/partials/footer/components/custom-font.html11
-rw-r--r--themes/hugo-theme-stack/layouts/partials/footer/components/script.html12
-rw-r--r--themes/hugo-theme-stack/layouts/partials/footer/custom.html0
-rw-r--r--themes/hugo-theme-stack/layouts/partials/footer/footer.html23
-rw-r--r--themes/hugo-theme-stack/layouts/partials/footer/include.html3
5 files changed, 0 insertions, 49 deletions
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 @@
-<script>
- (function () {
- const customFont = document.createElement('link');
- customFont.href = "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap";
-
- customFont.type = "text/css";
- customFont.rel = "stylesheet";
-
- document.head.appendChild(customFont);
- }());
-</script> \ 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 -}}
-
-<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
-
-{{- with resources.Get "ts/custom.ts" -}}
- {{/* Place your custom script in HUGO_SITE_FOLDER/assets/ts/custom.ts */}}
- {{- $customScript := . | js.Build $opts | fingerprint -}}
- <script type="text/javascript" src="{{ $customScript.RelPermalink }}" defer></script>
-{{- 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
--- a/themes/hugo-theme-stack/layouts/partials/footer/custom.html
+++ /dev/null
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" -}}
-<footer class="site-footer">
- <section class="copyright">
- &copy;
- {{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
- {{ .Site.Params.footer.since }} -
- {{ end }}
- {{ now.Format "2006" }} {{ default .Site.Title .Site.Copyright }}
- </section>
-
- <section class="powerby">
- {{ with .Site.Params.footer.customText }}
- {{ . | safeHTML }} <br/>
- {{ end }}
-
- {{- $Generator := `<a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>` -}}
- {{- $Theme := printf `<b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="%s">Stack</a></b>` $ThemeVersion -}}
- {{- $DesignedBy := `<a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>` -}}
-
- {{ T "footer.builtWith" (dict "Generator" $Generator) | safeHTML }} <br />
- {{ T "footer.designedBy" (dict "Theme" $Theme "DesignedBy" $DesignedBy) | safeHTML }}
- </section>
-</footer>
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