Skip to content

Commit

Permalink
Merge pull request dim0627#10 from aspic/tags
Browse files Browse the repository at this point in the history
adds tag section
  • Loading branch information
dim0627 committed Aug 6, 2015
2 parents 82d2a8b + 369f707 commit 379b571
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions layouts/_default/terms.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ partial "default_head.html" . }}

<section id="main">
<div>
<h1 id="title">{{ .Title }}</h1>

<ul>
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms }}
<li><a href="{{ $data.Plural }}/{{ $key | urlize }}">{{ $key }}</a> {{ len $value }}</li>
{{ end }}
</ul>
</div>
</section>

{{ partial "default_foot.html" . }}
1 change: 1 addition & 0 deletions layouts/partials/default_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="{{ .Site.BaseURL }}/post">All Posts</a></li>
<li><a href="{{ .Site.BaseURL }}/tags">Tags</a></li>
{{ range where .Site.Pages "Type" "page" }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
Expand Down

0 comments on commit 379b571

Please sign in to comment.