{{/* Copyright (C) 2019 Josh Habdas This file is part of After Dark. After Dark is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. After Dark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ -}} {{ partial "meta/content-security-policy.html" . }} {{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }} {{ $default_noindex_kinds := slice "section" "taxonomy" "taxonomyTerm" }} {{ $noindex_kinds := .Site.Params.noindex_kinds | default $default_noindex_kinds }} {{ $is_noindex_true := and (isset .Params "noindex") .Params.noindex }} {{ if or (in $noindex_kinds .Kind) ($is_noindex_true) }} {{ end }} {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} {{ partial "meta/ogimage-maybe.html" . }} {{ partial "meta/telegram-channel-maybe.html" . }} {{ if eq .Kind "home" }} {{ partial "meta/verifications.html" . }} {{ end }} {{ partial "meta/http-referrer.html" . }} {{ $import := resources.Get "/js/vendor/fetch-inject.min.js" }} {{ $baseof := resources.Get "/js/baseof.js" | resources.ExecuteAsTemplate "baseof.js" . }} {{ partial "head/modules.html" . }} {{ with .OutputFormats.Get "rss" }} {{ printf "" .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end }} {{ if (isset .Params "prev") }} {{ end }} {{ if (isset .Params "next") }} {{ end }} {{ partial "head/favicon.html" . }} {{ partial "global-styles.html" . }} {{ $highlights := findRE "class\\s*?=\\s*?\".*?\\bhighlight\\b.*?\"|class\\s*?=\\s*?highlight\\b" .Content }} {{ if ge (len $highlights) 1 }} {{ end }} {{ $hackcss_disabled := .Site.Params.hackcss.disabled | default false }} {{ $hackcss_mode := .Site.Params.hackcss.mode | default "hack" }} {{ $hackcss_palette := .Site.Params.hackcss.palette | default "dark" }}
{{ block "header" . }}{{ end }}
{{ block "main" . }}{{ end }}
{{ $defaults := .Site.Params.defaults.modules }} {{ $modules := .Site.Params.modules }} {{ if (or $modules $defaults) }} {{ with (default $defaults.toxic_swamp $modules.toxic_swamp) }} {{ partial "modules/toxic-swamp/toolbar.html" dict }} {{ end }} {{ end }}