mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 03:03:09 +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 }}
|
||||
{{- $fileDir = printf "%s/" (path.Clean (strings.TrimPrefix "/" $fileDir)) }}
|
||||
{{- $fileLink := $fileDir }}
|
||||
{{- $fileLink = replace $fileLink "/content/" "" }}
|
||||
{{- $fileLink = strings.TrimPrefix "content/" $fileLink }}
|
||||
{{- $filesName := printf "%s.files" .File.BaseFileName }}
|
||||
{{- if and (eq .File.BaseFileName "index") (fileExists (printf "%sfiles" $fileDir)) }}
|
||||
{{- $c := "" }}{{/* backward compat to < 5.9.0 behavior */}}
|
||||
|
|
Loading…
Reference in a new issue