1
Fork 0

Use main image from frontmatter over css

This commit is contained in:
Jake Howard 2018-02-21 17:57:46 +00:00
parent c65a313004
commit 7daff47eaf
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,5 @@
---
title: Homepage
image: /img/header.jpg
---
Part Developer. Part SysAdmin. Part Hacker. All Nerd!

View file

@ -1,8 +1,8 @@
{{ define "main" }}
<header id="index-header" class="d-flex align-items-center">
<header id="index-header" class="d-flex align-items-center image" data-image="{{ .Params.image }}">
<div class="text-center m-auto text-light">
<h1 class="display-1">{{ .Site.Params.author_name }}</h1>
<p class="lead">{{ .RawContent }}</p>
<h2 class="lead">{{ .Content }}</h2>
</div>
</header>
{{ end }}

View file

@ -124,8 +124,6 @@ table td {
#index-header {
background-image: url("/img/header.jpg");
background-size: cover;
width: 100%;
height: calc(100% - 110px);
}