Commit 42a71e3b authored by kaiyou's avatar kaiyou

Add the ability to insert footer content

parent cab7a760
Pipeline #168 passed with stage
in 1 minute and 19 seconds
......@@ -7,8 +7,9 @@ app.debug = "FLASK_DEBUG" in os.environ
app.config.update(
SITE_NAME=os.environ.get("SITE_NAME", "TedImg"),
SOURCE_URL="https://git.tedomum.net/kaiyou/tedimg",
HELP_URL="https://git.tedomum.net/kaiyou/tedimg",
SOURCE_URL="https://forge.tedomum.net/tedomum/tedimg",
HELP_URL="https://forge.tedomum.net/tedomum/tedimg",
FOOTER_CONTENT="",
FULL_STORAGE=os.environ.get("FULL_STORAGE", "/data"),
THUMB_STORAGE=os.environ.get("THUMB_STORAGE", "/data/thumb"),
FULL_WEB=os.environ.get("FULL_WEB", "data"),
......
......@@ -19,7 +19,8 @@
<footer class="page-footer blue">
<div class="footer-copyright">
<div class="container">
<span class="right"><i class="material-icons tiny">call_split</i> on <a class="white-text" href="https://github.com/kaiyou/tedimg">Github</a>.</a>
<span>{{ config["FOOTER_CONTENT"] }}</span>
<span class="right"><i class="material-icons tiny">call_split</i> <a class="white-text" href="{{ config["SOURCE_URL"] }}">the code</a>.</a>
</div>
</div>
</footer>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment