Update theme

This commit is contained in:
Ben Goldsworthy 2023-03-05 14:21:04 -05:00
parent 80774027c1
commit 2a0ecfc3ec
6 changed files with 1155 additions and 46 deletions

View file

@ -46,7 +46,7 @@
{{ end }}
{{ if in . "charts" }}
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="js/charts.js"></script>
<script src="{{ ( $.Page.Resources.GetMatch "charts-init").RelPermalink }}"></script>
{{ end }}
{{ end }}
{{ end }}
@ -123,6 +123,12 @@
{{ define "main-body" }}
<article class="site-content__body" itemprop="articleBody">
{{ .Content }}
{{ if fileExists ( path.Join $.Page.File.Dir "appendices.md" ) }}
<section class="article-body__appendices">
<h2 class="subheading subheading--appendices">Appendices</h2>
{{ readFile ( path.Join $.Page.File.Dir "appendices.md" ) | markdownify }}
</section>
{{ end }}
</article>
{{ end }}