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
pull/157/head
Matt Baer 5 years ago
parent 40ffb3a5f9
commit c7a90d2ace
  1. 2
      templates/user/collections.tmpl

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

Loading…
Cancel
Save