Merge commit 'bfb1829a86a2bc1b595dad52a9d6dcfe80dd0679' as 'themes/codex'
This commit is contained in:
26
themes/codex/layouts/taxonomy/tag.html
Normal file
26
themes/codex/layouts/taxonomy/tag.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{{ define "styles" }}
|
||||
{{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/tags.scss" "dest" "css/tags.css") }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }}
|
||||
|
||||
<div class="post-list__container">
|
||||
<div class="tag__header">
|
||||
<a href="/blog">All posts</a><span class="separator">/</span>
|
||||
<h1 class="tag__term">{{ .Title }}</h1>
|
||||
</div>
|
||||
<ul class="post-list">
|
||||
{{ range .Data.Pages }}
|
||||
<li class="post">
|
||||
<div class="post__header">
|
||||
<time class="post__date" datetime="{{ .Date }}">{{ .Date.Format $dateFormat }}</time>
|
||||
<h2 class="post__title">
|
||||
<a href="{{.RelPermalink}}">{{ .Title }}</a>
|
||||
</h2>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user