Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
revert(CSS_TAG): re-add debug for css_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Mar 14, 2019
1 parent 20b8a15 commit e143301
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/views/layout/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* @var League\Plates\Template\Template $this
* @var string $title
*/

$css_tag = env('APP_DEBUG') ? time() : app()->config->get('base.site_css_update_date');
?>
<!DOCTYPE html>
<html lang="en">
Expand All @@ -20,7 +22,7 @@
<link rel="stylesheet" href="/lib/fontAwesome/css/all.css"> <?php /** https://fontawesome.com/icons?d=gallery */ ?>

<!-- Custom styles for this template -->
<link rel="stylesheet" href="/static/css/main.css?<?= app()->config->get('base.site_css_update_date') ?>">
<link rel="stylesheet" href="/static/css/main.css?<?= $css_tag ?>">

<?= $this->section('css') ?> <!-- Other temp CSS field -->
</head>
Expand Down Expand Up @@ -93,7 +95,8 @@
</footer>

<script src="/lib/layui/src/layui.js"></script>
<script src="/static/js/main.js?<?= app()->config->get('base.site_css_update_date') ?>"></script>
<script src="/lib/notice.js/dist/notice.js"></script>
<script src="/static/js/main.js?<?= $css_tag ?>"></script>
<?= $this->section('script') ?> <!-- Other temp script field -->

</body>
Expand Down

0 comments on commit e143301

Please sign in to comment.