Changed the file root for CSS and JS files to be relative to the current file
This commit is contained in:
parent
5d8fef2dbd
commit
dc81ceb04d
@ -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'],
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user