Use main image from frontmatter over css
This commit is contained in:
parent
c65a313004
commit
7daff47eaf
3 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
title: Homepage
|
||||
image: /img/header.jpg
|
||||
---
|
||||
Part Developer. Part SysAdmin. Part Hacker. All Nerd!
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -124,8 +124,6 @@ table td {
|
|||
|
||||
|
||||
#index-header {
|
||||
background-image: url("/img/header.jpg");
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
height: calc(100% - 110px);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue