{{- /* layout.tmpl ~ Template layout page for the website. */ -}} {{define "layout" -}} {{- $descDefault := "Defacto2 is the premier destination for old school files and historical texts of the underground PC cracking, BBS and art scenes"}} {{- $cc := "https://creativecommons.org/licenses/by/4.0/"}} {{- $github := "https://github.com/defacto2"}} {{- $h1sub := index . "h1Sub"}} {{- $canonical := index . "canonical"}} {{- $desc := index . "description"}} {{- $cachef := index . "cacheFiles" }} {{- $carousel := index . "carousel"}} {{- $h1 := index . "h1"}} {{- $lead := index . "lead"}} {{- $lock := index . "editor"}} {{- $jsdos := index . "jsdos6"}} {{- $logo := index . "logo"}} {{- $pouet := index . "pouet"}} {{- $readmeL := index . "readmeLatin1"}} {{- $readmeC := index . "readmeCP437"}} {{- $databaseErr := index . "dbError"}} {{if ne $h1sub ""}}{{capitalize $h1sub}} {{toLower .title}}{{else}}{{.title}}{{end}} | Defacto2 {{if ne $canonical ""}}{{end -}} {{if ne $desc ""}}{{end -}} {{if eq $desc ""}}{{end}} {{- /* schema.org linked data, see: https://json-ld.org/playground/ and: https://developers.google.com/search/docs/appearance/structured-data/search-gallery */}} {{- /* bookmark and tab icons */}} {{- /* website manifest */}} {{- /* relationships */}} {{- /* opensearch.org */}} {{- /* cascading style sheets */}}
{{- block "modal" . -}}{{ "" | safeHTML -}}{{end}} {{- block "uploader" . -}}{{ "" | safeHTML -}}{{end}} {{- block "uploaderhtmx" . -}}{{ "" | safeHTML -}}{{end}}
{{- if eq $databaseErr true -}} {{- end}} {{- if ne $logo "" -}}
  {{- /*  
    the monospace brand logo should be padded with the Bootstrap classes
    and not with pre whitespace characters */ -}}
{{- logo }}
{{logoText $logo -}}
{{- end}} {{- if and (.Pagination) (gt (index .Pagination.SumPages) 1)}} {{- end }}
{{- if ne $h1 ""}}

{{$h1}}{{if ne $h1sub ""}} {{$h1sub}}{{end}}

{{- end}} {{- if ne $lead ""}}

{{ $lead | safeHTML }}

{{- end}} {{- block "content" . -}}{{ "" | safeHTML -}}{{end}}
{{- if and (.Pagination) (gt (index .Pagination.SumPages) 1)}} {{- end }}
{{- /* Do not async load the htmx JS */}} {{- /* Do not defer, or async load the Bootstrap 5.x JS */}} {{- /* FontAwesome Pro v5 */}} {{- if $pouet}} {{- end}} {{- if or $readmeL $readmeC}} {{- end}} {{- /* js-dos v6.22 */}} {{- if $jsdos}} {{- end}} {{- template "layoutjsup" . }} {{- template "layoutjs" . }} {{- /* Layout JS */}} {{- /* Bootstrap carousel initalizer (relies on the template and cannot be moved to a JS file) */}} {{- if ne $carousel ""}} {{end}} {{end}}