Merge branch 'distribute-mermaid-js-only-when-contents-page' of kazu634/blog into master

This commit is contained in:
Kazuhiro MUSASHI 2020-05-01 20:29:06 +09:00 committed by Gitea
commit 699427141c
6 changed files with 31 additions and 7 deletions

View File

@ -29,4 +29,4 @@
{{ end }} {{ end }}
</nav> </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

@ -11,9 +11,6 @@
</div> </div>
<script src="https://unpkg.com/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true});</script>
{{ with .Site.Params.analytics }}<script> {{ with .Site.Params.analytics }}<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (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), (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

View File

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

View File

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

View File

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