From 175482653c94ec89b7c9f37a9b148c8fd774a058 Mon Sep 17 00:00:00 2001
From: echarp <manu@echarp.org>
Date: Thu, 21 Mar 2019 23:13:18 +0000
Subject: [PATCH] Optimisation "partialCached" (#165)

---
 layouts/partials/site-header.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html
index 10a682f..5be0c19 100755
--- a/layouts/partials/site-header.html
+++ b/layouts/partials/site-header.html
@@ -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" }}">
-      {{ partial "site-navigation.html" .}}
+      {{ partialCached "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" }}">
-      {{ partial "site-navigation.html" . }}
+      {{ partialCached "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 }}

--
Gitblit v1.10.0