Skip to content

Commit

Permalink
Swap out calls to template in layouts for partial
Browse files Browse the repository at this point in the history
This seems to get everything working with the current version of hugo.
  • Loading branch information
byAtlas committed Sep 14, 2014
1 parent 8a4c58b commit bef7665
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions layouts/fixed/single.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{ template "chrome/default_head.html" . }}
{{ partial "default_head.html" . }}

<div class="page">
<h1 class="page-title">{{ .Title }}</h1>
{{ .Content }}
</div>

{{ template "chrome/default_foot.html" . }}
{{ partial "default_foot.html" . }}
4 changes: 2 additions & 2 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ template "chrome/default_head.html" . }}
{{ partial "default_head.html" . }}

{{ $pagination := 5 }}

Expand Down Expand Up @@ -32,4 +32,4 @@ <h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ end }}
</div>

{{ template "chrome/default_foot.html" . }}
{{ partial "default_foot.html" . }}
4 changes: 2 additions & 2 deletions layouts/indexes/post.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ template "chrome/default_head.html" . }}
{{ partial "default_head.html" . }}

<div class="post">
<h1 class="post-title">{{ .Title }}</h1>
Expand All @@ -9,4 +9,4 @@ <h1 class="post-title">{{ .Title }}</h1>
</ul>
</div>

{{ template "chrome/default_foot.html" . }}
{{ partial "default_foot.html" . }}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">

{{ template "chrome/head.html" . }}
{{ partial "head.html" . }}

<body>

{{ template "chrome/sidebar.html" . }}
{{ partial "sidebar.html" . }}

<!-- Wrap is the content to shift when toggling the sidebar. We wrap the
content to avoid any CSS collisions with our real content. -->
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions layouts/post/single.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{ template "chrome/default_head.html" . }}
{{ partial "default_head.html" . }}

<div class="post">
<h1 class="post-title">{{ .Title }}</h1>
<span class="post-date">{{ .Date.Format .Site.Params.DateForm }}</span>
{{ .Content }}
</div>

{{ template "chrome/default_foot.html" . }}
{{ partial "default_foot.html" . }}

0 comments on commit bef7665

Please sign in to comment.