the home site for me: also iteration 3 or 4 of my site
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add cache-busting hash to CSS and JS file links

+6 -4
+6 -4
templates/head.html
··· 61 61 {% endif %} {% endblock metatags %} {% if config.generate_feeds %} {% block feed 62 62 %} <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ 63 63 get_url(path="atom.xml", trailing_slash=false) }}"> {% endblock feed %} {% endif 64 - %} {% block css %} 64 + %} {% block css %} {% set cssHash = get_hash(path="css/main.css", sha_type=256, 65 + base64=true) %} 65 66 <link 66 67 rel="stylesheet" 67 68 type="text/css" 68 - href="{{ get_url(path='css/main.css', trailing_slash=false) | safe }}" 69 + href="{{ get_url(path='css/main.css?hash=' ~ cssHash, trailing_slash=false) | safe }}" 69 70 /> 70 - {% endblock css %} 71 + {% endblock css %} {% set jsHash = get_hash(path="js/script.js", sha_type=256, 72 + base64=true) %} 71 73 <script 72 - src="{{ get_url(path='js/script.js', trailing_slash=false) | safe }}" 74 + src="{{ get_url(path='js/script.js' ~ jsHash, trailing_slash=false) | safe }}" 73 75 defer 74 76 ></script>