Fix blog post links when chorus enabled

This ensures the "new post" link under each blog on the user Blogs page
goes to /new instead of /.

Ref T681
This commit is contained in:
Matt Baer 2019-09-10 22:07:14 +02:00
parent 40ffb3a5f9
commit c7a90d2ace

View file

@ -13,7 +13,7 @@
<a class="title" href="/{{.Alias}}/">{{if .Title}}{{.Title}}{{else}}{{.Alias}}{{end}}</a>
</h3>
<h4>
<a class="action new-post" href="/#{{.Alias}}">new post</a>
<a class="action new-post" href="{{if $.Chorus}}/new{{else}}/{{end}}#{{.Alias}}">new post</a>
<a class="action" href="/me/c/{{.Alias}}">customize</a>
<a class="action" href="/me/c/{{.Alias}}/stats">stats</a>
</h4>