pidgin/nest

Remove mermaid.js from footer and theme.

10 months ago, Elliott Sales de Andrade
136c099f1388
Parents a5f1705be525
Children da4681c1827d
Remove mermaid.js from footer and theme.

It is not used anywhere, and maybe should only be loaded if we actually do any mermaid diagrams.

This cuts down front page no-cache load from 1.71 MB to 914.43 kB.

Testing Done:
Loaded the front page. Also, searched for use of the mermaid shortcode, which was non-existent.

Reviewed at https://reviews.imfreedom.org/r/75/
--- a/hugo/themes/learn/layouts/partials/footer.html Wed Aug 19 05:28:28 2020 -0500
+++ b/hugo/themes/learn/layouts/partials/footer.html Thu Aug 20 22:41:02 2020 -0500
@@ -68,11 +68,6 @@
<script src="{{ "js/learn.js" | relURL }}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
<script src="{{ "js/hugo-learn.js" | relURL }}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
- <link href="{{ "mermaid/mermaid.css" | relURL }}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}" type="text/css" rel="stylesheet" />
- <script src="{{ "mermaid/mermaid.js" | relURL }}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
- <script>
- mermaid.initialize({ startOnLoad: true });
- </script>
{{ partial "custom-footer.html" . }}
</body>
</html>
--- a/hugo/themes/learn/theme.toml Wed Aug 19 05:28:28 2020 -0500
+++ b/hugo/themes/learn/theme.toml Thu Aug 20 22:41:02 2020 -0500
@@ -8,7 +8,7 @@
homepage = "https://github.com/matcornic/hugo-theme-learn/"
repo = "https://github.com/matcornic/hugo-theme-learn"
tags = ["documentation", "grav", "learn", "doc", "search"]
-features = ["documentation", "menu", "nested sections", "search", "mermaid"]
+features = ["documentation", "menu", "nested sections", "search"]
min_version = 0.25
[author]