mirror of
https://github.com/sb745/NyaaV3.git
synced 2025-05-12 13:56:56 +03:00
Added commit hash in config file
This commit is contained in:
parent
438ce1cd6f
commit
7f229a3d6e
2 changed files with 4 additions and 1 deletions
|
@ -231,3 +231,6 @@ CACHE_THRESHOLD = 8192
|
|||
# To actually make this work across multiple worker processes, use redis
|
||||
# RATELIMIT_STORAGE_URL="redis://host:port"
|
||||
RATELIMIT_KEY_PREFIX="nyaaratelimit_"
|
||||
|
||||
# Use this to show the commit hash in the footer (see layout.html)
|
||||
# COMMIT_HASH="[enter your commit hash here]";
|
|
@ -331,7 +331,7 @@
|
|||
<footer style="text-align: center;">
|
||||
<p>Dark Mode: <a href="#" id="themeToggle">Toggle</a></p>
|
||||
{% if config.COMMIT_HASH %}
|
||||
<p>Commit: <a href="https://github.com/nyaadevs/nyaa/tree/{{ config.COMMIT_HASH }}">{{ config.COMMIT_HASH[:7] }}</a></p>
|
||||
<p>Commit: <a href="https://github.com/sb745/NyaaV3/tree/{{ config.COMMIT_HASH }}">{{ config.COMMIT_HASH[:7] }}</a></p>
|
||||
{% endif %}
|
||||
</footer>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Reference in a new issue