mirror of https://github.com/writeas/writefreely
This makes it easier to navigate between different blog sections: Customize, Stats, View.pull/371/head
parent
dfa14c9c92
commit
0ed9c9c746
@ -0,0 +1,10 @@ |
||||
{{define "collection-nav"}} |
||||
<header class="admin"> |
||||
<nav class="pager"> |
||||
<a href="{{if .SingleUser}}/me/new{{else}}/#{{.Alias}}{{end}}" class="btn gentlecta">New Post</a> |
||||
<a href="/me/c/{{.Alias}}" {{if and (hasPrefix .Path "/me/c/") (hasSuffix .Path .Alias)}}class="selected"{{end}}>Customize</a> |
||||
<a href="/me/c/{{.Alias}}/stats" {{if hasSuffix .Path "/stats"}}class="selected"{{end}}>Stats</a> |
||||
<a href="{{if .SingleUser}}/{{else}}/{{.Alias}}/{{end}}">View Blog →</a> |
||||
</nav> |
||||
</header> |
||||
{{end}} |
Loading…
Reference in new issue