Extra footer text block test.
This commit is contained in:
parent
94f63c2045
commit
63975c2019
|
@ -304,6 +304,8 @@ func main() {
|
||||||
"path to directory containing .md files to render as custom pages")
|
"path to directory containing .md files to render as custom pages")
|
||||||
flag.Uint64Var(&Config.cleanupEveryMinutes, "cleanup-every-minutes", 0,
|
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)")
|
"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()
|
iniflags.Parse()
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,7 @@ func renderTemplate(tpl *pongo2.Template, context pongo2.Context, r *http.Reques
|
||||||
context["sitepath"] = Config.sitePath
|
context["sitepath"] = Config.sitePath
|
||||||
context["selifpath"] = Config.selifPath
|
context["selifpath"] = Config.selifPath
|
||||||
context["custom_pages_names"] = customPagesNames
|
context["custom_pages_names"] = customPagesNames
|
||||||
|
context["extra_footer_text"] = Config.extraFooterText
|
||||||
|
|
||||||
var a string
|
var a string
|
||||||
if Config.authFile == "" {
|
if Config.authFile == "" {
|
||||||
|
|
|
@ -29,7 +29,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
<div id="footer">
|
||||||
|
<p>{{ extra_footer_text }}</p>
|
||||||
|
<div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<a href="https://github.com/andreimarcu/linx-server">linx-server</a>
|
<a href="https://github.com/andreimarcu/linx-server">linx-server</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue