Use `partial` call to include partial templates
Replace `template` call with the `partial` call (new in Hugo v0.12) for including partial templates
This commit is contained in:
parent
9bd0f367e2
commit
e1a4df05e8
|
@ -1,7 +1,7 @@
|
|||
{{ template "theme/partials/head.html" . }}
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
|
||||
{{ template "theme/partials/sidebar.html" . }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
|
||||
<div class="content container">
|
||||
<ul class="posts">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ template "theme/partials/head.html" . }}
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
|
||||
{{ template "theme/partials/sidebar.html" . }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
|
||||
<div class="content container">
|
||||
<div class="post">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ template "theme/partials/head.html" . }}
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
|
||||
{{ template "theme/partials/sidebar.html" . }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
|
||||
<div class="content container">
|
||||
<div class="posts">
|
||||
|
|
Loading…
Reference in New Issue