Skip to content

Commit a01631d

Browse files
committed
Versioning fonts
1 parent fbd5af2 commit a01631d

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

assets/css/admin-general.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin-page-columns.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin-welcome.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/table.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scss/_webfont.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ $cpacicon-segment: "\ea05";
77
@font-face {
88
font-family: "cpac_icons";
99
src:
10-
url("../fonts/cpac_icons.woff2") format("woff2"),
11-
url("../fonts/cpac_icons.woff") format("woff");
10+
url("../fonts/cpac_icons.woff2?v=492557") format("woff2"),
11+
url("../fonts/cpac_icons.woff?v=820378") format("woff");
1212
font-style: normal;
1313
font-weight: 400;
1414
}

src/webfont/scss/template.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ $cpacicon-segment: "\ea05";
77
@font-face {
88
font-family: "cpac_icons";
99
src:
10-
url("../fonts/cpac_icons.woff2") format("woff2"),
11-
url("../fonts/cpac_icons.woff") format("woff");
10+
url("../fonts/cpac_icons.woff2?v=492557") format("woff2"),
11+
url("../fonts/cpac_icons.woff?v=820378") format("woff");
1212
font-style: normal;
1313
font-weight: 400;
1414
}

src/webfont/template.scss.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
@font-face {
55
font-family: "{{ fontName }}";
66
src:
7-
url("{{ fontPath }}{{ fontName }}.woff2") format("woff2"),
8-
url("{{ fontPath }}{{ fontName }}.woff") format("woff");
7+
url("{{ fontPath }}{{ fontName }}.woff2?v={{ range(1, 1000000) | random }}") format("woff2"),
8+
url("{{ fontPath }}{{ fontName }}.woff?v={{ range(1, 1000000) | random }}") format("woff");
99
font-style: normal;
1010
font-weight: 400;
1111
}

0 commit comments

Comments
 (0)