Add custom header image
Add support for configuring a custom header image from a page's front matter, and use a new one for foundation.
This commit is contained in:
parent
7faf3602fd
commit
4f1d03ba5f
@ -1,6 +1,7 @@
|
||||
---
|
||||
title: Kosmos Infrastructure Foundation
|
||||
description: Providing physical infrastructure for Kosmos software and services
|
||||
headerImage: servers-01.jpg
|
||||
menu:
|
||||
main:
|
||||
identifier: foundation
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
public/img/network-01.jpg
Normal file
BIN
public/img/network-01.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 495 KiB |
BIN
public/img/servers-01.jpg
Normal file
BIN
public/img/servers-01.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 240 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
static/img/network-01.jpg
Normal file
BIN
static/img/network-01.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 495 KiB |
BIN
static/img/servers-01.jpg
Normal file
BIN
static/img/servers-01.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 240 KiB |
File diff suppressed because one or more lines are too long
@ -1,7 +1,15 @@
|
||||
{{ define "main" }}
|
||||
{{ if .Params.HeaderImage }}
|
||||
<!-- <div class="w-full h-32 bg-[center_bottom_23rem] bg-cover" -->
|
||||
<!-- style="background-image: url(/img/{{ .Params.HeaderImage }})"> -->
|
||||
<div class="w-full h-32 bg-[center] bg-cover"
|
||||
style="background-image: url(/img/{{ .Params.HeaderImage }})">
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="w-full h-32 bg-[url('/img/lagoon-close-02.jpg')]
|
||||
bg-[center_top_30rem] bg-cover">
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="max-w-5xl mx-auto -mt-12 py-8 px-8 text-left bg-white">
|
||||
<header class="mb-8">
|
||||
<h1 class="text-2xl font-bold">{{ .Title }}</h1>
|
||||
|
Loading…
x
Reference in New Issue
Block a user