Update theme
This commit is contained in:
parent
9e8626d8ba
commit
eaf2377efb
3 changed files with 1139 additions and 91 deletions
File diff suppressed because it is too large
Load diff
|
@ -16,14 +16,14 @@ function drawChart() {
|
||||||
"Web Developer",
|
"Web Developer",
|
||||||
"#BCBC7E",
|
"#BCBC7E",
|
||||||
new Date("2022-10-26"),
|
new Date("2022-10-26"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Chartered Institute for Information Security",
|
"Chartered Institute for Information Security",
|
||||||
"Associate Member",
|
"Associate Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-08-09"),
|
new Date("2022-08-09"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"West Lancs Scouts Active Support",
|
"West Lancs Scouts Active Support",
|
||||||
|
@ -37,112 +37,112 @@ function drawChart() {
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Computer Arts Society",
|
"Computer Arts Society",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Computer Conservation Society",
|
"Computer Conservation Society",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Consultancy Specialist Group",
|
"Consultancy Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Enterprise Architecture Specialist Group",
|
"Enterprise Architecture Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Green IT Specialist Group",
|
"Green IT Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Health & Care Specialist Group",
|
"Health & Care Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Internet Specialist Group",
|
"Internet Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Information Risk Management and Assurance Specialist Group",
|
"Information Risk Management and Assurance Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Information Security Specialist Group",
|
"Information Security Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"IT Ethics Specialist Group",
|
"IT Ethics Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Law Specialist Group",
|
"Law Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"BCS Nottingham & Derby Branch",
|
"BCS Nottingham & Derby Branch",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Open Source Specialist Group",
|
"Open Source Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Sociotechnical Specialist Group",
|
"Sociotechnical Specialist Group",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"BCS, the Chartered Institute for IT",
|
"BCS, the Chartered Institute for IT",
|
||||||
"Professional Member",
|
"Professional Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-06-06"),
|
new Date("2022-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Chartered Institute for Information Security",
|
"Chartered Institute for Information Security",
|
||||||
|
@ -163,7 +163,7 @@ function drawChart() {
|
||||||
"Student Member",
|
"Student Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-05-26"),
|
new Date("2022-05-26"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"MORS Cyber CoP",
|
"MORS Cyber CoP",
|
||||||
|
@ -205,7 +205,7 @@ function drawChart() {
|
||||||
"Supporter",
|
"Supporter",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2022-01-14"),
|
new Date("2022-01-14"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Actica Consulting",
|
"Actica Consulting",
|
||||||
|
@ -261,14 +261,14 @@ function drawChart() {
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2021-09-24"),
|
new Date("2021-09-24"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Mountain Training Association",
|
"Mountain Training Association",
|
||||||
"Trainee Member",
|
"Trainee Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2021-08-24"),
|
new Date("2021-08-24"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"North West Area Meeting",
|
"North West Area Meeting",
|
||||||
|
@ -282,7 +282,7 @@ function drawChart() {
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2021-07-26"),
|
new Date("2021-07-26"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Lancaster Quaker Meeting",
|
"Lancaster Quaker Meeting",
|
||||||
|
@ -338,7 +338,7 @@ function drawChart() {
|
||||||
"Participant",
|
"Participant",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2021-01-23"),
|
new Date("2021-01-23"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"footnotes",
|
"footnotes",
|
||||||
|
@ -373,7 +373,7 @@ function drawChart() {
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2020-09-29"),
|
new Date("2020-09-29"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Executive Committee",
|
"Executive Committee",
|
||||||
|
@ -394,7 +394,7 @@ function drawChart() {
|
||||||
"Website Content Manager",
|
"Website Content Manager",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2020-08-31"),
|
new Date("2020-08-31"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Unity2020",
|
"Unity2020",
|
||||||
|
@ -548,14 +548,14 @@ function drawChart() {
|
||||||
"Associate Member",
|
"Associate Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2019-04-01"),
|
new Date("2019-04-01"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Youth Hostel Association",
|
"Youth Hostel Association",
|
||||||
"Company Member",
|
"Company Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2019-02-20"),
|
new Date("2019-02-20"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Friends of Lancaster Library",
|
"Friends of Lancaster Library",
|
||||||
|
@ -737,14 +737,14 @@ function drawChart() {
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2018-06-20"),
|
new Date("2018-06-20"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"UK England Chapter",
|
"UK England Chapter",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2018-06-13"),
|
new Date("2018-06-13"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Community Networks SIG",
|
"Community Networks SIG",
|
||||||
|
@ -758,14 +758,14 @@ function drawChart() {
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2018-06-06"),
|
new Date("2018-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Internet Society",
|
"Internet Society",
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2018-06-04"),
|
new Date("2018-06-04"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Mitigate Cyber",
|
"Mitigate Cyber",
|
||||||
|
@ -954,7 +954,7 @@ function drawChart() {
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2017-06-06"),
|
new Date("2017-06-06"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Lonsdale District Scout Network, Scout Network",
|
"Lonsdale District Scout Network, Scout Network",
|
||||||
|
@ -1017,7 +1017,7 @@ function drawChart() {
|
||||||
"Member",
|
"Member",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2016-12-19"),
|
new Date("2016-12-19"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Pendle College, Lancaster University Students' Union",
|
"Pendle College, Lancaster University Students' Union",
|
||||||
|
@ -1388,7 +1388,7 @@ function drawChart() {
|
||||||
"Librarian",
|
"Librarian",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2013-05-01"),
|
new Date("2013-05-01"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Patient Participation Group",
|
"Patient Participation Group",
|
||||||
|
@ -1444,7 +1444,7 @@ function drawChart() {
|
||||||
"Minister",
|
"Minister",
|
||||||
"#BBBBB0",
|
"#BBBBB0",
|
||||||
new Date("2012-01-01"),
|
new Date("2012-01-01"),
|
||||||
new Date("2023-01-29")
|
new Date("2023-02-17")
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"Salvation Army",
|
"Salvation Army",
|
||||||
|
|
|
@ -1,63 +1,96 @@
|
||||||
{{ $src := $.Page.Resources.GetMatch (.Get "src") }}
|
{{- if ( and ( .Get "src" ) ( .Get "chart-id" ) ) -}}
|
||||||
{{ $link := $.Page.Resources.GetMatch (.Get "link") }}
|
{{- errorf "Both chart ID and resource source defined" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
<figure{{ with .Get "class" }} class="{{ . }}"{{ end }}>
|
{{ $src := $.Page.Resources.GetMatch (.Get "src") }}
|
||||||
{{- if .Get "link" -}}
|
{{ $linkedResource := $.Page.Resources.GetMatch (.Get "link") }}
|
||||||
{{- if $link }}
|
|
||||||
<a href="{{ $link.RelPermalink }}"{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
|
<figure class="article__figure{{ with .Get "class" }} {{ . }}{{ end }}">
|
||||||
{{ else }}
|
{{- with .Get "chart-id" -}}
|
||||||
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
|
<canvas class="figure__chart" id="{{ . }}">
|
||||||
{{ end }}
|
You must enable Javascript to view this chart.
|
||||||
{{- end -}}
|
</canvas>
|
||||||
|
{{- else -}}
|
||||||
{{- if eq $src.ResourceType "image" -}}
|
{{- if .Get "link" -}}
|
||||||
<picture class="figure__picture">
|
{{- if $linkedResource }}
|
||||||
<img class="figure__image"
|
<a href="{{ $linkedResource.RelPermalink }}"{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
|
||||||
{{ with $src.Resize (printf "%dx%d webp" $src.Width $src.Height) }}
|
{{ else }}
|
||||||
src="{{ .RelPermalink }}"
|
<a
|
||||||
{{ end }}
|
href="{{ .Get "link" }}"
|
||||||
{{- if or ($src.Params.alt) (.Get "caption") }}
|
{{- with .Get "target" -}}
|
||||||
alt="{{ with $src.Params.alt }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}"
|
target="{{ . }}"
|
||||||
{{- end -}}
|
{{- else -}}
|
||||||
{{- with $src.Params.title }} title="{{ . }}"{{ end -}}
|
{{ warnf "No target defined for non-page resource link %q" ( .Get "link" ) -}}
|
||||||
width="{{ $src.Width }}"
|
{{- end -}}
|
||||||
height="{{ $src.Height }}"
|
{{- with .Get "rel" -}}
|
||||||
/>
|
rel="{{ . }}"
|
||||||
</picture>
|
{{- else -}}
|
||||||
{{- else if eq $src.ResourceType "video" -}}
|
{{- warnf "No rel defined for non-page resource link %q" ( .Get "link" ) -}}
|
||||||
{{- if eq $src.MediaType "video/ogg" -}}
|
{{- end -}}
|
||||||
<audio controls>
|
>
|
||||||
<source src="{{ $src.RelPermalink }}" type="{{ $src.MediaType }}" />
|
{{ end }}
|
||||||
<p>Your browser doesn't support embedded audio, but you can view the audio <a href="{{ $src.RelPermalink }}">here</a>.</p>
|
|
||||||
</audio>
|
|
||||||
{{- else -}}
|
|
||||||
<video class="figure__video"
|
|
||||||
controls
|
|
||||||
src="{{ $src.RelPermalink }}"
|
|
||||||
poster="{{ if $src.Params.poster }}{{ .Get $src.Params.poster }}{{ else }}{{ warnf "No poster defined for resource %q" $src.RelPermalink }}{{ end }}"
|
|
||||||
>
|
|
||||||
Your browser doesn't support embedded video, but you can view the video <a href="{{ $src.RelPermalink }}">here</a>.
|
|
||||||
</video>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- else if or ( ne $src.ResourceType "image" ) ( ne $src.ResourceType "video" ) -}}
|
|
||||||
{{- errorf "No handling for resource of type %q" $src.ResourceType -}}
|
{{- if eq $src.ResourceType "image" -}}
|
||||||
|
<picture class="figure__picture">
|
||||||
|
<img class="figure__image"
|
||||||
|
{{ with $src.Resize "1500x webp" }}
|
||||||
|
src="{{ .RelPermalink }}"
|
||||||
|
{{ end }}
|
||||||
|
{{- if or ($src.Params.alt) (.Get "caption") }}
|
||||||
|
alt="{{ with $src.Params.alt }}{{ . }}{{ else }}{{ .Get "caption" | markdownify | plainify }}{{ end }}"
|
||||||
|
{{- end -}}
|
||||||
|
{{- with $src.Params.title }} title="{{ . }}"{{ end -}}
|
||||||
|
width="{{ $src.Width }}"
|
||||||
|
height="{{ $src.Height }}"
|
||||||
|
/>
|
||||||
|
</picture>
|
||||||
|
{{- else if eq $src.ResourceType "video" -}}
|
||||||
|
{{- if eq $src.MediaType "video/ogg" -}}
|
||||||
|
<audio class="figure__audio" controls>
|
||||||
|
<source src="{{ $src.RelPermalink }}" type="{{ $src.MediaType }}" />
|
||||||
|
<p>Your browser doesn't support embedded audio, but you can view the audio <a href="{{ $src.RelPermalink }}">here</a>.</p>
|
||||||
|
</audio>
|
||||||
|
{{- else -}}
|
||||||
|
<video class="figure__video"
|
||||||
|
controls
|
||||||
|
src="{{ $src.RelPermalink }}"
|
||||||
|
poster="{{ if $src.Params.poster }}{{ .Get $src.Params.poster }}{{ else }}{{ warnf "No poster defined for resource %q" $src.RelPermalink }}{{ end }}"
|
||||||
|
>
|
||||||
|
Your browser doesn't support embedded video, but you can view the video <a href="{{ $src.RelPermalink }}">here</a>.
|
||||||
|
</video>
|
||||||
|
{{- end -}}
|
||||||
|
{{- else if or ( ne $src.ResourceType "image" ) ( ne $src.ResourceType "video" ) -}}
|
||||||
|
{{- errorf "No handling for resource of type %q" $src.ResourceType -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- if .Get "link" }}</a>{{ end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if .Get "link" }}</a>{{ end -}}
|
|
||||||
|
{{- if or ( .Get "caption" ) ( .Get "title" ) ( $src.Params.attr ) -}}
|
||||||
{{- if or (.Get "caption") ($src.Params.attr) -}}
|
<figcaption class="figure__caption{{ if not ( or ( .Get "caption" ) ( .Get "title" ) ) }} figure__caption--no-height{{ end }}">
|
||||||
<figcaption class="figure__caption{{ if not (.Get "caption") }} figure__caption--no-height{{ end }}">
|
{{- with $src -}}
|
||||||
{{- if $src.Params.attrlink -}}
|
{{ if .Params.attrlink -}}
|
||||||
<a class="figcaption__attrlink" href="{{ $src.Params.attrlink }}"
|
<a class="figcaption__attrlink" href="{{ .Params.attrlink }}"
|
||||||
{{- with $src.Params.attrtarget }} target="{{ . }}"{{ end -}}
|
{{- with .Params.attrtarget }} target="{{ . }}"{{ end -}}
|
||||||
{{- with $src.Params.attrrel }} rel="{{ . }}"{{ end -}}
|
{{- with .Params.attrrel }} rel="{{ . }}"{{ end -}}
|
||||||
>
|
>
|
||||||
|
{{- end -}}
|
||||||
|
{{- if .Params.attr -}}<p class="figcaption__attr">{{ .Params.attr | safeHTML }}{{ with .Params.attrlicence }} <span class="figcaption__licence">{{ . | safeHTML }}</span>{{ end }}</p>{{- end -}}
|
||||||
|
{{- if .Params.attrlink -}}
|
||||||
|
</a>
|
||||||
|
{{- end -}}
|
||||||
|
{{- with .Params.title -}}<h4 class="figcaption__title">{{ . }}</h4>{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with $src.Params.attr -}}<p class="figcaption__attr">{{ . | safeHTML }}{{ with $src.Params.attrlicence }} <span class="figcaption__licence">{{ . | safeHTML }}</span>{{ end }}</p>{{- end -}}
|
{{- with .Get "title" -}}<h4 class="figcaption__title">{{ . }}</h4>{{- end -}}
|
||||||
{{- if $src.Params.attrlink -}}
|
{{- with .Get "caption" -}}
|
||||||
</a>
|
<p class="figcaption__caption">{{ . | markdownify }}
|
||||||
|
{{- with $src -}}
|
||||||
|
{{- if ( and ( eq .ResourceType "image" ) (or (gt .Width 2000) (gt .Height 2000) ) ) -}}
|
||||||
|
<span class="figcaption__full-size-link"><a href="{{ .RelPermalink }}">View full size</a></span>
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
</p>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with $src.Params.title -}}<h4 class="figcaption__title">{{ . }}</h4>{{- end -}}
|
|
||||||
{{- with .Get "caption" -}}<p class="figcaption__caption">{{ . | markdownify }}</p>{{- end -}}
|
|
||||||
</figcaption>
|
</figcaption>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</figure>
|
</figure>
|
||||||
|
|
Loading…
Reference in a new issue