diff --git a/static/src/scss/content.scss b/static/src/scss/content.scss
index 730dde4..c1fc550 100644
--- a/static/src/scss/content.scss
+++ b/static/src/scss/content.scss
@@ -22,3 +22,22 @@ h1.page-title {
font-size: 4rem;
margin-top: 1rem;
}
+
+.header-image-spacer {
+ height: 1rem;
+}
+
+.header-image {
+ height: calc(40vh - #{$navbar-height});
+
+ @media #{$medium-and-down} {
+ height: calc(60vh - #{$navbar-height});
+ }
+
+ // Fix darkreader weirdness
+ .parallax {
+ position: initial;
+ width: 100%;
+ height: 100%;
+ }
+}
diff --git a/static/src/scss/index.scss b/static/src/scss/index.scss
index 5a64419..f800b3b 100644
--- a/static/src/scss/index.scss
+++ b/static/src/scss/index.scss
@@ -28,21 +28,6 @@ footer.page-footer {
}
}
-.header-image {
- height: calc(40vh - #{$navbar-height});
-
- @media #{$medium-and-down} {
- height: calc(60vh - #{$navbar-height});
- }
-
- // Fix darkreader weirdness
- .parallax {
- position: initial;
- width: 100%;
- height: 100%;
- }
-}
-
nav {
a.sidenav-trigger {
padding: 0 5px;
diff --git a/templates/about.html b/templates/about.html
index 2991c5b..7fdddb9 100644
--- a/templates/about.html
+++ b/templates/about.html
@@ -4,8 +4,6 @@
{% block title %}About{% endblock %}
-{% block headerimage %}{% static "img/header.jpg" %}{% endblock %}
-
{% block content %}
diff --git a/templates/blog/index.html b/templates/blog/index.html
index cf83b27..80b7931 100644
--- a/templates/blog/index.html
+++ b/templates/blog/index.html
@@ -4,8 +4,6 @@
{% block title %}Blog{% endblock %}
-{% block headerimage %}{% static "img/header.jpg" %}{% endblock %}
-
{% block content %}
{% endblock%}
diff --git a/templates/content.html b/templates/content.html
index ae17b4b..fa89ef0 100644
--- a/templates/content.html
+++ b/templates/content.html
@@ -1,11 +1,13 @@
{% extends "base.html" %}
{% block main %}
- {% block headerimagewrapper %}
+ {% if header_image %}