Simplify tag display, and show on list page
This commit is contained in:
parent
b71a30df06
commit
24ce8b936d
3 changed files with 12 additions and 12 deletions
9
layouts/partials/content-details.html
Normal file
9
layouts/partials/content-details.html
Normal 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 }}
|
|
@ -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 }}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue