forked from web/portal
30 lines
639 B
HTML
30 lines
639 B
HTML
{{ 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 }}
|