Omphaloskepsis-2/layouts/baseof.single.html

139 lines
4 KiB
HTML
Raw Permalink Normal View History

2025-06-06 17:01:20 +02:00
<!DOCTYPE html>
{{ partialCached "copying.html" . }}
<html
class="h-card"
lang="en-gb"
itemscope
itemtype="https://schema.org/Blog"
>
<head>
<!-- Meta -->
{{- partialCached "head/meta.html" . -}}
<meta
name="description"
content="{{- block "head-description" . -}}{{- .Summary | plainify -}}{{- end -}}"
/>
{{- block "title" . -}}
{{- partialCached "head/title.html" ( slice ( .Page.Title | plainify ) .Site.Title ) .Site.Title .Page.Title -}}
{{- end -}}
<!-- References -->
{{- partialCached "head/references.html" ( dict "sc" $ "pc" . ) -}}
<link
rel="canonical"
href="{{- .Permalink -}}"
/>
{{- with .OutputFormats.Get "rss" -}}
<link
rel="{{ .Rel }}"
type="{{ .MediaType.Type | html }}"
href="{{ .RelPermalink }}"
title="{{ $.Site.Title | safeHTML }}"
/>
{{- end -}}
<!-- Stylesheets -->
{{- partialCached "head/stylesheets.html" . -}}
<!-- Optional Includes -->
{{- if .Param "math" -}}
{{- partialCached "head/math.html" . -}}
{{- end -}}
{{- block "header-scripts" . -}}
{{ with .Params.locations }}
<script
id="Map-script"
src="/js/leaflet/leaflet.js"
></script>
{{ end }}
{{- end -}}
{{- block "header-styles" . -}}
{{ with .Params.styles }}
<link
rel="stylesheet"
type="text/css"
href="{{- ( $.Page.Resources.GetMatch "style" ).RelPermalink -}}"
/>
{{ end }}
{{ with .Params.locations }}
<link
rel="stylesheet"
href="/css/leaflet/leaflet.css"
/>
{{ end }}
{{- end -}}
</head>
<body class="site-container site-container {{ block "main-class" . }}layouts-default-baseof layouts-default-baseof-single{{ end }}">
{{- block "header" . -}}
{{- partialCached "header/site-header.html" . -}}
{{- end -}}
<article
class="{{ block "article-class" . }}h-entry{{ end }}site-content site-content{{ block "main-class" . }}{{ end }}"
itemscope
itemtype="https://schema.org/BlogPosting"
>
{{ block "main-header" . }}
{{- partial "single/main-header.html" ( dict "pc" . "sc" $ ) -}}
{{ end }}
{{ block "main-body" . }}
<section class="site-content__body">
{{- with .Summary -}}
<section
class="article-body__summary"
itemprop="abstract"
>
<h2>Summary</h2>
<p class="p-summary">{{- . -}}</p>
</section>
{{ end }}
{{- if ( or .Params.internal_links .Params.external_links ) -}}
{{- partial "single/main-body/links.html" ( dict "pc" . "sc" $ ) -}}
{{- end -}}
{{- partial "single/main-body/content.html" ( dict "pc" . "sc" $ ) -}}
{{ block "main-body-additional" . }}<!-- -->{{ end }}
</section>
{{- with .Page.Resources.Get "comments.md" -}}
{{- partial "single/main-body/comments.html" ( dict "pc" . "sc" $ ) -}}
{{- end -}}
{{ end }}
{{ block "main-footer" . }}
{{- partial "single/post-meta.html" ( dict "pc" . "sc" $ ) -}}
{{ end }}
</article>
{{- block "footer" . -}}
<footer class="site-footer">
{{-
partialCached
"footer/text.html"
( dict
"author_name" .Site.Params.Author.name
"report_issue_url" ( printf "%s%s" .Site.Params.codeURL .Site.Params.reportIssueURL )
"privacy_policy_url" ( relref . "privacy-policy" )
"sitemap_path" ( printf "/%s" .Sitemap.Filename )
"last_build_time" ( now.Format "2006-01-02T15:04:05" )
)
-}}
{{ block "footer-scripts" . }}
{{- partialCached "single/footer-scripts.html" ( dict "pc" . "sc" $ ) . -}}
{{ end }}
</footer>
{{- end -}}
</body>
</html>