]> git.quilime.com - gabrieldunne.com-site.git/commitdiff
Adding timestamp to css so it caches
authorGabriel Dunne <gdunne@quilime.com>
Sun, 11 Dec 2022 02:34:37 +0000 (18:34 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Sun, 11 Dec 2022 02:34:37 +0000 (18:34 -0800)
_layouts/default.html

index 40b1e914108cea5adc157055dafe06e1c10604db..4cfa2df77c66328a3c87212cb1b6bd6eda93ff28 100644 (file)
@@ -3,12 +3,13 @@
   <head>
       <meta charset="utf-8">
       <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+      {% assign ts = 'now' | date: "%s" %}
       <title>{{ site.name }}{% if page.title != 'index' %} > {{ page.title }}{% endif %}</title>
       <meta name="viewport" content="width=device-width, initial-scale=1.0, 
 user-scalable=no">      
-      <link rel="stylesheet" href="{{ site.baseurl }}/css/syntax.css">
-      <link rel="stylesheet" href="{{ site.baseurl }}/css/marx.css">
-      <link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
+      <link rel="stylesheet" href="{{ site.baseurl }}/css/syntax.css?t={{ ts }}">
+      <link rel="stylesheet" href="{{ site.baseurl }}/css/marx.css?t={{ ts }}">
+      <link rel="stylesheet" href="{{ site.baseurl }}/css/main.css?t={{ ts }}">
   </head>
   <body>