cachebust style and js at build time

This commit is contained in:
2025-08-04 03:10:38 +03:00
parent f08c60de75
commit 7702384c40
6 changed files with 15 additions and 8 deletions

View File

@ -8,7 +8,7 @@
{% else %}
<title>Porom</title>
{% endif %}
<link rel="stylesheet" href="/static/style.css">
<link rel="stylesheet" href="{{ "/static/style.css" | cachebust }}">
<link rel="icon" type="image/png" href="/static/favicon.png">
</head>
<body>
@ -24,7 +24,7 @@
<footer class="darkbg">
<span>Pyrom commit <a href="{{ "https://git.poto.cafe/yagich/pyrom/commit/" + __commit }}">{{ __commit[:8] }}</a></span>
</footer>
<script src="/static/js/copy-code.js"></script>
<script src="/static/js/ui.js"></script>
<script src="/static/js/date-fmt.js"></script>
<script src="{{ "/static/js/copy-code.js" | cachebust }}"></script>
<script src="{{ "/static/js/ui.js" | cachebust }}"></script>
<script src="{{ "/static/js/date-fmt.js" | cachebust }}"></script>
</body>