mirror of
https://github.com/writefreely/writefreely
synced 2024-12-15 02:32:35 +00:00
73ec3e3016
This adds a new `wf_modesty` config option that removes the copious mentions of WriteFreely in places like the About page and site footers. WriteFreely remains boastful and bumptious by default; but enabling the modesty option will tone it down and likely lead to less confusion among average users. Ref T676
40 lines
1.1 KiB
Cheetah
40 lines
1.1 KiB
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/{{.OfficialVersion}}" target="guide">writer's guide</a>
|
|
<a href="/privacy">privacy</a>
|
|
{{if .WFModesty}}
|
|
<p style="font-size: 0.9em">powered by <a href="https://writefreely.org">writefreely</a></p>
|
|
{{else}}
|
|
<a href="https://writefreely.org">writefreely {{.Version}}</a>
|
|
{{end}}
|
|
</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}}
|