Corrige les partiels du thème 42
This commit is contained in:
10
layouts/partials/header-brand.html
Normal file
10
layouts/partials/header-brand.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{- $site := . -}}
|
||||
{{- if not $site.Title -}}
|
||||
{{- $site = .Site -}}
|
||||
{{- end -}}
|
||||
<section>
|
||||
{{- partialCached "site-title.html" (dict
|
||||
"Params" $site.Params
|
||||
"Site" $site
|
||||
) $site.Title ($site.Params.logo | default "logo-large.png") -}}
|
||||
</section>
|
||||
@@ -17,6 +17,7 @@
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- $img = $page.Resources.Get $coverResourcePath -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- $image = .Page.Resources.Get $imgPath -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user