mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-07 16:42:45 +00:00
refactor: code fixes and default center of page headers
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
This commit is contained in:
parent
2ed5c551dd
commit
f6a3af3f4a
@ -1,8 +1,10 @@
|
||||
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
|
||||
{{ if $featured_image }}
|
||||
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
|
||||
<header class="{{ .Params.featured_image_class | .Site.Params.featured_image_class | default "cover bg-top" }}" style="background-image: url('{{ $featured_image }}');">
|
||||
<div class="{{ .Params.cover_dimming_class | .Site.Params.cover_dimming_class | default "bg-black-60" }}">
|
||||
{{ $featured_image_class := .Params.featured_image_class | default "cover bg-center" }}
|
||||
{{ $cover_dimming_class := .Params.cover_dimming_class | default "bg-black-60" }}
|
||||
<header class="{{ $featured_image_class }}" style="background-image: url('{{ $featured_image }}');">
|
||||
<div class="{{ $cover_dimming_class }}">
|
||||
{{ partial "site-navigation.html" . }}
|
||||
<div class="tc-l pv6 ph3 ph4-ns">
|
||||
{{ if not .Params.omit_header_text }}
|
||||
|
@ -1,8 +1,10 @@
|
||||
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
|
||||
{{ if $featured_image }}
|
||||
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
|
||||
<header class="{{ .Site.Params.featured_image_class | default "cover bg-top" }}" style="background-image: url('{{ $featured_image }}');">
|
||||
<div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }}">
|
||||
{{ $featured_image_class := site.Params.featured_image_class | default "cover bg-top" }}
|
||||
<header class="{{ $featured_image_class }}" style="background-image: url('{{ $featured_image }}');">
|
||||
{{ $cover_dimming_class := site.Params.cover_dimming_class | default "bg-black-60" }}
|
||||
<div class="{{ $cover_dimming_class }}">
|
||||
{{ partial "site-navigation.html" .}}
|
||||
<div class="tc-l pv4 pv6-l ph3 ph4-ns">
|
||||
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
|
||||
|
Loading…
x
Reference in New Issue
Block a user