diff --git a/assets/images/banner/.directory b/assets/images/banner/.directory new file mode 100644 index 00000000..9027c272 --- /dev/null +++ b/assets/images/banner/.directory @@ -0,0 +1,9 @@ +[Dolphin] +HeaderColumnWidths=733,143,94,163 +PreviewsShown=false +SortOrder=1 +SortRole=modificationtime +Timestamp=2022,5,6,15,38,7.939 +Version=4 +ViewMode=1 +VisibleRoles=Details_text,Details_size,Details_modificationtime,Details_type,Details_permissions,CustomizedDetails diff --git a/assets/images/banner/home.jpg b/assets/images/banner/home.jpg deleted file mode 100644 index 6aac5d62..00000000 Binary files a/assets/images/banner/home.jpg and /dev/null differ diff --git a/assets/images/banner/home.webp b/assets/images/banner/home.webp new file mode 100644 index 00000000..d9cb9d87 Binary files /dev/null and b/assets/images/banner/home.webp differ diff --git a/themes/buha/assets/css/classes.css b/themes/buha/assets/css/classes.css index 79b76adf..87ef5577 100644 --- a/themes/buha/assets/css/classes.css +++ b/themes/buha/assets/css/classes.css @@ -61,3 +61,4 @@ .no_underline { text-decoration: none; } + diff --git a/themes/buha/assets/css/header.css b/themes/buha/assets/css/header.css index 1bc0fea0..edb5e59c 100644 --- a/themes/buha/assets/css/header.css +++ b/themes/buha/assets/css/header.css @@ -25,3 +25,10 @@ summary { list-style: none; text-align: right; } + +.sticky { + position: fixed; + width: 100%; + max-width: 1024px; + background-color: var(--background-alt); +} diff --git a/themes/buha/layouts/_default/baseof.html b/themes/buha/layouts/_default/baseof.html index c9cf8398..835237bf 100644 --- a/themes/buha/layouts/_default/baseof.html +++ b/themes/buha/layouts/_default/baseof.html @@ -4,7 +4,7 @@ {{ block "css" . -}}{{- end }}
-
+
{{ partial "snippets/header" . }}
{{ partial "snippets/banner" . -}} diff --git a/themes/buha/layouts/partials/snippets/banner.html b/themes/buha/layouts/partials/snippets/banner.html index 885b4e93..11c2ed93 100644 --- a/themes/buha/layouts/partials/snippets/banner.html +++ b/themes/buha/layouts/partials/snippets/banner.html @@ -20,10 +20,16 @@ {{ end }} {{ if resources.GetMatch $banner }} -

{{ $title }}

+

{{ $title }}

{{ else if .Resources.Match "banner*" }} {{ $img = (.Resources.GetMatch "banner*") }} -

{{ $title }}

+

{{ $title }}

{{ else }} -

{{ $title }}

+

{{ $title }}

{{ end }}