mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
layouts: fix refactoring error using get on Param.
This commit is contained in:
@@ -10,18 +10,18 @@
|
||||
|
||||
<!-- CSS -->
|
||||
|
||||
{{ if .Site.Param "HighlightJS" }}
|
||||
{{ if (.Site.Param "HighlightJS") }}
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css">
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ if eq true .Site.Param "CacheBuster" }}
|
||||
{{ if eq true (.Site.Param "CacheBuster") }}
|
||||
|
||||
<link rel="stylesheet" href="/css/reset.css">
|
||||
<link rel="stylesheet" href="/css/pygments.css">
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
|
||||
{{range .Site.Param "ExtraCssFiles"}}
|
||||
{{range (.Site.Param "ExtraCssFiles")}}
|
||||
<link rel="stylesheet" href="{{.}}">
|
||||
{{end}}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<link rel="stylesheet" href="/css/pygments.css?{{ .Now.Unix }}">
|
||||
<link rel="stylesheet" href="/css/main.css?{{ .Now.Unix }}">
|
||||
|
||||
{{range .Site.Param "ExtraCssFiles"}}
|
||||
{{range (.Site.Param "ExtraCssFiles")}}
|
||||
<link rel="stylesheet" href="{{.}}?{{ .Now.Unix }}">
|
||||
{{end}}
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
<!-- Icon -->
|
||||
<link rel="shortcut icon"
|
||||
{{ if .Site.Param "FaviconFile" }}
|
||||
{{ if (.Site.Param "FaviconFile") }}
|
||||
href="/{{ .Site.Param "FaviconFile" }}"
|
||||
{{ else }}
|
||||
href="/img/favicon.ico"
|
||||
|
Reference in New Issue
Block a user