mirror of
https://github.com/writefreely/writefreely
synced 2024-12-15 10:42:28 +00:00
25a68d0c0e
This adds a "Reader" section of the site for admins who want to enable it for their instance. That means visitors can go to /read and see who has publicly shared their writing. They can also follow all public posts via RSS by going to /read/feed/. Writers on an instance with this `local_timeline` setting enabled can publish to the timeline by going into their blog settings and choosing the "Public" visibility setting. The `local_timeline` feature is disabled by default, as is the Public setting on writer blogs. Enabling it adds a "Reader" navigation item and enables the reader endpoints. This feature will also consume more memory, as public posts are cached in memory for 10 minutes. These changes include code ported over from Read.Write.as, and thus include some experimental features like filtering public posts by tags and authors. These features aren't well-tested or complete. Closes T554
36 lines
987 B
Cheetah
36 lines
987 B
Cheetah
{{define "footer"}}
|
|
{{template "foot" .}}
|
|
{{template "body-end" .}}
|
|
{{end}}
|
|
{{define "foot"}}
|
|
</div>
|
|
<footer>
|
|
<hr />
|
|
<nav>
|
|
<a class="home" href="/">{{.SiteName}}</a>
|
|
<a href="/about">about</a>
|
|
{{if and (not .SingleUser) .LocalTimeline}}<a href="/read">reader</a>{{end}}
|
|
<a href="https://writefreely.org/guide" target="guide">writer's guide</a>
|
|
<a href="/privacy">privacy</a>
|
|
<a href="https://writefreely.org">writefreely {{.Version}}</a>
|
|
</nav>
|
|
</footer>
|
|
|
|
<script type="text/javascript">
|
|
try { // Google Fonts
|
|
WebFontConfig = {
|
|
custom: { families: [ 'Lora:400,700:latin' ], urls: [ '/css/fonts.css' ] }
|
|
};
|
|
(function() {
|
|
var wf = document.createElement('script');
|
|
wf.src = '/js/webfont.js';
|
|
wf.type = 'text/javascript';
|
|
wf.async = 'true';
|
|
var s = document.getElementsByTagName('script')[0];
|
|
s.parentNode.insertBefore(wf, s);
|
|
})();
|
|
} catch (e) { /* ¯\_(ツ)_/¯ */ }
|
|
</script>
|
|
{{end}}
|
|
{{define "body-end"}}</body>
|
|
</html>{{end}}
|