Skip to content

Commit

Permalink
Add category support (closes #13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelo Stavrow committed Sep 14, 2018
1 parent 8641507 commit a9cb556
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
<article class="h-entry">
<header>
<h1 class="post-title p-name">{{ .Title }}</h1>
<!-- Don't show a timestamp on menu-type pages -->
{{ if not .Params.Menu }}
<p class="post-date">Posted on
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
{{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
</time> by <a href="{{ .Site.BaseURL }}" class="p-author h-card" rel="author">{{ .Site.Params.AuthorName }}</a>
</time> {{ if .Params.Author }} by <a href="{{ .Site.BaseURL }}" class="p-author h-card" rel="author">{{ . }}</a>{{ end }}
</p>
{{ if .Params.categories }}
<p class="post-tag">Category:
{{ range .Params.categories }}
<a href="{{ $baseurl }}/categories/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a>
{{ end }}
</p>
<hr class="post-underline">
{{ end }}
</header>
<section class="content e-content">
Expand Down

0 comments on commit a9cb556

Please sign in to comment.