Skip to content

Commit d100d46

Browse files
committed
ci(github): respect path prefix in css image references
1 parent 6c5042a commit d100d46

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

_includes/layouts/base.njk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@
2525
<style>
2626
{% getBundle "css" %}
2727
</style>
28+
{# These are in the njk so the path prefix is respected #}
29+
{%- css %}
30+
body {
31+
background: url({{ '/img/body_bg.jpg' | htmlBaseUrl }}) no-repeat center 80px;
32+
}
33+
a.extlink .icon {
34+
background: url({{ '/img/extlink.png' | htmlBaseUrl }}) 0 50% no-repeat;
35+
}
36+
{% endcss %}
2837
{#- Renders the CSS bundle using a separate file, if you can't set CSP directive style-src: 'unsafe-inline' #}
2938
{# <link rel="stylesheet" href="{% getBundleFileUrl 'css' %}"> #}
3039
</head>

public/css/index.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ html:before {
9393
);
9494
z-index: -1;
9595
}
96-
body {
97-
background: url(/img/body_bg.jpg) no-repeat center 80px;
98-
}
9996

10097
/* Banner */
10198
.banner {
@@ -544,7 +541,6 @@ footer a[href]:active {
544541
}
545542
a.ext-link .icon {
546543
padding-left: 15px;
547-
background: url(/img/extlink.png) 0 50% no-repeat;
548544
}
549545

550546
@media (max-width: 919px) {

0 commit comments

Comments
 (0)