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: {
|
twigRender: {
|
||||||
compile: {
|
compile: {
|
||||||
files : [{
|
files : [{
|
||||||
data: {
|
data: {},
|
||||||
file_root: __dirname + '/public'
|
|
||||||
},
|
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: 'assets/twig',
|
cwd: 'assets/twig',
|
||||||
src: ['**/*.twig', '!**/_*.twig'],
|
src: ['**/*.twig', '!**/_*.twig'],
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
|
<!-- 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="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>
|
<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 %}
|
{% block scripts %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
Reference in New Issue
Block a user