{{ title := "PixivFE" }}
{{- if isset(.Title) -}}
{{ title = .Title + " - PixivFE" }}
{{ end -}}
{{ title }}
{* TODO: figure out custom themes (e.g. charcoal theme) *}
{* TODO: load these JS files only on pages that require them *}
{* TODO: can be annoying when you accidentally scroll inside a horizontal scroll area instead of the main content *}
{{- if CurrentPath == "/settings" }}
{{- end }}
{{- if isset(.MetaAuthor) }}
{{- else }}
{{- end -}}
{{- if isset(.MetaDescription) }}
{{- end -}}
{{- if isset(.MetaImage) }}
{{- end }}
{* NOTE: hx-swap="show:window:top" isn't needed when we hx-boost the body *}
{* NOTE: we need to specify settle in hx-swap otherwise htmx won't apply the classes; duration set low for minimal impact *}
{{- yield body() }}