Custom header splash doodad

This commit is contained in:
2021-04-27 14:53:05 +01:00
parent bffbc8b76d
commit 8e72d230de
5 changed files with 46 additions and 1 deletions

View File

@@ -2,6 +2,13 @@
--primary: #7DF9FF; --primary: #7DF9FF;
--splash: #7e1946; --splash: #7e1946;
} }
@font-face {
font-family: 'truelies';
src: url('true_lies-webfont.woff2') format('woff2'),
url('true_lies-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
body { body {
color: white !important; color: white !important;
} }

View File

@@ -32,7 +32,7 @@ sectionPagesMenu = "main" # Enable menu system for lazy bloggers
] # Suggested, controls default Open Graph images ] # Suggested, controls default Open Graph images
[params.layout.menu.main] [params.layout.menu.main]
hidden = true # Optional, set false or remove to show section menu hidden = false # Optional, set false or remove to show section menu
[params.layout.footer] [params.layout.footer]
hidden = false # Optional, set true to hide footer hidden = false # Optional, set true to hide footer
@@ -47,3 +47,19 @@ sectionPagesMenu = "main" # Enable menu system for lazy bloggers
[[params.layout.home.section]] [[params.layout.home.section]]
type = "post" type = "post"
limit = 3 limit = 3
[[menu.main]]
name = "Home"
weight = 1
identifier = "home"
url = "/"
[[menu.main]]
name = "Posts"
weight = 2
identifier = "post"
url = "/post/"
[[menu.main]]
name = "Fiction"
url = "/categories/fiction/"

View File

@@ -0,0 +1,22 @@
<style>
@font-face {
font-family: 'truelies';
src: url('/true_lies-webfont.woff2') format('woff2'),
url('/true_lies-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
</style>
<h1 style="font-family: 'truelies', Arial, sans-serif; background: -webkit-linear-gradient(var(--splash), var(--primary)); -webkit-background-clip: text;
-webkit-text-fill-color: transparent; font-size: 4.5em; text-align: center;">Frenetic Scribblings</h1>
{{ $is_section_menu_enabled := ne .Site.Params.show_menu false }}
{{ range $name, $entries := .Site.Menus }}
{{ if or (ne $name "main") (and (eq $name "main") $is_section_menu_enabled) }}
{{ with $.Site.Params.layout.menu }}
{{ $settings := (index . $name) | default dict }}
{{ partial "components/navmenu.html" (dict "name" $name "entries" $entries "settings" $settings "page" $)}}
{{ else }}
{{ partial "components/navmenu.html" (dict "name" $name "entries" $entries "settings" dict "page" $)}}
{{ end }}
{{ end }}
{{ end }}

Binary file not shown.

Binary file not shown.