forked from tummychow/lanyon-hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap out calls to template in layouts for partial
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
Showing
8 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
layouts/chrome/default_head.html → layouts/partials/default_head.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" . }} |