Layouts: A base template override that includes the commandbar scripts
This commit is contained in:
parent
efd5f8991d
commit
9a09600c37
1 changed files with 25 additions and 0 deletions
25
layouts/_default/baseof.html
Normal file
25
layouts/_default/baseof.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue