From b1e2c8fd5cb5dfa46bc440a12eafaf56cd844b1c Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Mon, 24 Nov 2025 20:54:57 +0100 Subject: Docs --- layouts/partials/account.html | 13 ++++++++ layouts/partials/head.html | 60 +++++++++++++++++++++++++++++++++++++ layouts/partials/navbar.html | 69 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 layouts/partials/account.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/navbar.html (limited to 'layouts/partials') diff --git a/layouts/partials/account.html b/layouts/partials/account.html new file mode 100644 index 0000000..f3c2001 --- /dev/null +++ b/layouts/partials/account.html @@ -0,0 +1,13 @@ + + + Flyscrape Proxy + + diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..22cd4e0 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,60 @@ + + + + {{ if hugo.IsProduction -}} + + {{ else -}} + + {{ end -}} + {{ partialCached "favicons.html" . }} + + {{ with .Title }}{{ . }} – {{ end -}} + {{ .Site.Title -}} + + + + {{ with .Params.canonical }} + + {{ else }} + + {{ end }} + + {{ partial "opengraph.html" . }} + {{ template "_internal/schema.html" . -}} + {{ template "_internal/twitter_cards.html" . -}} + + {{ partialCached "head-css.html" . }} + + + + {{- if and (eq hugo.Environment "production") (or .Site.GoogleAnalytics .Site.Config.Services.GoogleAnalytics.ID) }} + + {{ partial "google-analytics.html" . }} + {{- end }} + + + + + {{ partial "custom/head-end.html" . }} + diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html new file mode 100644 index 0000000..fbbac17 --- /dev/null +++ b/layouts/partials/navbar.html @@ -0,0 +1,69 @@ +{{- $logoPath := .Site.Params.navbar.logo.path | default "images/logo.svg" -}} +{{- $logoLink := .Site.Params.navbar.logo.link | default .Site.Home.RelPermalink -}} +{{- $logoWidth := .Site.Params.navbar.logo.width | default "20" -}} +{{- $logoHeight := .Site.Params.navbar.logo.height | default "20" -}} +{{- $logoDarkPath := .Site.Params.navbar.logo.dark | default $logoPath -}} + +{{- $navWidth := "max-w-[90rem]" -}} +{{- with .Site.Params.navbar.width -}} + {{ if eq . "normal" -}} + {{ $navWidth = "max-w-screen-xl" -}} + {{ else if eq . "full" -}} + {{ $navWidth = "max-w-full" -}} + {{ end -}} +{{- end -}} + + -- cgit v1.2.3