1
Fork 0

Simplify tag display, and show on list page

This commit is contained in:
Jake Howard 2017-12-22 17:16:20 +00:00
parent b71a30df06
commit 24ce8b936d
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 12 additions and 12 deletions

View file

@ -0,0 +1,9 @@
{{ if .Params.date }}
<span class="pr-1" title='{{ .Date.Format "January 2 2006" }}'>{{ .Date.Format "2006-01-02" }}</span>
{{ end }}
{{ if .Params.tags }}
{{ range $i, $e := .Params.tags }}
<a href="/tags/{{ urlize . }}" class="mr-1">#{{ . }}</a>
{{ end }}
{{ end }}

View file

@ -3,17 +3,7 @@
{{ end }} {{ end }}
<h1 class="display-5">{{ .Title }}</h1> <h1 class="display-5">{{ .Title }}</h1>
<h5 class="my-3">{{ partial "subtitle.html" . }}</h5> <h5 class="my-3">{{ partial "subtitle.html" . }}</h5>
<p> <p>{{ partial "content-details.html" . }}</p>
{{ if .Params.date }}
<span class="pr-4" title='{{ .Date.Format "January 2 2006" }}'>{{ .Date.Format "2006-01-02" }}</span>
{{ end }}
{{ range .Params.tags }}
<a href="/tags/{{ urlize . }}" class="badge badge-dark tag mr-2">
<i class="fa fa-tag"></i> {{ . }}
</a>
{{ end }}
</p>
<hr /> <hr />
<div class="content mt-3"> <div class="content mt-3">
{{ if .TableOfContents }} {{ if .TableOfContents }}

View file

@ -8,8 +8,9 @@
{{ end }} {{ end }}
<div class="media-body"> <div class="media-body">
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
<h5 class="mt-0">{{ .Title }}</h5> <h5 class="my-0">{{ .Title }}</h5>
</a> </a>
<small>{{ partial "content-details.html" . }}</small>
<p>{{ partial "summary.html" . }}</p> <p>{{ partial "summary.html" . }}</p>
</div> </div>
</div> </div>