Welcome to mirror list, hosted at ThFree Co, Russian Federation.

home-poetry.html « page « partials « layouts - github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e71681a33badd31ca8b954c33c1368ddb5c34b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{- $Deliver := . -}}
<main class="home">
    <div class="poetry">
        {{ range .Site.Params.homePoetry }}
            {{- $raw := . -}}
            {{- partial "components/markdownify.html" (dict "Deliver" $Deliver "raw" $raw) -}}
            {{- $Content := $Deliver.Scratch.Get "Content" -}}
            <p>{{ $Content | safeHTML }}</p>
        {{ end }}
    </div>
    <div class="links">
        {{ range .Site.Menus.home }}
            {{- $linkType := (string .Pre) -}}
            {{- $iconName := (string .Post) -}}
            {{- $icon := (index $.Site.Data.SVG $iconName) -}}
            <a href="{{ .URL }}" class="links-item"{{ if eq $linkType "external" }} target="_blank" rel="noopener"{{ end }}>{{ replace $icon "icon" (printf `icon %s` .Identifier) | safeHTML }}{{ .Name }}</a>
        {{ end }}
    </div>
</main>