forked from leftypol/leftypol
templates: bust all css caches with resource_version
This commit is contained in:
parent
abfa773282
commit
ef1634184a
7 changed files with 21 additions and 21 deletions
|
@ -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 %};
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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 }}" />
|
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue