74 lines
2 KiB
HTML
74 lines
2 KiB
HTML
{{ define "title" }}
|
|
{{- partialCached "head/title.html" ( slice ( printf "“%s”" ( .Page.Title | plainify ) ) .Site.Title ) .Site.Title .Page.Title -}}
|
|
{{ end }}
|
|
|
|
{{ define "main-class" }}--single layouts-blog-single{{ end }}
|
|
|
|
{{ define "header-scripts" }}
|
|
{{ with .Params.locations }}
|
|
<script
|
|
id="Map-script"
|
|
src="/js/leaflet/leaflet.js"
|
|
></script>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "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 }}
|
|
|
|
{{ define "footer-scripts" }}
|
|
{{- partialCached "single/footer-scripts.html" ( dict "pc" . "sc" $ ) . -}}
|
|
{{ end }}
|
|
|
|
{{ define "main-header" }}
|
|
{{- partial "single/main-header.html" ( dict "pc" . "sc" $ ) -}}
|
|
{{ end }}
|
|
|
|
{{ define "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" $ ) -}}
|
|
|
|
{{ if fileExists ( path.Join $.Page.File.Dir "appendices.md" ) }}
|
|
{{- partial "single/main-body/appendices.html" ( dict "pc" . "sc" $ ) -}}
|
|
{{ end }}
|
|
|
|
{{ if fileExists ( path.Join $.Page.File.Dir "corrigendum.md" ) }}
|
|
{{- partial "single/main-body/appendices.html" ( dict "pc" . "sc" $ ) -}}
|
|
{{ end }}
|
|
</section>
|
|
|
|
{{ with .Page.Resources.Get "comments.md" }}
|
|
{{- partial "single/main-body/comments.html" ( dict "pc" . "sc" $ ) -}}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "main-footer" }}
|
|
{{ partial "single/post-meta.html" ( dict "pc" . "sc" $ ) }}
|
|
{{ end }}
|