customize social and donation links
This commit is contained in:
parent
fcaab383e0
commit
c040af6e6b
2 changed files with 13 additions and 6 deletions
|
@ -215,6 +215,8 @@ PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
|
|||
SITE_INFO = {
|
||||
"site_name": "NiceDB",
|
||||
"support_link": "https://github.com/doubaniux/boofilsic/issues",
|
||||
"social_link": "https://donotban.com/@testie",
|
||||
"donation_link": "https://patreon.com/tertius",
|
||||
"version_hash": None,
|
||||
"settings_module": os.getenv("DJANGO_SETTINGS_MODULE"),
|
||||
"sentry_dsn": None,
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
<footer class="footer">
|
||||
<div class="grid">
|
||||
<div class="footer__border">
|
||||
<a class="footer__link" target="_blank" href="https://donotban.com/@whitiewhite">原作者</a>
|
||||
<a class="footer__link" target="_blank" href="{{ support_link }}">报告错误</a>
|
||||
<a class="footer__link" target="_blank" href="https://github.com/neodb-social" id="githubLink">源代码</a>
|
||||
<a class="footer__link" target="_blank" href="https://patreon.com/tertius" id="sponsor">捐助上游项目</a>
|
||||
<a class="footer__link" target="_blank" href="/announcement/supported-sites/" id="supported-sites">支持的网站</a>
|
||||
<a class="footer__link" target="_blank" href="/announcement/" id="supported-sites">公告栏</a>
|
||||
{% if social_link %}
|
||||
<a class="footer__link" target="_blank" href="{{ social_link }}">关注我们</a>
|
||||
{% endif %}
|
||||
{% if support_link %}
|
||||
<a class="footer__link" target="_blank" href="{{ support_link }}">问题反馈</a>
|
||||
{% endif %}
|
||||
<a class="footer__link" target="_blank" href="https://github.com/neodb-social">源代码</a>
|
||||
{% if donation_link %}
|
||||
<a class="footer__link" target="_blank" href="{{ donation_link }}">捐助本站</a>
|
||||
{% endif %}
|
||||
<a class="footer__link" href="/announcement/">公告栏</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
Loading…
Add table
Reference in a new issue