Skip to content

Commit

Permalink
Use partial call to include partial templates
Browse files Browse the repository at this point in the history
Replace `template` call with the `partial` call (new in Hugo v0.12)
for including partial templates
  • Loading branch information
anthonyfok authored and spf13 committed Sep 8, 2014
1 parent 9bd0f36 commit e1a4df0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -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">
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -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">
Expand Down
4 changes: 2 additions & 2 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -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">
Expand Down

0 comments on commit e1a4df0

Please sign in to comment.