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:
Anthony Fok 2014-09-03 18:47:06 -06:00 committed by spf13
parent 9bd0f367e2
commit e1a4df05e8
3 changed files with 6 additions and 6 deletions

View File

@ -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">

View File

@ -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">

View File

@ -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">