mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-02 12:13:05 +00:00
attachments: work for Hugo < 0.112 #546
This commit is contained in:
parent
152745ee50
commit
119ff2e41c
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $fileDir = printf "%s/" (path.Clean (strings.TrimPrefix "/" $fileDir)) }}
|
{{- $fileDir = printf "%s/" (path.Clean (strings.TrimPrefix "/" $fileDir)) }}
|
||||||
{{- $fileLink := $fileDir }}
|
{{- $fileLink := $fileDir }}
|
||||||
{{- $fileLink = replace $fileLink "/content/" "" }}
|
{{- $fileLink = strings.TrimPrefix "content/" $fileLink }}
|
||||||
{{- $filesName := printf "%s.files" .File.BaseFileName }}
|
{{- $filesName := printf "%s.files" .File.BaseFileName }}
|
||||||
{{- if and (eq .File.BaseFileName "index") (fileExists (printf "%sfiles" $fileDir)) }}
|
{{- if and (eq .File.BaseFileName "index") (fileExists (printf "%sfiles" $fileDir)) }}
|
||||||
{{- $c := "" }}{{/* backward compat to < 5.9.0 behavior */}}
|
{{- $c := "" }}{{/* backward compat to < 5.9.0 behavior */}}
|
||||||
|
|
Loading…
Reference in a new issue