Distribute `mermaid.js` for the contents pages.

This commit is contained in:
Kazuhiro MUSASHI 2020-05-01 20:24:11 +09:00
parent b9a48f1794
commit cff8ef00c5
5 changed files with 31 additions and 4 deletions

View File

@ -29,4 +29,4 @@
{{ end }}
</nav>
{{ partial "footer.html" . }}
{{ partial "footer-content.html" . }}

View File

@ -0,0 +1,27 @@
<!-- Footer Section Layout
-->
<footer role="contentinfo">
<div style="text-align:center;">
{{ with .Site.Params.profile }}<img src="{{ . }}" width="64" height="64"><br>{{ end }}
{{ .Site.Params.copyright }}
</div>
</footer>
</div>
<script src="https://unpkg.com/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true});</script>
{{ with .Site.Params.analytics }}<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ . }}', 'auto');
ga('send', 'pageview');
</script>{{ end }}
</body>
</html>

View File

@ -29,4 +29,4 @@
{{ end }}
</nav>
{{ partial "footer.html" . }}
{{ partial "footer-content.html" . }}

View File

@ -29,4 +29,4 @@
{{ end }}
</nav>
{{ partial "footer.html" . }}
{{ partial "footer-content.html" . }}

View File

@ -29,4 +29,4 @@
{{ end }}
</nav>
{{ partial "footer.html" . }}
{{ partial "footer-content.html" . }}