1
Fork 0
theorangeone.net-legacy/layouts/index.html
Jake Howard cd83cbf332
Replace cusotm image loader with object-fit CSS
Because of this, images had to be changed to load async, else pages are crazy intensive to load
2021-07-18 12:36:59 +01:00

16 lines
698 B
HTML

{{ define "main" }}
{{ $header_image := (resources.Get "img/header.jpg" | fingerprint).Resize "1500x" }}
<header id="index-header" class="d-flex align-items-center" style="background-image: url({{ $header_image.RelPermalink }})">
<div class="text-center m-auto text-light">
<h1 class="display-1">{{ .Site.Params.author_name }}</h1>
<h2 class="lead">{{ .Content }}</h2>
<form action='{{ (.Site.GetPage "search").RelPermalink }}' method="GET">
<div class="input-group mt-5">
<input name="q" type="text" class="form-control" id="search-input" placeholder="Search" title="Press enter to search">
</div>
</form>
</div>
</header>
{{ end }}