Compare commits
No commits in common. "8f593203b597eb5f892b1bb0853fc14b9011e4f6" and "aee1770a0112066acd863224096d79303fe4a243" have entirely different histories.
8f593203b5
...
aee1770a01
5 changed files with 44 additions and 65 deletions
|
@ -4,5 +4,4 @@ date: 2024-02-13
|
||||||
layout: locations
|
layout: locations
|
||||||
---
|
---
|
||||||
|
|
||||||
This page shows a geospatial visualisation of where the various things recorded
|
Test
|
||||||
on this site took place.
|
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- range $k, $v := .items -}}
|
{{- range $k, $v := .items -}}
|
||||||
{{- if not ( isset $v "redact" ) -}}
|
|
||||||
<li itemscope itemtype="https://schema.org/Place">
|
<li itemscope itemtype="https://schema.org/Place">
|
||||||
{{- $k -}}
|
{{- $k -}}
|
||||||
{{- if ( not ( isset $v "lat" ) ) -}}
|
{{- if ( not ( isset $v "lat" ) ) -}}
|
||||||
|
@ -49,7 +48,6 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</li>
|
</li>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{- if ( eq $listType "unordered" ) -}}
|
{{- if ( eq $listType "unordered" ) -}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -16,17 +16,14 @@
|
||||||
@params titleSeriesLang Language code of a foreign-language work series' title. Optional.
|
@params titleSeriesLang Language code of a foreign-language work series' title. Optional.
|
||||||
@params titleSeriesTr English translation of a foreign-language work series' title. Optional.
|
@params titleSeriesTr English translation of a foreign-language work series' title. Optional.
|
||||||
@params numberSeries The number or code of the quoted work within its series. Optional.
|
@params numberSeries The number or code of the quoted work within its series. Optional.
|
||||||
*/
|
*/ -}}
|
||||||
-}}
|
|
||||||
|
|
||||||
{{- $valid_styles := slice "" "epigram" "script" -}}
|
{{- $valid_styles := slice "" "epigram" "script" -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Variable assignment -->
|
<!-- Variable assignment -->
|
||||||
|
|
||||||
{{- $style := default "" ( index .Params "style" ) -}}
|
{{- $style := default "" ( index .Params "style" ) -}}
|
||||||
{{- $cite := default "" ( index .Params "cite" ) -}}
|
{{- $cite := default "" ( index .Params "cite" ) -}}
|
||||||
{{- $href := default "" ( index .Params "href" ) -}}
|
|
||||||
{{- $ibid := default false ( index .Params "ibid" ) -}}
|
{{- $ibid := default false ( index .Params "ibid" ) -}}
|
||||||
{{- $source := .Params.source -}}
|
{{- $source := .Params.source -}}
|
||||||
|
|
||||||
|
@ -35,7 +32,6 @@
|
||||||
{{- $hasCitedWork := ( isset .Params "title" ) }}
|
{{- $hasCitedWork := ( isset .Params "title" ) }}
|
||||||
{{- $hasCitedSeries := ( isset .Params "titleSeries" ) -}}
|
{{- $hasCitedSeries := ( isset .Params "titleSeries" ) -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Validation -->
|
<!-- Validation -->
|
||||||
|
|
||||||
{{- if ( not ( in $valid_styles $style ) ) -}}
|
{{- if ( not ( in $valid_styles $style ) ) -}}
|
||||||
|
@ -50,47 +46,33 @@
|
||||||
{{- erroridf "missing-cite" "No cite found for blockquote (%q)" .Page.File.Path -}}
|
{{- erroridf "missing-cite" "No cite found for blockquote (%q)" .Page.File.Path -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
<!-- Rendering -->
|
<!-- Rendering -->
|
||||||
|
|
||||||
<figure
|
<figure
|
||||||
class="figure--blockquote blockquote{{- with $style }} blockquote--{{- . -}}{{- end -}}"
|
class="figure--blockquote blockquote{{- with $style }} blockquote--{{- . -}}{{- end -}}"
|
||||||
itemscope
|
itemscope
|
||||||
itemtype="Quotation"
|
itemtype="Quotation"
|
||||||
role="group"
|
role="group">
|
||||||
>
|
|
||||||
<blockquote
|
<blockquote
|
||||||
class="blockquote__body"
|
class="blockquote__body"
|
||||||
{{- with $cite }}cite="{{ . }}"{{- end -}}
|
{{- with $cite }} cite="{{ . }}"{{- end -}}>
|
||||||
>
|
|
||||||
{{- .Inner | .Page.RenderString -}}
|
{{- .Inner | .Page.RenderString -}}
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<figcaption class="blockquote__caption{{- if $isSourceHidden }} blockquote__caption--hidden{{- end -}}">
|
<figcaption class="blockquote__caption{{- if $isSourceHidden }} blockquote__caption--hidden{{- end -}}">
|
||||||
{{- if $ibid -}}
|
{{- if $ibid -}}
|
||||||
<abbr
|
<abbr lang="la" title="ibīdem [in the same place]">Ibid.</abbr>
|
||||||
lang="la"
|
|
||||||
title="ibīdem [in the same place]"
|
|
||||||
>Ibid.</abbr
|
|
||||||
>
|
|
||||||
{{- else if $source -}}
|
{{- else if $source -}}
|
||||||
<span temprop="spokenByCharacter">{{- $source | safeHTML -}}</span>
|
<span temprop="spokenByCharacter">{{- $source | safeHTML -}}</span>
|
||||||
{{- if $hasCitedWork -}}
|
{{- if $hasCitedWork -}}, <span itemprop="isBasedOn">{{- partial "cite.html" . -}}
|
||||||
,
|
{{- if $hasCitedSeries }} (
|
||||||
<span itemprop="isBasedOn"
|
|
||||||
>{{- partial "cite.html" . -}}
|
|
||||||
{{- if $hasCitedSeries }}
|
|
||||||
(
|
|
||||||
{{- .Scratch.Set "cite" .Params.citeSeries -}}
|
{{- .Scratch.Set "cite" .Params.citeSeries -}}
|
||||||
{{- .Scratch.Set "title" .Params.titleSeries -}}
|
{{- .Scratch.Set "title" .Params.titleSeries -}}
|
||||||
{{- .Scratch.Set "titleLang" .Params.titleSeriesLang -}}
|
{{- .Scratch.Set "titleLang" .Params.titleSeriesLang -}}
|
||||||
{{- .Scratch.Set "titleTr" .Params.titleSeriesTr -}}
|
{{- .Scratch.Set "titleTr" .Params.titleSeriesTr -}}
|
||||||
{{- .Scratch.Set "schemaType" .Params.schemaTypeSeries -}}
|
{{- .Scratch.Set "schemaType" .Params.schemaTypeSeries -}}
|
||||||
{{- .Scratch.Set "href" .Params.hrefSeries -}}
|
|
||||||
{{- partial "cite.html" . -}}
|
{{- partial "cite.html" . -}}
|
||||||
{{- with .Params.numberSeries }}, {{ . | safeHTML -}}{{- end -}}
|
{{- with .Params.numberSeries }}, {{ . | safeHTML -}}{{- end -}}
|
||||||
)
|
){{- end -}}</span>
|
||||||
{{- end -}}</span
|
|
||||||
>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</figcaption>
|
</figcaption>
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
{{- if or ( .Get "caption" ) ( .Get "title" ) -}}
|
{{- if or ( .Get "caption" ) ( .Get "title" ) -}}
|
||||||
<figcaption class="figure__caption{{ if not ( or ( .Get "caption" ) ( .Get "title" ) ) }}figure__caption--no-height{{ end }}">
|
<figcaption class="figure__caption{{ if not ( or ( .Get "caption" ) ( .Get "title" ) ) }}figure__caption--no-height{{ end }}">
|
||||||
{{- with .Get "title" -}}<h4 class="figcaption__title">{{ . | markdownify | safeHTML }}</h4>{{- end -}}
|
{{- with .Get "title" -}}<h4 class="figcaption__title">{{ . | markdownify | safeHTML }}</h4>{{- end -}}
|
||||||
{{- with .Get "caption" -}}<p class="figcaption__caption">{{ . | $.Page.RenderString }}</p>{{- end -}}
|
{{- with .Get "caption" -}}<p class="figcaption__caption">{{ . | markdownify | safeHTML }}</p>{{- end -}}
|
||||||
</figcaption>
|
</figcaption>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</figure>
|
</figure>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue