templates: bust all css caches with resource_version

This commit is contained in:
Zankaria 2024-08-22 00:15:51 +02:00
parent abfa773282
commit ef1634184a
7 changed files with 21 additions and 21 deletions

View file

@ -1,14 +1,14 @@
<link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}">
<link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}?v={{ config.resource_version }}">
{% if config.url_favicon %}<link rel="shortcut icon" href="{{ config.url_favicon }}">{% endif %}
{% if config.url_appletouchicon %}<link rel=apple-touch-icon" href="{{ config.url_appletouchicon }}">{% endif %}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
{% if config.meta_keywords %}<meta name="keywords" content="{{ config.meta_keywords }}">{% endif %}
{% if config.default_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_stylesheet.1 }}">{% endif %}
{% if config.default_code_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="code_stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_code_stylesheet.1 }}">{% endif %}
{% if config.default_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_stylesheet.1 }}?v={{ config.resource_version }}">{% endif %}
{% if config.default_code_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="code_stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_code_stylesheet.1 }}?v={{ config.resource_version }}">{% endif %}
{% if config.font_awesome %}<link rel="stylesheet" href="{{ config.root }}{{ config.font_awesome_css }}">{% endif %}
{% if config.country_flags_condensed %}<link rel="stylesheet" href="{{ config.root }}{{ config.country_flags_condensed_css }}">{% endif %}
{% if config.sc_editor %} <link rel="stylesheet" href="{{ config.uri_stylesheets }}sceditor/themes/{{ config.sc_editor_theme }}.css" media="all" /> {% endif %}
{% if config.sc_editor %} <link rel="stylesheet" href="{{ config.uri_stylesheets }}sceditor/themes/{{ config.sc_editor_theme }}.css?v={{ config.resource_version }}" media="all" /> {% endif %}
<script type="text/javascript">
var configRoot="{{ config.root }}";
var inMod = {% if mod %}true{% else %}false{% endif %};

View file

@ -5,8 +5,8 @@
<script src='js/strftime.min.js?v={{ config.resource_version }}'></script>
<script src='js/longtable/longtable.js?v={{ config.resource_version }}'></script>
<script src='js/mod/ban-list.js?v={{ config.resource_version }}'></script>
<link rel='stylesheet' href='stylesheets/longtable/longtable.css'>
<link rel='stylesheet' href='stylesheets/mod/ban-list.css'>
<link rel='stylesheet' href='stylesheets/longtable/longtable.css?v={{ config.resource_version }}'>
<link rel='stylesheet' href='stylesheets/mod/ban-list.css?v={{ config.resource_version }}'>
<form action="?/bans" method="post" class="banform">
{% if token %}

View file

@ -1 +1 @@
<link rel="stylesheet" media="screen" href="{{ config.uri_stylesheets }}mod/mod.css" />
<link rel="stylesheet" media="screen" href="{{ config.uri_stylesheets }}mod/mod.css?v={{ config.resource_version }}" />

View file

@ -2,7 +2,7 @@
<!doctype html>
<html>
<head>
<link rel="stylesheet" media="screen" href="/stylesheets/style.css">
<link rel="stylesheet" media="screen" href="/stylesheets/style.css?v={{ config.resource_version }}">
<meta charset="utf-8">
{% if config.meta_keywords %}<meta name="keywords" content="{{ config.meta_keywords }}">{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
@ -40,12 +40,12 @@
{% endfor %}
{% endif %}
</div>
<hr/>
<footer>
<p class="unimportant" style="margin-top:20px;text-align:center;">- Tinyboard +
<p class="unimportant" style="margin-top:20px;text-align:center;">- Tinyboard +
<a href="https://engine.vichan.net/">vichan</a> {{ config.version }} -
<br>Tinyboard Copyright &copy; 2010-2014 Tinyboard Development Group
<br>Tinyboard Copyright &copy; 2010-2014 Tinyboard Development Group
<br><a href="https://engine.vichan.net/">vichan</a> Copyright &copy; 2012-2016 vichan-devel</p>
</footer>
<div class="pages"></div>

View file

@ -19,8 +19,8 @@
<h1>{{ settings.title }}</h1>
<img src="{{ config.logo }}" alt="logo" class="home-logo">
<div class="subtitle">{{ settings.subtitle }}</div>
<link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}">
<link rel="stylesheet" media="screen" href="/stylesheets/dark_red.css">
<link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}?v={{ config.resource_version }}">
<link rel="stylesheet" media="screen" href="/stylesheets/dark_red.css?v={{ config.resource_version }}">
<p class="home-description" >{{ description }}</p>
</header>
</div>

View file

@ -2,7 +2,7 @@
<!doctype html>
<html>
<head>
<link rel="stylesheet" media="screen" href="/stylesheets/style.css">
<link rel="stylesheet" media="screen" href="/stylesheets/style.css?v={{ config.resource_version }}">
<meta charset="utf-8">
<title>{{ settings.title }}</title>
{% if config.meta_keywords %}<meta name="keywords" content="{{ config.meta_keywords }}">{% endif %}

View file

@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>{{ settings.title }}</title>
<link rel="stylesheet" media="screen" href="{{ config.root}}stylesheets/style.css"/>
<link rel="stylesheet" media="screen" href="{{ config.root}}stylesheets/recent.css"/>
<link rel="stylesheet" media="screen" href="https://lainchan.org/stylesheets/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" media="screen" href="{{ config.root}}stylesheets/style.css?v={{ config.resource_version }}"/>
<link rel="stylesheet" media="screen" href="{{ config.root}}stylesheets/recent.css?v={{ config.resource_version }}"/>
<link rel="stylesheet" media="screen" href="https://lainchan.org/stylesheets/font-awesome/css/font-awesome.min.css?v={{ config.resource_version }}"/>
{% if config.url_favicon %}<link rel="shortcut icon" href="{{ config.url_favicon }}" />{% endif %}
{% if config.font_awesome %}<link rel="stylesheet" href="{{ config.root }}{{ config.font_awesome_css }}">{% endif %}
{% if config.font_awesome %}<link rel="stylesheet" href="{{ config.root }}{{ config.font_awesome_css }}?v={{ config.resource_version }}">{% endif %}
{% include 'header.html' %}
</head>
<body>
@ -31,10 +31,10 @@
<br>
<div class="ban" id="global2"> <h2>CYBERPUNK IS DUCK</h2> Pour out the Soykaf, lurk, and read the <a href="https://lainchan.org/rules">rules</a> before posting! </div>
<div class="ban" id="global2"> <h2>CYBERPUNK IS DUCK</h2> Pour out the Soykaf, lurk, and read the <a href="https://lainchan.org/rules">rules</a> before posting! </div>
<center> <img alt="mascot" class="lain_banner" src="static/duck.png"></center>
<br>
<div class="ban" id="global3">
<div class="ban" id="global3">
<h2>Latest News</h2>
{% if not recent_news %}
<p style="text-align:center" class="unimportant">(No news to show.)</p>
@ -70,7 +70,7 @@
<ul>
{% for post in recent_posts %}
<li>
<strong>{{ post.board_name }}</strong>:
<strong>{{ post.board_name }}</strong>:
<a href="{{ post.link }}">
{{ post.snippet }}
</a>