Commit 58f7a0da authored by Kaushal Modi's avatar Kaushal Modi

Insert content from taxonomy _index pages if present

parent c2c1a468
......@@ -3,6 +3,11 @@
<!-- http://microformats.org/wiki/h-feed -->
<section class="h-feed">
<header>
{{ if .Params.draft }}
<div class="draft right">Draft</div>
<div class="clear-float"></div>
{{ end }}
{{ partialCached "all-terms.html" . }}
<!-- To complete the h-feed meta-data -->
......@@ -17,8 +22,29 @@
{{ $phrase := (index .Site.Data.taxonomy.phrases .Data.Plural) | replaceRE "%T" (printf "‘%s’" $term) | replaceRE "%N" (printf "‘%s’" .Name) }}
{{ $term_count := (len .Pages) }}
<h1 class="p-name">{{ printf "Posts %s (%d)" $phrase $term_count }}</h1>
<div class="center">{{ partial "taxo-buttons.html" . }}</div>
</header>
{{ $has_some_content := (not (eq "" (.Content | replaceRE "[[:^alpha:]]" ""))) }}
{{ if $has_some_content }}
<article class="post h-entry {{ .Section }}">
<hr />
<div class="content">
{{ with .Description }}
<div class="description p-summary">
{{ . | markdownify }}
</div>
{{ end }}
<div class="e-content">
{{ partial "headline-hash.html" .Content }}
</div>
</div>
<hr />
</article>
{{ end }}
{{ range .Pages }}
<!-- If the current page's $term is "foo", it replaces «li class="__foo__"»
with «li class="active"».
......
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