Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant post template and move it to single.html
- Loading branch information
Showing
2 changed files
with
27 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{ partial "header.html" . }} | ||
|
||
<div id="main"> | ||
<div id="content"> | ||
<div> | ||
<article class="hentry" role="article"> | ||
|
||
{{ .Scratch.Set "isHome" false }} | ||
{{ partial "post_header.html" . }} | ||
|
||
<div class="entry-content"> | ||
<!-- insert table of contents if it is set either in the config file or in the frontmatter - frontmatter has priority --> | ||
{{ $.Scratch.Set "pagetoc" .TableOfContents }} | ||
<!-- the isset here is working properly becasue everything is lower case --> | ||
{{ if or (and (isset .Params "toc") (eq .Params.toc true)) (and (not (isset .Params "toc")) (eq .Site.Params.tableOfContents true)) }} | ||
{{ $.Scratch.Get "pagetoc" }} | ||
{{ end }} | ||
{{ .Content }} | ||
</div> | ||
{{ partial "post_footer.html" . }} | ||
</article> | ||
</div> | ||
{{ partial "sidebar.html" . }} | ||
</div> | ||
</div> | ||
|
||
{{ partial "footer.html" . }} |
This file was deleted.
Oops, something went wrong.