]> jfr.im git - irc/freenode/web-7.0.git/commitdiff
Use git hashes as query strings for CSS
authorEd Kellett <redacted>
Fri, 25 Mar 2016 08:50:17 +0000 (08:50 +0000)
committerEd Kellett <redacted>
Fri, 25 Mar 2016 08:50:17 +0000 (08:50 +0000)
prevent old versions surviving in the cache

requirements.txt
templates/base.html

index cbee37d7ea34fdd6ff2df85e53ac73ae9a72b670..f5520e17dcac8425d42c3b69e79497e32e3c15ef 100644 (file)
@@ -1 +1 @@
-cms7==0.1a3
+cms7==0.1a4
index e9e20f95c4b5d2f5767944ba837e6640b1af9001..fd37e3caec44e816194c30e416222d9bb7b75ff1 100644 (file)
@@ -9,10 +9,9 @@
     <meta name="description" content="{{ config.DESCRIPTION }}">
     <link rel="icon" href="{{ url_for("static/img/logos/coloured-alphabg-sq-120.png") }}">
     <title>{% block title %}{{ title }} - {{ config.name }}{% endblock %}</title>
-    <link href="{{ url_for("static/css/open-sans.css") }}" rel="stylesheet">
-    <link href="{{ url_for("static/css/font-awesome.css") }}" rel="stylesheet">
-    <link href="{{ url_for("static/css/freenode.css") }}" rel="stylesheet">
-    <link href="{{ url_for("static/css/style.css") }}" rel="stylesheet">
+    {%- for stylesheet in ['open-sans.css', 'font-awesome.css', 'style.css'] %}
+    <link href="{{ url_for("static/css/" + stylesheet) }}?{{ git_hash }}" rel="stylesheet">
+    {%- endfor %}
 </head>
 <body>
     <nav class="navbar">