Initial commit
This commit is contained in:
63
themes/hugo-academic-master/layouts/partials/footer.html
Normal file
63
themes/hugo-academic-master/layouts/partials/footer.html
Normal file
@@ -0,0 +1,63 @@
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.4/TweenMax.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/ScrollToPlugin.min.js"></script>
|
||||
<script src="{{ "/js/jquery-1.12.3.min.js" | relURL }}"></script>
|
||||
<script src="{{ "/js/bootstrap.min.js" | relURL }}"></script>
|
||||
<script src="{{ "/js/isotope.pkgd.min.js" | relURL }}"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/4.1.1/imagesloaded.pkgd.min.js"></script>
|
||||
<script src="{{ "/js/hugo-academic.js" | relURL }}"></script>
|
||||
{{ range .Site.Params.custom_js }}
|
||||
<script src="{{ "/js/" | relURL }}{{ . }}"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.GoogleAnalytics }}
|
||||
<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','https://www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', '{{ . }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
/* Send outbound link click events */
|
||||
var links = document.querySelectorAll('a');
|
||||
Array.prototype.map.call(links, function(item) {
|
||||
if (item.host != document.location.host) {
|
||||
item.addEventListener('click', function() {
|
||||
var action = item.getAttribute('data-action') || 'follow';
|
||||
ga('send', 'event', 'outbound', action, item.href);
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
<!-- Code highlighting -->
|
||||
{{ if $.Scratch.Get "highlight_enabled" }}
|
||||
{{ $v := .Site.Params.highlight_version | default "9.9.0" }}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/highlight.min.js"></script>
|
||||
|
||||
{{ range .Site.Params.highlight_languages }}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/languages/{{ . }}.min.js"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ range .Params.highlight_languages }}
|
||||
{{/* Do not double-include languages that are in both .Site.Params and .Params.
|
||||
If Hugo ever grows a "union" function for set union, this range clause can be merged with the one above. */}}
|
||||
{{ if not (in $.Site.Params.highlight_languages .) }}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/languages/{{ . }}.min.js"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
{{ end }}
|
||||
|
||||
<!-- LaTeX math rendering -->
|
||||
{{ if or .Params.math .Site.Params.math }}
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
|
||||
</script>
|
||||
<script async src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"></script>
|
||||
{{ end }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user