diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-06-06 20:11:22 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-06-06 20:11:22 +0200 |
commit | 043710894c648f91a3c9acd11800d67f3b872670 (patch) | |
tree | 0d1889f6db929b8c41f3b81816fa8df335202a1a | |
parent | 53730f5b5d78cd4ecbe1b732efb84e38b62dffe7 (diff) | |
download | rabalderz-043710894c648f91a3c9acd11800d67f3b872670.tar.gz rabalderz-043710894c648f91a3c9acd11800d67f3b872670.tar.bz2 rabalderz-043710894c648f91a3c9acd11800d67f3b872670.zip |
Add a site header.
-rw-r--r-- | sass/styles.scss | 18 | ||||
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | templates/header.html | 4 |
3 files changed, 23 insertions, 1 deletions
diff --git a/sass/styles.scss b/sass/styles.scss index 147dc24..1027978 100644 --- a/sass/styles.scss +++ b/sass/styles.scss @@ -20,6 +20,24 @@ pre { padding: 0.3em; } +.site-header { + font-family: sans-serif; + .site-title { + background-color: #3e4753; + color: #ccc; + padding-left: 5rem; + padding-right: 5rem; + font-size: 200%; + } + .site-description { + background-color: #000; + color: #ccc; + padding-left: 5rem; + padding-right: 5rem; + font-size: x-small; + } +} + .page-content { margin-left: 5em; margin-right: 5em; diff --git a/templates/base.html b/templates/base.html index dfd162d..0724201 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,7 +14,7 @@ <body> - {#% include header.html %#} + {% include "header.html" %} <div class="page-content"> <div class="wrapper"> diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..80e6eb5 --- /dev/null +++ b/templates/header.html @@ -0,0 +1,4 @@ +<header id="site-header" class="site-header"> + <div class="site-title">{{ config.title }}</div> + <div class="site-description">{{ config.description }}</div> +</header> |