Commit 4eb215e5 authored by Kaushal Modi's avatar Kaushal Modi

Include categories and tags list in the h-entry div

parent d3124692
{{ define "main" }}
<!-- http://microformats.org/wiki/h-entry -->
<div class="post h-entry">
<h1 class="post-title p-name">{{ .Title }}</h1>
<div class="h-entry">
<div class="post">
<h1 class="post-title p-name">{{ .Title }}</h1>
{{ partial "date-maybe.html" . }}
{{ partial "date-maybe.html" . }}
{{ if not .Params.notoc }}
{{ with .TableOfContents }}
<div class="toc">
{{ . }}
<a href="#top" class="back-to-top">Back to top</a>
</div>
{{ if not .Params.notoc }}
{{ with .TableOfContents }}
<div class="toc">
{{ . }}
<a href="#top" class="back-to-top">Back to top</a>
</div>
{{ end }}
{{ partial "toc_on_side.html" . }}
{{ end }}
{{ partial "toc_on_side.html" . }}
{{ end }}
<div class="content">
{{ with .Description }}
<div class="description p-summary">
{{ . | markdownify }}
</div>
{{ end }}
<div class="content">
{{ with .Description }}
<div class="description p-summary">
{{ . | markdownify }}
</div>
{{ end }}
{{ partial "series.html" . }}
{{ partial "series.html" . }}
{{ partial "author.html" . }}
{{ partial "author.html" . }}
<div class="e-content">
{{ partial "headline-hash.html" .Content }}
</div>
<div class="e-content">
{{ partial "headline-hash.html" .Content }}
</div>
<!-- Print versions at the end of the post, if specified. -->
{{ with .Params.versions }}
{{ $.Scratch.Set "__versions_len" (len .) }}
{{ $.Scratch.Set "__versions_cnt" 0 }}
<hr />
<small>
{{ printf "<span style=\"font-variant: small-caps;\">Versions used</span>:" | safeHTML }}
{{ range $k, $v := . }}
{{ printf "<code>%s</code> %s" $k $v | safeHTML }}
{{ $.Scratch.Add "__versions_cnt" 1 }}
{{ cond (eq ($.Scratch.Get "__versions_cnt") ($.Scratch.Get "__versions_len")) "" ", " }}
{{ end }}
</small>
{{ end }}
<!-- Print versions at the end of the post, if specified. -->
{{ with .Params.versions }}
{{ $.Scratch.Set "__versions_len" (len .) }}
{{ $.Scratch.Set "__versions_cnt" 0 }}
<hr />
<small>
{{ printf "<span style=\"font-variant: small-caps;\">Versions used</span>:" | safeHTML }}
{{ range $k, $v := . }}
{{ printf "<code>%s</code> %s" $k $v | safeHTML }}
{{ $.Scratch.Add "__versions_cnt" 1 }}
{{ cond (eq ($.Scratch.Get "__versions_cnt") ($.Scratch.Get "__versions_len")) "" ", " }}
{{ end }}
</small>
{{ end }}
</div>
</div>
</div>
<div class="post-catlist right">
{{ partial "post_categories.html" . }}
{{ partial "post_tags.html" . }}
<div class="post-catlist right">
{{ partial "post_categories.html" . }}
{{ partial "post_tags.html" . }}
</div>
</div>
{{ end }}
{{ define "after_main" }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment