| | |
| | | {{$scss := . | resources.ToCSS (dict "outputStyle" "compressed") }} |
| | | {{$css = $css | append $scss}} |
| | | {{end}} |
| | | {{if $.Site.Data.config.enableCallouts}} |
| | | {{$scss := resources.Get "styles/_callouts.scss" | resources.ToCSS (dict "outputStyle" "compressed") }} |
| | | {{$css = $css | append $scss}} |
| | | {{end}} |
| | | {{$finalCss := $css | resources.Concat "styles.css" | resources.Fingerprint "md5" | resources.Minify }} |
| | | <link href="{{$finalCss.Permalink}}" rel="stylesheet" /> |
| | | |
| | |
| | | <script src="{{$clipboard.Permalink}}"></script> |
| | | {{ end }} |
| | | |
| | | {{ if $.Site.Data.config.enableCallouts }} |
| | | {{ $callouts := resources.Get "js/callouts.js" | resources.Fingerprint "md5" | resources.Minify }} |
| | | <script src="{{$callouts.Permalink}}"></script> |
| | | {{ end }} |
| | | |
| | | <!-- Preload page vars --> |
| | | {{$linkIndex := resources.Get "indices/linkIndex.json" | resources.Fingerprint |
| | | "md5" | resources.Minify | }} {{$contentIndex := resources.Get |
| | |
| | | addTitleToCodeBlocks(); |
| | | {{ end }} |
| | | |
| | | {{if $.Site.Data.config.enableCallouts -}} |
| | | addCollapsibleCallouts(); |
| | | {{ end }} |
| | | |
| | | {{if $.Site.Data.config.enableFooter}} |
| | | const container = document.getElementById("graph-container") |
| | | // retry if the graph is not ready |