- fix single page header (style and back link)

- fix some markdown content and add parameter link if needed
This commit is contained in:
2025-01-24 20:57:47 +01:00
parent fc87d59dbb
commit eafd8186e3
13 changed files with 48 additions and 29 deletions

View File

@@ -24,11 +24,17 @@
{{ end }}
</div>
{{ end }}
</div>
<div id="site-menu" class="inner">
{{ with .Site.Params.back_to_home }}
<a class='btn site-menu' href='{{ "/#trainings-calendar" | relURL }}'><i class="fa fa-angle-left"></i>&nbsp;{{ . }}</a>
{{ $back_to_home := .Site.Params.back_to_home }}
{{ $back_link := "/" | relLangURL}}
{{ with .Parent }}
{{ $back_link = .RelPermalink | relLangURL }}
{{ end }}
{{ with .Param "back_link" }}
{{ $back_link = . | relLangURL }}
{{ end }}
<div id="site-menu" class="inner">
<a class='btn site-menu' href='{{ $back_link }}'><i class="fa fa-angle-left"></i>&nbsp;{{ $back_to_home }}</a>
</div>
</div>
</div>
</header>