Compare commits
7 commits
e6889cabba
...
dae35f0e05
Author | SHA1 | Date | |
---|---|---|---|
dae35f0e05 | |||
397774be5b | |||
a599cb5ebc | |||
312c4ed725 | |||
16e7d6ef83 | |||
d70d779f32 | |||
7dbc83d190 |
11 changed files with 156 additions and 94 deletions
|
@ -44,7 +44,7 @@ html {
|
||||||
color: $dark;
|
color: $dark;
|
||||||
background-color: $light;
|
background-color: $light;
|
||||||
font-family: $default-font;
|
font-family: $default-font;
|
||||||
font-variant-numeric: 'oldstyle-nums slashed-zero';
|
font-variant-numeric: oldstyle-nums slashed-zero;
|
||||||
writing-mode: horizontal-tb;
|
writing-mode: horizontal-tb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,7 +305,9 @@ kbd {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
background-color: #f7f7f7;
|
background-color: #f7f7f7;
|
||||||
color: #333;
|
color: #333;
|
||||||
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px white inset;
|
box-shadow:
|
||||||
|
0 1px 0 rgba(0, 0, 0, 0.2),
|
||||||
|
0 0 0 2px white inset;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-block: 0;
|
margin-block: 0;
|
||||||
|
@ -350,3 +352,8 @@ kbd {
|
||||||
dfn {
|
dfn {
|
||||||
font-variant: small-caps;
|
font-variant: small-caps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub,
|
||||||
|
sup {
|
||||||
|
line-height: 0;
|
||||||
|
}
|
||||||
|
|
|
@ -1,20 +1,17 @@
|
||||||
.chart-container {
|
.chart-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-inline: auto;
|
inline-size: 100%;
|
||||||
block-size: 100vh;
|
min-block-size: 50vh;
|
||||||
inline-size: 95vw;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
@media (orientation: landscape) {
|
@media (orientation: landscape) {
|
||||||
block-size: 75vh;
|
block-size: 75vh;
|
||||||
inline-size: 95vw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@include mq("large") {
|
@include mq("large") {
|
||||||
block-size: auto;
|
block-size: auto;
|
||||||
max-block-size: 80vh;
|
max-block-size: 80vh;
|
||||||
inline-size: 50vw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& + .chart-container {
|
& + .chart-container {
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
inline-size: fit-content;
|
inline-size: fit-content;
|
||||||
margin: 16px auto;
|
margin: 16px auto;
|
||||||
|
|
||||||
|
&--chart {
|
||||||
|
margin: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
&__caption {
|
&__caption {
|
||||||
block-size: auto;
|
block-size: auto;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
display: grid;
|
display: grid;
|
||||||
column-gap: 2em;
|
column-gap: 2em;
|
||||||
grid-template-columns: 0.4fr 0.6fr;
|
grid-template-columns: 0.4fr 0.6fr;
|
||||||
grid-template-rows: auto auto auto auto 60px;
|
|
||||||
|
|
||||||
@include mq("large") {
|
@include mq("large") {
|
||||||
grid-template-rows: auto auto auto auto;
|
grid-template-rows: auto auto auto auto;
|
||||||
|
@ -15,6 +14,7 @@
|
||||||
grid-column-end: 3;
|
grid-column-end: 3;
|
||||||
background-color: $light;
|
background-color: $light;
|
||||||
filter: brightness(80%);
|
filter: brightness(80%);
|
||||||
|
padding-block-start: 2em;
|
||||||
|
|
||||||
@include mq("large") {
|
@include mq("large") {
|
||||||
border: 2px solid $dark;
|
border: 2px solid $dark;
|
||||||
|
@ -52,10 +52,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__featured-image {
|
&__featured-image {
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 15% 1fr 15%;
|
|
||||||
grid-template-rows: 20% 1fr 20%;
|
|
||||||
grid-template-areas: ". . ." ". post-header-details ." ". . .";
|
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
@ -63,18 +59,21 @@
|
||||||
min-block-size: 380px;
|
min-block-size: 380px;
|
||||||
inline-size: 100%;
|
inline-size: 100%;
|
||||||
border: 2px solid $dark;
|
border: 2px solid $dark;
|
||||||
|
align-content: center;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
& .attr {
|
& .attr {
|
||||||
|
position: absolute;
|
||||||
background-color: $dark;
|
background-color: $dark;
|
||||||
font-size: 0.7em;
|
font-size: 0.7em;
|
||||||
color: $light;
|
color: $light;
|
||||||
inline-size: fit-content;
|
inline-size: fit-content;
|
||||||
position: fixed;
|
|
||||||
padding-block: 0.2em;
|
padding-block: 0.2em;
|
||||||
padding-inline: 0.5em;
|
padding-inline: 0.5em;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
margin-block: 0;
|
margin-block: 0;
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
|
top: 0;
|
||||||
|
|
||||||
& a {
|
& a {
|
||||||
color: $light;
|
color: $light;
|
||||||
|
@ -94,17 +93,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__title-wrapper {
|
&__title-wrapper {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-area: post-header-details;
|
flex-direction: column;
|
||||||
background-color: $dark;
|
background-color: $dark;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
grid-template-columns: 1fr;
|
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
grid-template-rows: 1fr auto auto 1fr;
|
margin: auto;
|
||||||
justify-items: center;
|
width: 80%;
|
||||||
align-items: center;
|
margin-block: auto;
|
||||||
grid-template-areas: "." "post-title" "post-subtitle" ".";
|
|
||||||
|
|
||||||
&--no-title {
|
&--no-title {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
@ -116,17 +113,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
& .article-header__title {
|
& .article-header__title {
|
||||||
grid-area: post-title;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
&--long {
|
&--long {
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& .article-header__subtitle {
|
|
||||||
grid-area: post-subtitle;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__word-count,
|
&__word-count,
|
||||||
|
|
|
@ -1,45 +1,53 @@
|
||||||
{{ define "title" }}
|
{{ define "title" }}
|
||||||
Locations | {{ .Site.Title }}
|
Locations |
|
||||||
|
{{ .Site.Title }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main-class" }}--section location-map{{ end }}
|
{{ define "main-class" }}--section location-map{{ end }}
|
||||||
|
|
||||||
{{ define "header-scripts" }}
|
{{ define "header-scripts" }}
|
||||||
<!-- Leaflet -->
|
<!-- Leaflet -->
|
||||||
<link rel="stylesheet" href="/css/leaflet/leaflet.css" />
|
<link
|
||||||
<link rel="stylesheet" href="/js/leaflet-fullscreen/leaflet.fullscreen.css" />
|
rel="stylesheet"
|
||||||
|
href="/css/leaflet/leaflet.css"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="/js/leaflet-fullscreen/leaflet.fullscreen.css"
|
||||||
|
/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "footer-scripts" }}
|
{{ define "footer-scripts" }}
|
||||||
<!-- Leaflet -->
|
<!-- Leaflet -->
|
||||||
<script src="/js/leaflet/leaflet.js"></script>
|
<script src="/js/leaflet/leaflet.js"></script>
|
||||||
|
|
||||||
<!-- Leaflet Heat -->
|
<!-- Leaflet Heat -->
|
||||||
<script src="/js/leaflet-heat/leaflet-heat.js"></script>
|
<script src="/js/leaflet-heat/leaflet-heat.js"></script>
|
||||||
|
|
||||||
<!-- Leaflet Fullscreen -->
|
<!-- Leaflet Fullscreen -->
|
||||||
<script src="/js/leaflet-fullscreen/leaflet.fullscreen.min.js"></script>
|
<script src="/js/leaflet-fullscreen/leaflet.fullscreen.min.js"></script>
|
||||||
|
|
||||||
<script>
|
{{- partial "cv/locations/heatmap.js" ( dict "all_pages" $.Site.AllPages "locations" $.Site.Data.locations ) -}}
|
||||||
{{- partial "cv/locations/heatmap.js" ( dict "all_pages" $.Site.AllPages ) -}}
|
|
||||||
</script>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main-header" }}
|
{{ define "main-header" }}
|
||||||
<header class="site-content__header">
|
<header class="site-content__header">
|
||||||
<h1 class="page-title">{{ .Title | safeHTML }}.</h1>
|
<h1 class="page-title">{{ .Title | safeHTML }}.</h1>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main-body" }}
|
{{ define "main-body" }}
|
||||||
<article class="site-content__body site-content__body--chart">
|
<article class="site-content__body site-content__body--chart">
|
||||||
<div id="map" style="width: 100%; height: 500px; margin: 0; display: block;"></div>
|
<div
|
||||||
|
id="map"
|
||||||
|
style="width: 100%; height: 500px; margin: 0; display: block;"
|
||||||
|
></div>
|
||||||
|
|
||||||
{{- with ( partial "util/render_recursive_list.html" ( dict "sc" $ "pc" . "items" $.Site.Data.locations "schemaType" "Place" ) ) -}}
|
{{- with ( partial "util/render_recursive_list.html" ( dict "sc" $ "pc" . "items" $.Site.Data.locations "schemaType" "Place" ) ) -}}
|
||||||
<section style="grid-area: section-content">
|
<section style="grid-area: section-content">
|
||||||
{{- . -}}
|
{{- . -}}
|
||||||
</section>
|
</section>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
|
|
||||||
<!-- Optional parameter overrides (for nested citations) -->
|
<!-- Optional parameter overrides (for nested citations) -->
|
||||||
|
|
||||||
{{- $cite := default .Params.cite ( .Scratch.Get "cite" ) -}}
|
{{- $cite := trim ( default .Params.cite ( .Scratch.Get "cite" ) | .Page.RenderString ) "\r\n" -}}
|
||||||
{{- $title := default .Params.title ( .Scratch.Get "title" ) -}}
|
{{- $title := trim ( default .Params.title ( .Scratch.Get "title" ) | .Page.RenderString ) "\r\n" -}}
|
||||||
{{- $titleLang := default .Params.titleLang ( .Scratch.Get "titleLang" ) -}}
|
{{- $titleLang := default .Params.titleLang ( .Scratch.Get "titleLang" ) -}}
|
||||||
{{- $titleTr := default .Params.titleTr ( .Scratch.Get "titleTr" ) -}}
|
{{- $titleTr := default .Params.titleTr ( .Scratch.Get "titleTr" ) -}}
|
||||||
{{- $schemaType := default .Params.schemaType ( .Scratch.Get "schemaType" ) -}}
|
{{- $schemaType := default .Params.schemaType ( .Scratch.Get "schemaType" ) -}}
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
{{- $itemType := default "CreativeWork" $schemaType -}}
|
{{- $itemType := default "CreativeWork" $schemaType -}}
|
||||||
{{- if ( or ( in $.Site.Data.itemtypes $itemType ) ( eq .Params.suppress "true" ) ) -}}
|
{{- if ( or ( in $.Site.Data.itemtypes $itemType ) ( eq .Params.suppress "true" ) ) -}}
|
||||||
{{- with .Params.href -}}
|
{{- with .Params.href -}}
|
||||||
<a href="{{ if eq . "asCite" }}{{ $cite }}{{ else }}{{ . }}{{ end }}">
|
<a href="{{- if eq . "asCite" -}}{{- $cite -}}{{- else -}}{{- . -}}{{- end -}}">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<cite
|
<cite
|
||||||
class="cite{{ with .Params.citeStyle }} cite--{{ . }}{{ end }}"
|
class="cite{{ with .Params.citeStyle }} cite--{{ . }}{{ end }}"
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
title="{{- $titleTr -}}"
|
title="{{- $titleTr -}}"
|
||||||
{{- end -}}>
|
{{- end -}}>
|
||||||
{{- with $cite -}}
|
{{- with $cite -}}
|
||||||
<meta itemprop="url" content="{{ . }}">
|
<meta itemprop="url" content="{{- . -}}">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<span itemprop="name">
|
<span itemprop="name">
|
||||||
{{- if $titleLang -}}
|
{{- if $titleLang -}}
|
||||||
|
|
|
@ -1,47 +1,50 @@
|
||||||
/*
|
{{/*
|
||||||
Recursively render an ordered or unordered list from a set of arbitrarily-
|
Recursively render an ordered or unordered list from a set of arbitrarily-
|
||||||
deeply-nested items.
|
deeply-nested items.
|
||||||
|
|
||||||
@params all_pages All site pages
|
@params all_pages All site pages
|
||||||
*/
|
@params locations All locations
|
||||||
|
|
||||||
var map = L.map('map', {
|
|
||||||
fullscreenControl: true
|
|
||||||
}).setView([55, -3], 3);
|
|
||||||
|
|
||||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
||||||
maxZoom: 19,
|
|
||||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
||||||
}).addTo(map);
|
|
||||||
|
|
||||||
{{- $locations := partialCached "util/get_location_leaf_nodes.html" $.Site.Data.locations -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
{{- range .Site.AllPages -}}
|
|
||||||
{{- with .Params.locations -}}
|
|
||||||
{{- range . -}}
|
|
||||||
{{- with ( index $locations ( replaceRE `, [A-Z]+` "" . ) ) -}}
|
|
||||||
L.marker([{{ .lat }}, {{ .lon }}]).addTo(map);
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
L.heatLayer(
|
<script>
|
||||||
[
|
var map = L.map('map', {
|
||||||
{{- range .all_pages -}}
|
fullscreenControl: true
|
||||||
|
}).setView([55, -3], 3);
|
||||||
|
|
||||||
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||||
|
maxZoom: 19,
|
||||||
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
||||||
|
}).addTo(map);
|
||||||
|
|
||||||
|
{{- $locations := partialCached "util/get_location_leaf_nodes.html" .locations -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
{{- range .Site.AllPages -}}
|
||||||
{{- with .Params.locations -}}
|
{{- with .Params.locations -}}
|
||||||
{{- range . -}}
|
{{- range . -}}
|
||||||
{{- with ( index $locations ( replaceRE `, [A-Z]+` "" . ) ) -}}
|
{{- with ( index $locations ( replaceRE `, [A-Z]+` "" . ) ) -}}
|
||||||
[ {{ .lat }}, {{ .lon }} ],
|
L.marker([{{ .lat }}, {{ .lon }}]).addTo(map);
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
],
|
*/}}
|
||||||
{
|
|
||||||
minOpacity: 0.5,
|
L.heatLayer(
|
||||||
gradient: {0.1: 'blue', 0.3: 'lime', 0.8: 'orange', 1: 'red'}
|
[
|
||||||
}
|
{{- range .all_pages -}}
|
||||||
).addTo(map);
|
{{- with .Params.locations -}}
|
||||||
|
{{- range . -}}
|
||||||
|
{{- with ( index $locations ( replaceRE `, [A-Z]+` "" . ) ) -}}
|
||||||
|
[ {{ .lat }}, {{ .lon }} ],
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
],
|
||||||
|
{
|
||||||
|
minOpacity: 0.5,
|
||||||
|
gradient: {0.1: 'blue', 0.3: 'lime', 0.8: 'orange', 1: 'red'}
|
||||||
|
}
|
||||||
|
).addTo(map);
|
||||||
|
</script>
|
||||||
|
|
|
@ -1,12 +1,62 @@
|
||||||
<header class="site-header h-card">
|
<header class="site-header h-card">
|
||||||
{{ block "header" . }}
|
{{ block "header" . }}
|
||||||
<h2 class="p-name site-header__title" itemprop="name"><a class="u-url" href="{{ .Site.Home.RelPermalink }}" rel="me author">{{ .Site.Title }}</a></h2>
|
<h2
|
||||||
<p class="p-note site-header__tagline" itemprop="about">Views my own. Discussion ≠ endorsement. Do try this at home.</p>
|
class="p-name site-header__title"
|
||||||
<p class="site-header__icons">~ <a class="u-email" href="mailto:{{ $.Site.Params.Author.email }}" rel="me">✉️</a> ~ <a class="u-url" href="{{ .Site.Params.codeURL }}" rel="me">🧑💻</a> ~ <a class="u-key" href="/{{ .Site.Params.keyfile }}" rel="me">🔐</a> ~ <a href="/index.xml" aria-label="{{ .Site.Title }} RSS feed"><img class="feed-icon" alt="RSS feed" src="{{ .Site.Params.feedIcon }}"></a> ~</p>
|
itemprop="name"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
class="u-url"
|
||||||
|
href="{{ .Site.Home.RelPermalink }}"
|
||||||
|
rel="me author"
|
||||||
|
>{{ .Site.Title }}</a
|
||||||
|
>
|
||||||
|
</h2>
|
||||||
|
<p
|
||||||
|
class="p-note site-header__tagline"
|
||||||
|
itemprop="about"
|
||||||
|
>
|
||||||
|
Views my own. Discussion ≠ endorsement. Do try this at home.
|
||||||
|
</p>
|
||||||
|
<p class="site-header__icons">
|
||||||
|
~
|
||||||
|
<a
|
||||||
|
class="u-email"
|
||||||
|
aria-label="Email"
|
||||||
|
href="mailto:{{ $.Site.Params.Author.email }}"
|
||||||
|
rel="me"
|
||||||
|
>✉️</a
|
||||||
|
>
|
||||||
|
~
|
||||||
|
<a
|
||||||
|
class="u-url"
|
||||||
|
aria-label="Code Forge"
|
||||||
|
href="{{ .Site.Params.codeURL }}"
|
||||||
|
rel="me"
|
||||||
|
>🧑💻</a
|
||||||
|
>
|
||||||
|
~
|
||||||
|
<a
|
||||||
|
class="u-key"
|
||||||
|
aria-label="PGP key"
|
||||||
|
href="/{{ .Site.Params.keyfile }}"
|
||||||
|
rel="me"
|
||||||
|
>🔐</a
|
||||||
|
>
|
||||||
|
~
|
||||||
|
<a
|
||||||
|
href="/index.xml"
|
||||||
|
aria-label="{{ .Site.Title }} RSS feed"
|
||||||
|
><img
|
||||||
|
class="feed-icon"
|
||||||
|
alt="RSS feed"
|
||||||
|
src="{{ .Site.Params.feedIcon }}"
|
||||||
|
/></a>
|
||||||
|
~
|
||||||
|
</p>
|
||||||
<nav class="site-header__nav">
|
<nav class="site-header__nav">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range ( where .Site.Sections.ByTitle "Type" "in" site.Params.mainSections ) }}
|
{{ range ( where .Site.Sections.ByTitle "Type" "in" site.Params.mainSections ) }}
|
||||||
<li><a href="{{ .RelPermalink }}">{{ .Title | safeHTML }}</a></li>
|
<li><a href="{{ .RelPermalink }}">{{ .Title | safeHTML }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
|
|
||||||
<!-- Rendering -->
|
<!-- Rendering -->
|
||||||
|
|
||||||
{{- $isResizable := in ( slice "avif" "svg" "gif" ) .MediaType.SubType -}}
|
{{- $isResizable := not ( in ( slice "avif" "svg" "gif" ) .img.MediaType.SubType ) -}}
|
||||||
{{- if $isResizable -}}
|
{{- if $isResizable -}}
|
||||||
{{- with .Resize "1200x webp" -}}
|
{{- with .img.Resize "1200x webp" -}}
|
||||||
{{- .RelPermalink -}}
|
{{- .RelPermalink -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<div class="article-header__featured-image"
|
<div class="article-header__featured-image"
|
||||||
{{ with .pc.Params.featured_image }}
|
{{ with .pc.Params.featured_image }}
|
||||||
{{ with ( $.pc.Resources.GetMatch . ) }}
|
{{ with ( $.pc.Resources.GetMatch . ) }}
|
||||||
style="background-image: url({{ partialCached "images/get-image.html" ( dict "img" . ) . }})"
|
style="background-image: url({{ partialCached "images/get-image.html" ( dict "img" . ) $.pc }})"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
style="background-image: url({{ . }})"
|
style="background-image: url({{ . }})"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue