mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-20 02:16:40 +00:00
46 lines
2.0 KiB
HTML
46 lines
2.0 KiB
HTML
<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="{{ .Site.BaseURL }}js/jquery-1.12.3.min.js"></script>
|
|
<script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
|
|
<script src="{{ .Site.BaseURL }}js/hugo-academic.js"></script>
|
|
{{ range .Site.Params.custom_js }}
|
|
<script src="{{ $.Site.BaseURL }}js/{{ . }}"></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 -->
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/highlight.min.js"></script>
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
|
|
|
<!-- 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>
|