mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Fixing reference to site description from the [params] section of the config.toml in the site-header.html document.
This commit is contained in:
parent
d5b87cb15e
commit
601ccf45e1
@ -1,4 +1,4 @@
|
|||||||
{{ $featured_image := .Param "featured_image" | default "images/gohugo-default-sample-hero-image.jpg" }}
|
{{ $featured_image := .Param.featured_image | default "images/gohugo-default-sample-hero-image.jpg" }}
|
||||||
{{ if $featured_image }}
|
{{ if $featured_image }}
|
||||||
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
|
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
|
||||||
{{ $featured_image := (trim $featured_image "/") | absURL }}
|
{{ $featured_image := (trim $featured_image "/") | absURL }}
|
||||||
@ -9,7 +9,7 @@
|
|||||||
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
|
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
|
||||||
{{ .Title | default .Site.Title }}
|
{{ .Title | default .Site.Title }}
|
||||||
</h1>
|
</h1>
|
||||||
{{ with .Params.description }}
|
{{ with .Param.description }}
|
||||||
<h2 class="fw1 f5 f3-l white-80 measure-wide-l center mt3">
|
<h2 class="fw1 f5 f3-l white-80 measure-wide-l center mt3">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</h2>
|
</h2>
|
||||||
@ -25,7 +25,7 @@
|
|||||||
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
|
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
|
||||||
{{ .Title | default .Site.Title }}
|
{{ .Title | default .Site.Title }}
|
||||||
</h1>
|
</h1>
|
||||||
{{ with .Params.description }}
|
{{ with .Param.description }}
|
||||||
<h2 class="fw1 f5 f3-l white-80 measure-wide-l center lh-copy mt3 mb4">
|
<h2 class="fw1 f5 f3-l white-80 measure-wide-l center lh-copy mt3 mb4">
|
||||||
{{ . }}
|
{{ . }}
|
||||||
</h2>
|
</h2>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user