Skip to content

Commit

Permalink
update amazon
Browse files Browse the repository at this point in the history
  • Loading branch information
EkeMinusYou committed Dec 30, 2024
1 parent fc6c218 commit 895d3e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions assets/css/shortcodes/amazon.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
border: 1px solid #E1E8ED;
border-radius: 15px 15px 0 0;
text-align: center;
background-color: white;
}
.amazon-widget-img img {
border: none;
margin: 0 auto;
height: 160px;
padding: 16px;
}
.amazon-widget-info {
Expand All @@ -28,12 +28,9 @@
padding:5px 10px 10px 10px;
border-radius:0 0 15px 15px;
}
.amazon-widget:hover .amazon-widget-info {
background-color: #E1E8ED;
}
.amazon-widget-title {
font-weight: bold;
display:block;
display: block;
}
.amazon-widget-via {
color: #aaa;
Expand Down
3 changes: 2 additions & 1 deletion layouts/shortcodes/amazon.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- $title := .Get "title" -}}
{{- $img := .Get "img" -}}
<div class="amazon-widget">
<a href="https://www.amazon.co.jp/gp/product/{{ $asin }}/?tag={{ $tag }}"></a>
<a href="https://www.amazon.co.jp/gp/product/{{ $asin }}/?tag={{ $tag }}" target="_blank">
<div class="amazon-widget-img">
<img src="{{ $img }}" />
</div>
Expand All @@ -19,4 +19,5 @@
amazon.co.jp
</span>
</div>
</a>
</div>

0 comments on commit 895d3e2

Please sign in to comment.