File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
layouts/partials/shortcodes Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2121{{- end }}
2222{{- $sort := .sort | default "asc" }}
2323{{- $pattern := .pattern | default "" }}
24- {{- $defaultLanguage := (index $context.Site.Home.AllTranslations 0).Lang }}
25- {{- $defaultLanguagePage := index (where $context.Page.AllTranslations "Language.Lang" $defaultLanguage) 0 }}
26- {{- $defaultUrlPrefix := strings.TrimRight "/" $defaultLanguagePage.RelPermalink }}
24+ {{- $defaultUrlPrefix := strings.TrimRight "/" $context.Page.RelPermalink }}
25+ {{- if .IsTranslated -}}
26+ {{- $defaultLanguage := (index $context.Site.Home.AllTranslations 0).Lang }}
27+ {{- $defaultLanguagePage := index (where $context.Page.AllTranslations "Language.Lang" $defaultLanguage) 0 }}
28+ {{- $defaultUrlPrefix = strings.TrimRight "/" $defaultLanguagePage.RelPermalink }}
29+ {{- end }}
2730{{- $urlPrefix := strings.TrimRight "/" $context.Page.RelPermalink }}
2831{{- with $context }}
2932< div class ="box attachments cstyle {{ $style }} "{{ if $color }} style ="--VARIABLE-BOX-color: {{ $color }}; "{{ end }} >
You can’t perform that action at this time.
0 commit comments