+ add training page (add admonition shortcode)

+ Finish translation
+ clean unused asset
This commit is contained in:
2025-01-23 16:48:37 +01:00
parent f91aba8329
commit fc87d59dbb
33 changed files with 468 additions and 93 deletions

View File

@@ -0,0 +1,42 @@
{{ define "main" }}
<main class="content page-template page-{{ .Slug }}">
<header id="site-page-head" >
{{ $translations := .Page.AllTranslations }}
<div id="top-banner" class="inner">
{{ $num_lang := len $translations }}
{{ if and (gt $num_lang 1) $.Site.Params.language_menu }}
<div id="site-languages" class="inner">
{{ range $translations }}
{{ $lang_title := .Lang | strings.ToUpper }}
{{ if eq .Lang $.Lang }}
{{ if $.Site.Params.show_current_lang }}
<span class='btn-lang active'>
{{ $img_lang_temp := (printf "images/lang-%s-100.png" .Lang) }}
{{ with resources.Get $img_lang_temp }}
<img id="flag-logo" alt="" src="{{ .RelPermalink }}" />{{ end }}
{{ $lang_title }}</span>
{{ end }}
{{ else }}
<a class='btn-lang' href='{{ .RelPermalink }}'>{{ $img_lang_temp := (printf "images/lang-%s-100.png" .Lang) }}
{{ with resources.Get $img_lang_temp }}
<img id="flag-logo" alt="" src="{{ .RelPermalink }}" />{{ end }}&nbsp;{{ $lang_title }}</a>
{{ end }}
{{ 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>
{{ end }}
</div>
</div>
</header>
<article class="post page">
<h1 class="post-title">{{ .Title }}</h1>
<section class="post-content">
{{ .Content }}
</section>
</article>
</main>
{{ end }}