Custom header splash doodad
This commit is contained in:
@@ -2,6 +2,13 @@
|
||||
--primary: #7DF9FF;
|
||||
--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 {
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
18
config.toml
18
config.toml
@@ -32,7 +32,7 @@ sectionPagesMenu = "main" # Enable menu system for lazy bloggers
|
||||
] # Suggested, controls default Open Graph images
|
||||
|
||||
[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]
|
||||
hidden = false # Optional, set true to hide footer
|
||||
@@ -47,3 +47,19 @@ sectionPagesMenu = "main" # Enable menu system for lazy bloggers
|
||||
[[params.layout.home.section]]
|
||||
type = "post"
|
||||
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/"
|
||||
|
||||
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 }}
|
||||
BIN
static/true_lies-webfont.woff
Normal file
BIN
static/true_lies-webfont.woff
Normal file
Binary file not shown.
BIN
static/true_lies-webfont.woff2
Normal file
BIN
static/true_lies-webfont.woff2
Normal file
Binary file not shown.
Reference in New Issue
Block a user