* Checking the box to reset a post's UpdatedAt to CreatedAt now actually does so (removes the "updated at" label from front-end) * Tagged Posts index now has better header formatting when multi-tags are in use. * No longer "Tagged as: hello,world,-mars" * Now is titled "Tagged Posts" and includes the lists of Tags and Not formatted nicely with clickable links. * Fixes the "Read more..." link always appearing in HTML-type blog posts even when they didn't use the `<snip>` tag.
33 lines
731 B
Plaintext
33 lines
731 B
Plaintext
{{ define "title" }}{{ or .V.title "Blog" }}{{ end }}
|
|
{{ define "content" }}
|
|
|
|
<h1>{{ or .V.title "Blog" }}</h1>
|
|
|
|
{{ if .V.Multitag.Is }}
|
|
<div class="alert alert-secondary">
|
|
<small><em>
|
|
{{ if .V.Multitag.Include }}
|
|
<span class="mr-2">
|
|
<strong>Tags:</strong>
|
|
{{ range $tag := .V.Multitag.Include }}
|
|
<a href="/tagged/{{ $tag }}" class="ml-2">#{{ $tag }}</a>
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
|
|
{{ if .V.Multitag.Exclude }}
|
|
<span class="mr-2">
|
|
<strong>Not:</strong>
|
|
{{ range $tag := .V.Multitag.Exclude }}
|
|
<a href="/tagged/{{ $tag }}" class="ml-2">#{{ $tag }}</a>
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
</em></small>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ BlogIndex .Request .V.tag .V.privacy }}
|
|
|
|
{{ end }}
|