From 7daff47eafeca3d6e54361a89720ea3aa02e9afb Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 21 Feb 2018 17:57:46 +0000 Subject: [PATCH] Use main image from frontmatter over css --- content/_index.md | 1 + layouts/index.html | 4 ++-- static/src/scss/style.scss | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/content/_index.md b/content/_index.md index 6267160..d1eaeb3 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,4 +1,5 @@ --- title: Homepage +image: /img/header.jpg --- Part Developer. Part SysAdmin. Part Hacker. All Nerd! diff --git a/layouts/index.html b/layouts/index.html index ec5c16b..1c7c9a7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,8 +1,8 @@ {{ define "main" }} -
+

{{ .Site.Params.author_name }}

-

{{ .RawContent }}

+

{{ .Content }}

{{ end }} diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 0ca46bd..0764346 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -124,8 +124,6 @@ table td { #index-header { - background-image: url("/img/header.jpg"); - background-size: cover; width: 100%; height: calc(100% - 110px); }