Extra footer text block test.

This commit is contained in:
ZizzyDizzyMC 2021-02-09 20:00:20 -05:00
parent 94f63c2045
commit 63975c2019
3 changed files with 6 additions and 1 deletions

View File

@ -304,6 +304,8 @@ func main() {
"path to directory containing .md files to render as custom pages")
flag.Uint64Var(&Config.cleanupEveryMinutes, "cleanup-every-minutes", 0,
"How often to clean up expired files in minutes (default is 0, which means files will be cleaned up as they are accessed)")
flag.StringVar(&Config.extraFooterText, "extrafootertext", "",
"Extra text above the footer for notices.")
iniflags.Parse()

View File

@ -87,6 +87,7 @@ func renderTemplate(tpl *pongo2.Template, context pongo2.Context, r *http.Reques
context["sitepath"] = Config.sitePath
context["selifpath"] = Config.selifPath
context["custom_pages_names"] = customPagesNames
context["extra_footer_text"] = Config.extraFooterText
var a string
if Config.authFile == "" {

View File

@ -29,7 +29,9 @@
</div>
{% block content %}{% endblock %}
<div id="footer">
<p>{{ extra_footer_text }}</p>
<div>
<div id="footer">
<a href="https://github.com/andreimarcu/linx-server">linx-server</a>
</div>