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 21
21
{{- end }}
22
22
{{- $sort := .sort | default "asc" }}
23
23
{{- $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 }}
27
30
{{- $urlPrefix := strings.TrimRight "/" $context.Page.RelPermalink }}
28
31
{{- with $context }}
29
32
< 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