From cb88ab2080b65d37d6ec4c0ec442d02b64cadb50 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 15 Jul 2018 13:35:54 +0200 Subject: [PATCH] Changed file extension of custom CSS and JS files to clarify that the content is HTML and not directly CSS/JS --- README.md | 4 ++-- views/layout/default.blade.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3bfc669d..35cb36a9 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,8 @@ Database schema migration is automatically done when visiting the root (`/`) rou When the file `data/demo.txt` exists, the application will work in a demo mode which means authentication is disabled and some demo data will be generated during the database schema migration. ### Adding your own CSS or JS without to have to modify the application itself -- When the file `data/custom.js` exists, the contents of the file will be added just before `` (end of body) on every page -- When the file `data/custom.css` exists, the contents of the file will be added just before `` (end of head) on every page +- When the file `data/custom_js.html` exists, the contents of the file will be added just before `` (end of body) on every page +- When the file `data/custom_css.html` exists, the contents of the file will be added just before `` (end of head) on every page ## Screenshots #### Dashboard diff --git a/views/layout/default.blade.php b/views/layout/default.blade.php index 7aa337ba..272fbb73 100644 --- a/views/layout/default.blade.php +++ b/views/layout/default.blade.php @@ -28,8 +28,8 @@ @stack('pageStyles') - @if(file_exists(__DIR__ . '/../../data/custom.css')) - @php include __DIR__ . '/../../data/custom.css' @endphp + @if(file_exists(__DIR__ . '/../../data/custom_css.html')) + @php include __DIR__ . '/../../data/custom_css.html' @endphp @endif - @if(file_exists(__DIR__ . '/../../data/custom.js')) - @php include __DIR__ . '/../../data/custom.js' @endphp + @if(file_exists(__DIR__ . '/../../data/custom_js.html')) + @php include __DIR__ . '/../../data/custom_js.html' @endphp @endif