This commit is contained in:
Thomas Dedek
2019-12-18 11:37:56 +01:00
commit a6e9d9230f
39 changed files with 1152 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
{{ define "main" }}
<h1 style="text-align: center">{{ .Title }}</h1>
<div>
{{ .Content }}
</div>
{{ range .Params.items }}
<a class="item-box" href="{{ .url }}" target="_blank">
<div class="image-box">
<img src="{{ .icon | absURL }}"/>
</div>
<div class="text-box">
<h2>{{ .title }}</h2>
{{ $found := false }}
{{ range $key, $value := .description }}
{{ if eq (string $.Site.Language) $key }}
<p>{{ $value }}</p>
{{ $found = true }}
{{ end }}
{{ end }}
{{ if eq $found false }}
<p>{{ .description.en }}</p>
{{ end }}
</div>
</a>
{{ end }}
{{ end }}