footer.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <script src="/js/jquery-1.12.3.min.js"></script>
  2. <script src="/js/bootstrap.min.js"></script>
  3. <script src="/js/hugo-academic.js"></script>
  4. {{ with .Site.GoogleAnalytics }}
  5. <script>
  6. (function(i,s,o,g,r,a,m){
  7. i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},
  8. i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;
  9. m.parentNode.insertBefore(a,m)
  10. })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  11. ga('create', '{{ . }}', 'auto');
  12. ga('set', 'anonymizeIp', true);
  13. ga('send', 'pageview');
  14. /* Send outbound link click events */
  15. var links = document.querySelectorAll('a');
  16. Array.prototype.map.call(links, function(item) {
  17. if (item.host != document.location.host) {
  18. item.addEventListener('click', function() {
  19. var action = item.getAttribute('data-action') || 'follow';
  20. ga('send', 'event', 'outbound', action, item.href);
  21. });
  22. }
  23. });
  24. </script>
  25. {{ end }}
  26. <!-- Code highlighting -->
  27. <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/highlight.min.js"></script>
  28. <script>hljs.initHighlightingOnLoad();</script>
  29. <!-- LaTeX math rendering -->
  30. <script type="text/x-mathjax-config">
  31. MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
  32. </script>
  33. <script async src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"></script>
  34. </body>
  35. </html>