mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-22 04:40:40 +00:00
fix: use absolute ULRs in img shortcode (#332)
This commit is contained in:
parent
e100ccf034
commit
e97cddfd2a
@ -6,17 +6,17 @@
|
|||||||
{{ with $source }}
|
{{ with $source }}
|
||||||
{{ $caption := default .Title $customAlt }}
|
{{ $caption := default .Title $customAlt }}
|
||||||
|
|
||||||
{{ $tiny := (.Resize "320x").RelPermalink }}
|
{{ $tiny := (.Resize "320x").Permalink }}
|
||||||
{{ $small := (.Resize "600x").RelPermalink }}
|
{{ $small := (.Resize "600x").Permalink }}
|
||||||
{{ $medium := (.Resize "1200x").RelPermalink }}
|
{{ $medium := (.Resize "1200x").Permalink }}
|
||||||
{{ $large := (.Resize "1800x").RelPermalink }}
|
{{ $large := (.Resize "1800x").Permalink }}
|
||||||
|
|
||||||
{{ $size := dict "tiny" $tiny "small" $small "medium" $medium "large" $large }}
|
{{ $size := dict "tiny" $tiny "small" $small "medium" $medium "large" $large }}
|
||||||
|
|
||||||
|
|
||||||
<div class="flex justify-center">
|
<div class="flex justify-center">
|
||||||
<figure class="gdoc-markdown__figure">
|
<figure class="gdoc-markdown__figure">
|
||||||
<a class="gdoc-markdown__link--raw" href="{{ .RelPermalink }}">
|
<a class="gdoc-markdown__link--raw" href="{{ .Permalink }}">
|
||||||
<picture>
|
<picture>
|
||||||
<source
|
<source
|
||||||
{{ with $customSize }}
|
{{ with $customSize }}
|
||||||
|
Loading…
Reference in New Issue
Block a user