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

link.html « shortcodes « layouts - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cac09e93814a48e4b7fd5d625f287d9d7a362d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{- $destination := cond .IsNamedParams (.Get "href") (.Get 0) -}}
{{- with dict "Path" $destination "Resources" .Page.Resources | partial "function/resource.html" -}}
    {{- $destination = .RelPermalink -}}
{{- end -}}
{{- $options := dict "Destination" $destination -}}
{{- if .IsNamedParams -}}
    {{- $options = dict "Content" (.Get "content") | merge $options -}}
    {{- $options = dict "Title" (.Get "title") | merge $options -}}
    {{- $options = dict "Class" (.Get "class") | merge $options -}}
    {{- $options = dict "Rel" (.Get "rel") | merge $options -}}
{{- else -}}
    {{- $options = dict "Content" (.Get 1 | default (.Get 0)) | merge $options -}}
    {{- $options = dict "Title" (.Get 2) | merge $options -}}
{{- end -}}
{{- partial "plugin/link.html" $options -}}