1
Fork 0

Resize header image to reduce load times

This commit is contained in:
Jake Howard 2019-10-13 17:22:54 +01:00
parent e704528683
commit e2be87d11a
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
{{ $header_image := resources.Get "img/header.jpg" | fingerprint }} {{ $header_image := (resources.Get "img/header.jpg" | fingerprint).Resize "720x" }}
<header id="index-header" class="d-flex align-items-center image" data-image="{{ $header_image.RelPermalink }}"> <header id="index-header" class="d-flex align-items-center image" data-image="{{ $header_image.RelPermalink }}">
<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>