Changed the file root for CSS and JS files to be relative to the current file
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine 2022-05-26 12:29:03 -04:00
parent 5d8fef2dbd
commit dc81ceb04d
2 changed files with 4 additions and 6 deletions

View File

@ -37,9 +37,7 @@ module.exports = function(grunt) {
twigRender: {
compile: {
files : [{
data: {
file_root: __dirname + '/public'
},
data: {},
expand: true,
cwd: 'assets/twig',
src: ['**/*.twig', '!**/_*.twig'],

View File

@ -3,11 +3,11 @@
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<link rel="stylesheet" href="{{ file_root }}/styles/skeleton-2.0.4.min.css">
<link rel="stylesheet" href="./styles/skeleton-2.0.4.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
<link rel="stylesheet" href="{{ file_root }}//styles/sentry.css">
<link rel="stylesheet" href="./styles/sentry.css">
<title>Sentry System Monitor</title>
<script src="{{ file_root }}/js/sentry.js" charset="utf-8"></script>
<script src="./js/sentry.js" charset="utf-8"></script>
{% block scripts %}{% endblock %}
</head>
<body>