1 parent a5473a9 commit 861182eCopy full SHA for 861182e
2 files changed
layouts/shortcodes/amazon.html
@@ -1,15 +1,10 @@
1
{{- $tag := site.Params.amazonJpAffiliate }}
2
{{- $asin := .Get "asin" -}}
3
{{- $title := .Get "title" -}}
4
-{{- $destination := "no_image_square.jpg" -}}
5
-{{- $img := (.Page.Resources.ByType "image").GetMatch $destination -}}
6
-{{- if not $img -}}
7
- {{- $img = resources.Get (path.Join "media" $destination) -}}
8
-{{- end -}}
9
-<div class="amazon-widget">
+<div class="border-2 rounded-lg amazon-widget">
10
<a target="_blank" href="https://www.amazon.co.jp/gp/product/{{ $asin }}/?tag={{ $tag }}"></a>
11
<div class="amazon-widget-img">
12
- <img src="{{ $img }}" />
+ <img src="/media/no_image_square.webp" />
13
</div>
14
<div class="amazon-widget-info">
15
<span class="amazon-widget-title">
static/media/no_image_square.webp
4.3 KB
0 commit comments