{{ define "title" -}}
{{ .Title }} | {{ .Site.Title }}
{{- end }}
{{ define "header" }}
{{ partial "masthead.html" . }}
{{ end }}
{{ define "main" }}
{{ .Title }}
{{ if .Description }}
{{ .Description }}
{{ end }}
{{ with .Params.slug }}
{{ partial "module-latest.html" (dict "slug" .) }}
{{ if eq . "toxic-swamp" }}
{{ end }}
{{ end }}
{{/* TODO: Allow schema specification by type */}}
{{/* {{ template "_internal/schema.html" . }} */}}
{{ .Content }}
{{ end }}
{{ define "footer" }}
{{ partial "powered-by.html" . }}
{{ partial "cookie-disclaimer.html" . }}
{{ if in .Page.RelPermalink "toxic-swamp" }}
{{ if eq .Params.slug "toxic-swamp" }}
{{ $config_generator := resources.Get "/js/config-generator.js" }}
{{ else if in .Page.RelPermalink "configuration" }}
{{ $configuration := resources.Get "/js/configuration.js" }}
{{ end }}
{{ end }}
{{ end }}