Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mikeblum/hugo-now.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer.html1
-rw-r--r--layouts/partials/includes.html4
-rw-r--r--layouts/partials/javascript.html4
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