mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-16 02:59:31 -07:00
15 lines
504 B
HTML
15 lines
504 B
HTML
{{- define "main" -}}
|
|
{{- $params := .Scratch.Get "params" -}}
|
|
{{- $currentPage := . -}}
|
|
{{- with partial "function/currentMenuItem.html" . -}}
|
|
{{- partial "resources/imageJSON.html" (dict "Path" .DirName "Page" $currentPage) -}}
|
|
<script>document.getElementById("main").setAttribute("currentMenuItemIndex", "{{- (sub .ID 1) -}}")</script>
|
|
{{- end -}}
|
|
<div class="container">
|
|
{{- partial "nav.html" . -}}
|
|
</div>
|
|
<article class="info">
|
|
{{ .Content }}
|
|
</article>
|
|
{{- end -}}
|