Add an "after_content" blog to baseof.html

Populate it with links to CSS files in the page bundle.
This commit is contained in:
Eryn Wells 2025-01-07 15:37:28 -08:00
parent c949edac15
commit 27c1a84ee4
3 changed files with 13 additions and 0 deletions

View file

@ -12,6 +12,7 @@
<footer class="site-footer">
{{ partialCached "site/footer.html" . }}
</footer>
{{ block "after_content" . }}{{ end }}
{{ partial "base/body-extras.html" . }}
</body>
{{- block "after_js" . }}{{ end }}

View file

@ -20,3 +20,9 @@
</footer>
</main>
{{ end }}
{{ define "after_content" }}
{{ range .Resources.Match "*.css" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ end }}
{{ end }}

View file

@ -12,3 +12,9 @@
</footer>
</main>
{{ end }}
{{ define "after_content" }}
{{ range .Resources.Match "*.css" }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ end }}
{{ end }}