Add initial implementation of sidenotes
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
<link href="https://fonts.googleapis.com/css?family=Inconsolata|Lora|Raleway" rel="stylesheet">
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
|
||||
{{ $style := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify }}
|
||||
{{ $sidenotes:= resources.Get "scss/sidenotes.scss" | resources.ToCSS | resources.Minify }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
<link rel="stylesheet" href="{{ $sidenotes.Permalink }}">
|
||||
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
|
||||
6
themes/vanilla/layouts/shortcodes/sidenote
Normal file
6
themes/vanilla/layouts/shortcodes/sidenote
Normal file
@@ -0,0 +1,6 @@
|
||||
<span class="sidenote {{ .Get 0 }}">
|
||||
<label class="sidenote-label">{{ .Get 2 }}</label>
|
||||
<span class="sidenote-content">
|
||||
{{ .Inner }}
|
||||
</span>
|
||||
</span>
|
||||
Reference in New Issue
Block a user