From fa9ccbd94724e9edc849a7dce46c0d468ee47fd5 Mon Sep 17 00:00:00 2001 From: Thorsten Ortlepp Date: Thu, 12 Dec 2024 01:19:00 +0100 Subject: website setup --- layouts/partials/extend_head.html | 8 ++ layouts/partials/footer.html | 150 ++++++++++++++++++++++++++++++++++++++ layouts/partials/svg.html | 16 ++++ 3 files changed, 174 insertions(+) create mode 100644 layouts/partials/extend_head.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/svg.html (limited to 'layouts/partials') diff --git a/layouts/partials/extend_head.html b/layouts/partials/extend_head.html new file mode 100644 index 0000000..a3af417 --- /dev/null +++ b/layouts/partials/extend_head.html @@ -0,0 +1,8 @@ +{{- /* Head custom content area start */ -}} +{{- /* Insert any custom code (web-analytics, resources, etc.) - it will appear in the section of every page. */ -}} +{{- /* Can be overwritten by partial with the same name in the global layouts. */ -}} +{{- /* Head custom content area end */ -}} + +{{ range .Site.Params.custom_css -}} + +{{- end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..6a215c2 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,150 @@ +{{- if not (.Param "hideFooter") }} + +{{- end }} + +{{- if (not site.Params.disableScrollToTop) }} + + + + + +{{- end }} + +{{- partial "extend_footer.html" . }} + + + +{{- if (not site.Params.disableScrollToTop) }} + +{{- end }} + +{{- if (not site.Params.disableThemeToggle) }} + +{{- end }} + +{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (.Param "ShowCodeCopyButtons")) }} + +{{- end }} diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html new file mode 100644 index 0000000..f535408 --- /dev/null +++ b/layouts/partials/svg.html @@ -0,0 +1,16 @@ +{{ $icon_name := ( trim .name " " | lower )}} +{{- if (eq $icon_name "git") -}} + +{{- else if (eq $icon_name "xing") -}} + +{{- else if (eq $icon_name "sourdough") -}} + +{{- else if (eq $icon_name "sauerteig") -}} + +{{- else if $icon_name -}} + + + + +{{- end -}} -- cgit v1.2.3