Syllabus/themes/sandpoints/layouts/_default/baseof.html

25 lines
1.2 KiB
HTML

<!DOCTYPE html>
{{- $filePath := .File -}}
{{- $gitUrl := .Site.Data.myvars.giturl -}}
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
{{- partial "head.html" . -}}
{{ partialCached "css.html" . }}
<body>
{{ with .Site.Data.myvars.edit }}
<div class="flex justify-between sticky top-0 static border-b-8 z-10 border-red bg-white px-1 pt-2">
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/content/{{ $filePath }}">edit_this</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/topic/">add_new_topic</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_new/master/content/session/">add_new_session</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}/_edit/master/PUBLISH.trigger.md">publish</a>
<a class="edit-button" target="_blank" href="{{ $gitUrl }}"> ? </a>
</div>
{{ end }}
{{- partial "header.html" . -}}
{{$currentNode := . }}
<h1>{{ .Title }}</h1>
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
</body>
</html>