Skip to content

Commit 0e7a875

Browse files
lfdebrux36degrees
andcommitted
Make GOV.UK Frontend assets paths work with http prefix
Co-authored-by: Oliver Byford <oliver.byford@digital.cabinet-office.gov.uk>
1 parent d791c7b commit 0e7a875

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/assets/stylesheets/_govuk_tech_docs.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
$govuk-assets-path: "/assets/govuk/assets/" !default;
1+
@function tech-docs-image-url-function($filename) {
2+
@return image-url($govuk-images-path + $filename)
3+
}
4+
5+
@function tech-docs-font-url-function($filename) {
6+
@return font-url($govuk-fonts-path + $filename)
7+
}
8+
9+
$govuk-font-url-function: 'tech-docs-font-url-function';
10+
$govuk-image-url-function: 'tech-docs-image-url-function';
11+
12+
$govuk-assets-path: "/assets/govuk/assets/";
213

314
// Include only the bits of GOV.UK Frontend we need
415
$govuk-new-link-styles: true;

0 commit comments

Comments
 (0)