mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: build breaks sites without "output" section in config #396
This commit is contained in:
parent
a5be88220b
commit
10d8d2ed95
1 changed files with 4 additions and 6 deletions
|
@ -34,12 +34,10 @@ except the current one. */}}
|
|||
{{- end }}
|
||||
{{- $current := "default" }}
|
||||
{{/* If any alternate output formats part of the "concerned" ones have been found, we range on them. */}}
|
||||
{{- with $alt }}
|
||||
{{- range $outputs }}
|
||||
{{/* If the output format is not listed as an "alternate", it means it is the current one. */}}
|
||||
{{- if not (in $alt .) }}
|
||||
{{- $current = . }}
|
||||
{{- end }}
|
||||
{{- range $outputs }}
|
||||
{{/* If the output format is not listed as an "alternate", it means it is the current one. */}}
|
||||
{{- if not (in $alt .) }}
|
||||
{{- $current = . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue