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

github.com/damiencaselli/hugo-journal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Caselli <damien.caselli@manomano.com>2021-04-02 11:01:17 +0300
committerDamien Caselli <damien.caselli@manomano.com>2021-04-02 11:01:17 +0300
commit081c58c1ddfdc5ccb61a19da200c9c570bd3a9e8 (patch)
tree8224e1f409ac845c2f0c950c16e99f24ae0c8318
parent8d03acb7d7a52349c5eeb0570d83bdabeba4d652 (diff)
perf: remove highlight from homepage
-rw-r--r--layouts/partials/bottom.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/bottom.html b/layouts/partials/bottom.html
index bc84996..b7fc028 100644
--- a/layouts/partials/bottom.html
+++ b/layouts/partials/bottom.html
@@ -30,8 +30,10 @@
</footer>
</div>
+ {{ if not .IsHome -}}
<script src="{{ "js/highlight.pack.js" | relURL }}"></script>
<script>hljs.initHighlightingOnLoad();</script>
+ {{- end }}
</body>
</html>