forked from web/portal
init
This commit is contained in:
29
layouts/_default/single.html
Normal file
29
layouts/_default/single.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user