Merge remote-tracking branch 'origin/master' into pr/45

# Conflicts:
#	layouts/index.html
This commit is contained in:
zjedi 2023-03-21 01:04:40 +01:00
commit 5ba5542aee
3 changed files with 10 additions and 7 deletions

View file

@ -3,6 +3,7 @@
header_image: "images/cover-image.jpg"
# Optional header logo. CSS: `#blog-logo`, with max-height defined, optimize to prevent scaling
header_logo: "images/chef-hat.png"
# Headers are safeHTML, you can use HTML tags such as b,i,u,br
header_headline: "Jane Doe"
header_subheadline: "Hi there , I am a Nutrition Coach & Chef Consultant"
header_subheadline: "<b>Nutrition</b> Coach & <b>Chef</b> Consultant"
---

View file

@ -10,7 +10,7 @@
{{ with .Params.header_logo }}<img id="blog-logo" src="{{ . }}" />{{ end }}
{{ if .Site.Params.title_guard }}<div class="title-and-description-guard">{{ end }}
{{ with .Params.header_headline }}<h1 class="blog-title">{{ . | safeHTML }}</h1>{{ end }}
{{ with .Params.header_subheadline }}<h2 class="blog-description">{{ . }}</h2>{{ end }}
{{ with .Params.header_subheadline }}<h2 class="blog-description">{{ . | safeHTML }}</h2>{{ end }}
{{ if .Site.Params.title_guard }}</div>{{ end }}
{{ range where $sections ".Params.header_menu" "eq" true }}
{{ $button_title := .Title }}
@ -35,7 +35,7 @@
<div class='post-holder'>
<article id='{{ anchorize .Title }}' class='post {{ if eq $index_val 0 }}first{{ end }} {{ if eq (add $index_val 1) (len $sections) }}last{{ end }}'>
<header class="post-header">
<h2 class="post-title" data-fnav-title="{{ safeHTMLAttr $fnav_title }}">{{ .Title }}</h2>
<h2 class="post-title" data-fnav-title="{{ $fnav_title | safeHTMLAttr }}">{{ .Title | safeHTML }}</h2>
</header>
<section class="post-content">
{{ .Content }}

View file

@ -1,14 +1,16 @@
<footer class="site-footer">
<div class="inner">
{{ with .Site.Params.copyright }}
<section class="copyright">{{ . | markdownify }}</section>{{ end }}
<section class="copyright">{{ . | safeHTML }}</section>
{{ end }}
<section>{{ echoParam .Site.Params "hidebyline" }}</section>
{{ if ne .Site.Params.hidedesignbyline true }}
<section>
<a href="https://themes.gohugo.io/hugo-scroll/">Hugo Scroll</a> template
</section>{{ end }}
</section>
{{ end }}
</div>
</footer>