Optimisation "partialCached" (#165)
* Create fr.toml French translation * Social link to "mastodon" added * Some statics partials are cached, to optimise rendering
This commit is contained in:
parent
8b348e6aad
commit
175482653c
|
@ -27,7 +27,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ block "favicon" . }}
|
{{ block "favicon" . }}
|
||||||
{{ partial "site-favicon.html" . }}
|
{{ partialCached "site-favicon.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .RSSLink }}
|
{{ if .RSSLink }}
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
<main class="pb7" role="main">
|
<main class="pb7" role="main">
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
</main>
|
</main>
|
||||||
{{ block "footer" . }}{{ partial "site-footer.html" . }}{{ end }}
|
{{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
|
||||||
{{ block "scripts" . }}{{ partial "site-scripts.html" . }}{{ end }}
|
{{ block "scripts" . }}{{ partialCached "site-scripts.html" . }}{{ end }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{{ $featured_image := (trim $featured_image "/") | absURL }}
|
{{ $featured_image := (trim $featured_image "/") | absURL }}
|
||||||
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
|
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
|
||||||
<div class="pb3-m pb6-l bg-black-60">
|
<div class="pb3-m pb6-l bg-black-60">
|
||||||
{{ partial "site-navigation.html" . }}
|
{{ partialCached "site-navigation.html" . }}
|
||||||
<div class="tc-l pv6 ph3 ph4-ns">
|
<div class="tc-l pv6 ph3 ph4-ns">
|
||||||
{{ if not .Params.omit_header_text }}
|
{{ if not .Params.omit_header_text }}
|
||||||
<h1 class="f2 f1-l fw2 white-90 mb0 lh-title">{{ .Title | default .Site.Title }}</h1>
|
<h1 class="f2 f1-l fw2 white-90 mb0 lh-title">{{ .Title | default .Site.Title }}</h1>
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<header>
|
<header>
|
||||||
<div class="{{ .Site.Params.background_color_class | default "bg-black" }}">
|
<div class="{{ .Site.Params.background_color_class | default "bg-black" }}">
|
||||||
{{ partial "site-navigation.html" . }}
|
{{ partialCached "site-navigation.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{{ $featured_image := (trim $featured_image "/") | absURL }}
|
{{ $featured_image := (trim $featured_image "/") | absURL }}
|
||||||
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
|
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
|
||||||
<div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }}">
|
<div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }}">
|
||||||
{{ partial "site-navigation.html" .}}
|
{{ partialCached "site-navigation.html" .}}
|
||||||
<div class="tc-l pv4 pv6-l ph3 ph4-ns">
|
<div class="tc-l pv4 pv6-l ph3 ph4-ns">
|
||||||
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
|
<h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
|
||||||
{{ .Title | default .Site.Title }}
|
{{ .Title | default .Site.Title }}
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<header>
|
<header>
|
||||||
<div class="pb3-m pb6-l {{ .Site.Params.background_color_class | default "bg-black" }}">
|
<div class="pb3-m pb6-l {{ .Site.Params.background_color_class | default "bg-black" }}">
|
||||||
{{ partial "site-navigation.html" . }}
|
{{ partialCached "site-navigation.html" . }}
|
||||||
<div class="tc-l pv3 ph3 ph4-ns">
|
<div class="tc-l pv3 ph3 ph4-ns">
|
||||||
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
|
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
|
||||||
{{ .Title | default .Site.Title }}
|
{{ .Title | default .Site.Title }}
|
||||||
|
|
Loading…
Reference in a new issue