Layouts: A base template override that includes the commandbar scripts

This commit is contained in:
Eryn Wells 2024-08-08 10:24:16 -10:00
parent efd5f8991d
commit 9a09600c37

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="{{ or site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
<head>
{{ partial "base/head.html" . }}
{{ block "head_css" . }}{{ end }}
</head>
<body>
<header class="site-header">
{{ partial "site/header.html" . }}
</header>
<div class="body__container">
{{ block "main" . }}{{ end }}
<footer class="site-footer">
{{ partial "site/footer.html" . }}
</footer>
</div>
<command-bar></command-bar>
{{ partial "commandbar/template.html" . }}
{{ partial "commandbar/script.html" }}
{{ partial "resource_builders/script.html" (dict "resource" "js/commands.js") }}
{{ if .HasShortcode "railroad-diagram" }}
{{ partial "resource_builders/script.html" (dict "resource" "js/railroad/railroad.js")}}
{{ end }}
</body>
</html>