Omphaloskepsis-2/layouts/_default/single.html

55 lines
1.4 KiB
HTML
Raw Normal View History

2025-06-04 17:44:11 +02:00
{{ define "title" }}
{{- partialCached "head/title.html" ( slice ( .Page.Title | plainify ) .Site.Title ) .Site.Title .Page.Title -}}
{{ end }}
2022-11-10 22:48:02 -07:00
{{ define "head-description" }}{{ .Summary | plainify }}{{ end }}
2023-08-07 18:23:46 -04:00
{{ define "main-class" }}--single layouts-default-single{{ end }}
{{ define "header-scripts" }}
{{ with .Params.locations }}
<script
id="Map-script"
src="/js/leaflet/leaflet.js"
></script>
2023-08-07 18:23:46 -04:00
{{ end }}
{{ end }}
{{ define "header-styles" }}
{{ with .Params.styles }}
<link
rel="stylesheet"
type="text/css"
href="{{ ( $.Page.Resources.GetMatch "style").RelPermalink }}"
/>
2023-08-07 18:23:46 -04:00
{{ end }}
{{ with .Params.locations }}
<link
rel="stylesheet"
href="/css/leaflet/leaflet.css"
/>
2023-08-07 18:23:46 -04:00
{{ end }}
{{ end }}
2022-11-10 22:48:02 -07:00
{{ define "footer-scripts" }}
2025-06-04 17:54:51 +02:00
{{- partialCached "single/footer-scripts.html" ( dict "pc" . "sc" $ ) . }}
2022-11-10 22:48:02 -07:00
{{ end }}
{{ define "main-header" }}
{{ partial "single/main-header.html" ( dict "pc" . "sc" $ ) }}
2022-11-10 22:48:02 -07:00
{{ end }}
{{ define "main-body" }}
2023-06-30 21:16:59 -06:00
<section class="site-content__body">
{{- if ( or .Params.internal_links .Params.external_links ) -}}
2025-05-08 13:48:23 +02:00
{{- partial "single/main-body/links.html" ( dict "pc" . "sc" $ ) -}}
2023-06-30 21:16:59 -06:00
{{- end -}}
2025-05-08 13:48:23 +02:00
{{- partial "single/main-body/content.html" ( dict "pc" . "sc" $ ) -}}
2023-06-30 21:16:59 -06:00
</section>
2022-11-10 22:48:02 -07:00
{{ end }}
{{ define "main-footer" }}
{{ partial "single/post-meta.html" ( dict "pc" . "sc" $ ) }}
2022-11-10 22:48:02 -07:00
{{ end }}