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
|
title: Homepage
|
||||||
|
image: /img/header.jpg
|
||||||
---
|
---
|
||||||
Part Developer. Part SysAdmin. Part Hacker. All Nerd!
|
Part Developer. Part SysAdmin. Part Hacker. All Nerd!
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{{ define "main" }}
|
{{ 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">
|
<div class="text-center m-auto text-light">
|
||||||
<h1 class="display-1">{{ .Site.Params.author_name }}</h1>
|
<h1 class="display-1">{{ .Site.Params.author_name }}</h1>
|
||||||
<p class="lead">{{ .RawContent }}</p>
|
<h2 class="lead">{{ .Content }}</h2>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -124,8 +124,6 @@ table td {
|
||||||
|
|
||||||
|
|
||||||
#index-header {
|
#index-header {
|
||||||
background-image: url("/img/header.jpg");
|
|
||||||
background-size: cover;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 110px);
|
height: calc(100% - 110px);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue