mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +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,13 +34,11 @@ except the current one. */}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $current := "default" }}
|
{{- $current := "default" }}
|
||||||
{{/* If any alternate output formats part of the "concerned" ones have been found, we range on them. */}}
|
{{/* If any alternate output formats part of the "concerned" ones have been found, we range on them. */}}
|
||||||
{{- with $alt }}
|
{{- range $outputs }}
|
||||||
{{- range $outputs }}
|
|
||||||
{{/* If the output format is not listed as an "alternate", it means it is the current one. */}}
|
{{/* If the output format is not listed as an "alternate", it means it is the current one. */}}
|
||||||
{{- if not (in $alt .) }}
|
{{- if not (in $alt .) }}
|
||||||
{{- $current = . }}
|
{{- $current = . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- return .OutputFormats.Get $current }}
|
{{- return .OutputFormats.Get $current }}
|
Loading…
Reference in a new issue