Skip to content

Commit

Permalink
Ensure CSS always has a caching string
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSteam committed Nov 26, 2024
1 parent 92020a5 commit a7b4355
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@
{%- if page.last_modified_at -%}
<meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema }}" />
{%- endif -%}
<link
rel="stylesheet"
href="/assets/css/style.css?v={{ site.theme_version }}"
/>

{% if site.theme_version %}
<link rel="stylesheet" href="/assets/css/style.css?v={{ site.theme_version }}" />
{% else %}
{% assign current_year = "now" | date: "%Y" %}
{% assign current_week = "now" | date: "%V" %}
{% assign year_week_string = current_year | append: "-" | append: current_week %}
<link rel="stylesheet" href="/assets/css/style.css?v={{ site.remote_theme | split: '@' | last | replace: 'JakeSteam/minimaJake', year_week_string}}" />.
{% endif %}
<link
rel="apple-touch-icon"
sizes="180x180"
Expand Down

0 comments on commit a7b4355

Please sign in to comment.