Hide footer links to About and Privacy pages when single-user

Previously, these links showed up on user backend pages on a single-user
instance, despite them not working / only being applicable on multi-user
instances.
pull/145/head
Matt Baer 5 years ago
parent bd4bb52b9c
commit 3129b837f1
  1. 4
      templates/user/include/footer.tmpl

@ -8,10 +8,10 @@
<hr /> <hr />
<nav> <nav>
<a class="home" href="/">{{.SiteName}}</a> <a class="home" href="/">{{.SiteName}}</a>
<a href="/about">about</a> {{if not .SingleUser}}<a href="/about">about</a>{{end}}
{{if and (not .SingleUser) .LocalTimeline}}<a href="/read">reader</a>{{end}} {{if and (not .SingleUser) .LocalTimeline}}<a href="/read">reader</a>{{end}}
<a href="https://writefreely.org/guide/{{.OfficialVersion}}" target="guide">writer's guide</a> <a href="https://writefreely.org/guide/{{.OfficialVersion}}" target="guide">writer's guide</a>
<a href="/privacy">privacy</a> {{if not .SingleUser}}<a href="/privacy">privacy</a>{{end}}
<a href="https://writefreely.org">writefreely {{.Version}}</a> <a href="https://writefreely.org">writefreely {{.Version}}</a>
</nav> </nav>
</footer> </footer>

Loading…
Cancel
Save