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

# Conflicts:
#	layouts/index.html
This commit is contained in:
zjedi 2023-03-22 00:27:16 +01:00
commit 6bc232a50d
6 changed files with 11 additions and 16 deletions

View file

@ -32,7 +32,7 @@
{{ range $index_val, $elem_val := $filtered }}
{{ $fnav_title := .Title }}
{{ with .Params.navigation_menu_title }}{{ $fnav_title = . }}{{ end }}
<div class='post-holder'>
<div class='post-holder{{ if and (ne .Site.Params.invertSectionColors true) (not (modBool $index_val 2)) }} dark{{ else if and (eq .Site.Params.invertSectionColors true) (modBool $index_val 2) }} dark{{ end }}'>
<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="{{ $fnav_title | safeHTMLAttr }}">{{ .Title | safeHTML }}</h2>
@ -41,7 +41,7 @@
{{ .Content }}
</section>
</article>
<div class='post-after'></div>
<div class='post-after{{ if and (ne .Site.Params.invertSectionColors true) (modBool $index_val 2) }} light{{ else if and (eq .Site.Params.invertSectionColors true) (not (modBool $index_val 2)) }} light{{ end }}'></div>
</div>
{{ end }}
</main>