mirror of
https://github.com/Crocmagnon/blog.git
synced 2024-11-24 16:58:03 +01:00
Fix images in 3d post
This commit is contained in:
parent
f026d06899
commit
76ff776d7b
2 changed files with 5 additions and 3 deletions
|
@ -56,9 +56,9 @@ I was a bit worried about the resistance for the bottom pieces but they seem to
|
||||||
|
|
||||||
Here's what it looks like once mounted and plugged:
|
Here's what it looks like once mounted and plugged:
|
||||||
|
|
||||||
{{< img src="6.jpeg" alt="Large view of my closet with the modem mounted on the wall" >}}
|
{{< img src="6.jpeg" resizeAdd="r270" alt="Large view of my closet with the modem mounted on the wall" >}}
|
||||||
|
|
||||||
{{< img src="5.jpeg" alt="Close view of my closet with the modem mounted on the wall" >}}
|
{{< img src="5.jpeg" resizeAdd="r270" alt="Close view of my closet with the modem mounted on the wall" >}}
|
||||||
|
|
||||||
I'm quite proud of this since it's one of my first "hardware" projects from start to finish and it looks quite gorgeous in that red plastic 😍
|
I'm quite proud of this since it's one of my first "hardware" projects from start to finish and it looks quite gorgeous in that red plastic 😍
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
{{ if eq $origImage.MediaType.SubType "svg" }}
|
{{ if eq $origImage.MediaType.SubType "svg" }}
|
||||||
<img src="{{ $origImage.RelPermalink }}" alt='.Get "alt"'>
|
<img src="{{ $origImage.RelPermalink }}" alt='.Get "alt"'>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $image := $origImage.Resize "720x" }}
|
{{ $resizeAdd := .Get "resizeAdd" | default "" }}
|
||||||
|
{{ $resize := printf "%s%s" (.Get "resize" | default "720x webp Lanczos ") $resizeAdd }}
|
||||||
|
{{ $image := $origImage.Resize $resize }}
|
||||||
<a href="{{ $origImage.RelPermalink }}">
|
<a href="{{ $origImage.RelPermalink }}">
|
||||||
<img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" alt='.Get "alt"'>
|
<img src="{{ $image.RelPermalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" alt='.Get "alt"'>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue