Commit fab5820c authored by wbar's avatar wbar
Browse files

layout : header and footer are now partialCached to improve perfs

parent 722ed9b6
{{ partial "header.html" . }}
{{ partialCached "header.html" . }}
<h1>Liste des articles > {{ .Title }}</h1>
{{ range (.Paginator .Site.Params.pagination_articles).Pages }}
......@@ -21,4 +21,4 @@
{{ partial "pagination.html" . }}
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . }}
{{ partial "header.html" . }}
{{ partialCached "header.html" . }}
<article>
<header>
......@@ -17,4 +17,4 @@
</article>
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . }}
{{ partial "header.html" . }}
{{ partialCached "header.html" . }}
<article>
<header>
......@@ -20,4 +20,4 @@
-->
</article>
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . }}
{{ partial "header.html" . }}
{{ partialCached "header.html" . }}
<h1>Liste des articles</h1>
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.section_on_frontpage ) .Site.Params.pagination_articles }}
......@@ -21,4 +21,4 @@
{{ partial "pagination.html" . }}
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . }}
{{ partial "header.html" . }}
{{ partialCached "header.html" . }}
<article>
<header>
<h1><a href="{{ .RelPermalink }}">{{ .Title }}</a><h1>
......@@ -11,4 +11,4 @@ footer éventuels d'une page seule
-->
</article>
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . }}
{{ partial "header.html" . }}
{{ partialCached "header.html" . }}
<p>Oups ! on est pas sensé arriver là !</p>
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . }}
{{ partial "header.html" . }}
{{ partialCached "header.html" . }}
<article>
<header>
......@@ -14,4 +14,4 @@
</footer>
</article>
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment