diff options
author | Michael Blum <me@mblum.me> | 2021-12-12 06:03:37 +0300 |
---|---|---|
committer | Michael Blum <me@mblum.me> | 2021-12-12 06:18:26 +0300 |
commit | a564907f1d194376e68fb8d52ec127f6b9db799f (patch) | |
tree | 309e3d8c2dc06d5fe0d2ca1f834d52bcd6e2fd24 /layouts/partials | |
parent | cd147f75998e92ee861d2cbba5ed3e781147b124 (diff) |
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 1 | ||||
-rw-r--r-- | layouts/partials/includes.html | 4 | ||||
-rw-r--r-- | layouts/partials/javascript.html | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6ad04cc..864c6e8 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -5,7 +5,6 @@ </footer> </div> </div> - {{ partial "javascript.html" . }} {{ partial "analytics.html" . }} </body> </html>
\ No newline at end of file diff --git a/layouts/partials/includes.html b/layouts/partials/includes.html index 08883eb..eb733c0 100644 --- a/layouts/partials/includes.html +++ b/layouts/partials/includes.html @@ -1,2 +1,6 @@ <!-- CSS --> +{{ if eq (getenv "HUGO_ENV") "production" }} +<link rel="stylesheet" href="/css/style.min.css"> +{{else}} <link rel="stylesheet" href="/css/style.css"> +{{end}}
\ No newline at end of file diff --git a/layouts/partials/javascript.html b/layouts/partials/javascript.html index 7db374d..e69de29 100644 --- a/layouts/partials/javascript.html +++ b/layouts/partials/javascript.html @@ -1,4 +0,0 @@ -<!-- jQuery first, then Tether, then Bootstrap JS. --> -<script src="/js/dist/vendor/jquery/jquery.min.js"></script> -<script src="/js/dist/vendor/tether/tether.min.js"></script> -<script src="/js/dist/vendor/bootstrap/bootstrap.min.js"></script>
\ No newline at end of file |