gophertype/pvt-www/_builtin/blog/index.gohtml
Noah 211b7d8318 Multitag frontend update, bug fixes
* 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.
2020-02-26 12:51:51 -08:00

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 }}