Skip to content

Commit

Permalink
Remove redundant post template and move it to single.html
Browse files Browse the repository at this point in the history
  • Loading branch information
parsiya committed Apr 22, 2018
1 parent 99e5d1f commit 7b2be41
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
27 changes: 27 additions & 0 deletions layouts/_default/single.html
@@ -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" . }}
27 changes: 0 additions & 27 deletions layouts/post/single.html

This file was deleted.

0 comments on commit 7b2be41

Please sign in to comment.