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

list-keywords.html « utils « partials « layouts - github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bf2bc6ca0b0db9dd337dc751c02e21775d6778a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{/*
    Parameters:
    - type: "tags" or "categories"
    - context: (.)
    - scratch: (Scratch)
    - removeDuplicates: BOOL
*/}}

{{ .scratch.Delete .type }}
{{ partial "utils/get-keywords.html" (dict "type" .type "context" .context "scratch" .scratch "removeDuplicates" .removeDuplicates) }}
{{ range (.scratch.Get .type) }}
    {{/* HACK: (replace . "#" "%23/") is a special case for "#" character */}}
    <a href="{{ (print "/" $.type "/") | relLangURL }}{{ replace . "#" "%23/" | urlize }}" title="{{ . }}">
        {{ . }}
    </a>
{{ end }}
{{ .scratch.Delete .type }}