2019-04-02 06:22:00 +00:00
|
|
|
{{ $include_toc := .Params.include_toc}}
|
2018-07-29 21:41:49 +00:00
|
|
|
{{ if .Site.GoogleAnalytics }}
|
2018-07-26 22:41:33 +00:00
|
|
|
<!-- Google Analytics -->
|
2018-07-29 21:41:49 +00:00
|
|
|
{{ template "_internal/google_analytics_async.html" . }}
|
|
|
|
{{ end }}
|
2018-07-26 22:41:33 +00:00
|
|
|
{{ partial "footer/font-awesome-js.html" . }}
|
2018-07-27 00:02:49 +00:00
|
|
|
{{ partial "highlight-js.html" . }}
|
2018-09-30 01:58:57 +00:00
|
|
|
{{ with .Site.Params.toc }}
|
2019-04-02 06:22:00 +00:00
|
|
|
{{ if and (eq . "tocbot") (ne $include_toc false) }}
|
|
|
|
<script src="/js/tocbot.js"></script>
|
2018-09-30 01:58:57 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
if (tocbot) {
|
|
|
|
tocbot.init({
|
|
|
|
// Where to render the table of contents.
|
|
|
|
tocSelector: '.toc',
|
|
|
|
// Where to grab the headings to build the table of contents.
|
|
|
|
contentSelector: '.post',
|
|
|
|
// Which headings to grab inside of the contentSelector element.
|
|
|
|
headingSelector: 'h2, h3, h4',
|
|
|
|
collapseDepth: 4
|
|
|
|
});
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|