Caching moved so that the i18n menu will work as expected. Refs #35

This commit is contained in:
echarp 2019-05-14 10:59:01 +02:00
parent 16f8d40c6c
commit 90f7017fe6
3 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@
{{ $featured_image := (trim $featured_image "/") | absURL }}
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
<div class="pb3-m pb6-l bg-black-60">
{{ partialCached "site-navigation.html" . }}
{{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns">
{{ if not .Params.omit_header_text }}
<h1 class="f2 f1-l fw2 white-90 mb0 lh-title">{{ .Title | default .Site.Title }}</h1>
@ -20,7 +20,7 @@
{{ else }}
<header>
<div class="{{ .Site.Params.background_color_class | default "bg-black" }}">
{{ partialCached "site-navigation.html" . }}
{{ partial "site-navigation.html" . }}
</div>
</header>
{{ end }}

View File

@ -4,7 +4,7 @@
{{ $featured_image := (trim $featured_image "/") | absURL }}
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
<div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }}">
{{ partialCached "site-navigation.html" .}}
{{ partial "site-navigation.html" .}}
<div class="tc-l pv4 pv6-l ph3 ph4-ns">
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
{{ .Title | default .Site.Title }}
@ -20,7 +20,7 @@
{{ else }}
<header>
<div class="pb3-m pb6-l {{ .Site.Params.background_color_class | default "bg-black" }}">
{{ partialCached "site-navigation.html" . }}
{{ partial "site-navigation.html" . }}
<div class="tc-l pv3 ph3 ph4-ns">
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
{{ .Title | default .Site.Title }}

View File

@ -16,7 +16,7 @@
{{ end }}
</ul>
{{ end }}
{{ partial "social-follow.html" . }}
{{ partialCached "social-follow.html" . }}
</div>
</div>
</nav>