Skip to content

Commit cbd674a

Browse files
committed
Update homepage links to point to Amazon and modify purchase button in header
1 parent 91cedd9 commit cbd674a

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

data/homepage.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ banner:
99
price : "3,850円"
1010
breakdown: "本体3,500円+税10%"
1111
bookItem:
12-
- label: "インプレスブックス"
13-
link: "https://book.impress.co.jp/books/1123101104"
12+
- label: "Amazon.co.jp"
13+
link: "https://www.amazon.co.jp/dp/4295021105/ref=nosim/?tag=impressjapan-22&linkCode=as1"
1414

15-
# - label: "Amazon.co.jp"
16-
# link: "https://www.amazon.co.jp/dp/4295021105/ref=nosim/?tag=impressjapan-22&linkCode=as1"
1715
# - label: "楽天ブックス"
1816
# link: "https://hb.afl.rakuten.co.jp/hgc/0e4417b1.a489ce30.0e4417b2.93258c0e/?pc=https%3A%2F%2Fbooks.rakuten.co.jp%2Frdt%2Fitem%2F%3Fsid%3D213310%26sno%3DISBN%3A9784295021100"
1917
# - label: "セブンネット"

themes/influencer-hugo/layouts/partials/header.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,9 @@ <h2 class="mb-0 text-color">{{ .Site.Title }}</h2>
3737

3838
{{ if .Site.Params.navButton.enable }}
3939
{{ "<!-- nav btn -->" | safeHTML }}
40-
<button class="snipcart-add-item btn btn-border-tp btn-small ml-0 ml-lg-3 mb-3 mb-lg-0" data-item-id="1"
41-
data-item-name="{{ .Site.Data.homepage.banner.title | markdownify }}"
42-
data-item-image="{{ .Site.Data.homepage.banner.image | absURL }}"
43-
data-item-price="{{ .Site.Data.homepage.banner.price }}" data-item-url="/">
44-
購入はこちら
45-
</button>
40+
<a href="https://book.impress.co.jp/books/1123101104"
41+
class="btn btn-border-tp btn-small ml-0 ml-lg-3 mb-3 mb-lg-0">インプレスブックから購入<i
42+
class="ti-angle-right ml-3"></i></a>
4643
{{ end }}
4744
</div>
4845
</div>

0 commit comments

Comments
 (0)