Custom header splash doodad
This commit is contained in:
22
layouts/partials/masthead.html
Normal file
22
layouts/partials/masthead.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user