Skip to content

Commit 5898ff0

Browse files
authored
Add blogcards to Python articles for enhanced content linking (#8)
* Add blogcards to Python articles for enhanced content linking * Refactor blogcard iframe for improved responsiveness * Update index layout to display six posts and change 'All Post' link to 'All Columns' * Disable cookies and remove unnecessary server headers from configuration * Update meta descriptions and post images for Python articles
1 parent 9524ebe commit 5898ff0

9 files changed

+27
-25
lines changed

config.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ enable = true
9090

9191
# cookies
9292
[params.cookies]
93-
enable = true
93+
enable = false
9494
expire_days = 2
9595

9696
############################# Footer ########################
@@ -118,9 +118,3 @@ link = "#"
118118
title = "github"
119119
icon = "ti-github" # themify icon : https://themify.me/themify-icons
120120
link = "#"
121-
122-
[server]
123-
[[server.headers]]
124-
for = '/**'
125-
[server.headers.values]
126-
X-Frame-Options = 'SAMEORIGIN'

content/column/beautiful-python-code.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ draft: false
77
author : "北田 俊輔"
88

99
# post thumb
10-
image: "images/blog/blog-1.jpg"
10+
image: "https://assets.st-note.com/production/uploads/images/177372934/rectangle_large_type_2_e8ffa0da091443659a6dfe07b86e1247.png"
1111

1212
# meta description
13-
description: "this is meta description"
13+
description: "✨️ Python のコードを美しく保つには"
1414

1515
# taxonomies
1616
categories: ["Python", "ruff", "rust"]
@@ -19,4 +19,6 @@ tags: ["Python", "ruff", "rust"]
1919
type: "post"
2020
---
2121

22-
## ✨️ Python のコードを美しく保つには
22+
<!-- ## ✨️ Python のコードを美しく保つには -->
23+
24+
{{< blogcard url="https://note.com/shunk031/n/n65c55ca011e3" >}}

content/column/extending-diffusers-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ author : "北田 俊輔"
1010
image: "images/blog/blog-1.jpg"
1111

1212
# meta description
13-
description: "this is meta description"
13+
description: "🧨 diffusers のコードを拡張する"
1414

1515
# taxonomies
1616
categories: ["Python", "diffusers"]

content/column/mastering-huggingface-ecosystem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ author : "北田 俊輔"
1010
image: "images/blog/blog-1.jpg"
1111

1212
# meta description
13-
description: "this is meta description"
13+
description: "🤗 Hugging Face のエコシステムを使い倒す"
1414

1515
# taxonomies
1616
categories: ["Python", "Hugging Face", "huggingface transformers", "huggingface evaluate", "huggingface datasets"]

content/column/python-dataclass.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ draft: false
77
author : "北田 俊輔"
88

99
# post thumb
10-
image: "images/blog/blog-1.jpg"
10+
image: "https://assets.st-note.com/production/uploads/images/177372544/rectangle_large_type_2_b2992d27110edccf3062187b1b807e26.png"
1111

1212
# meta description
13-
description: "this is meta description"
13+
description: "🔎 `dataclass` で万物に型をつけよう"
1414

1515
# taxonomies
1616
categories: ["Python", "Type Hint", "dataclass"]
@@ -19,4 +19,6 @@ tags: ["Python", "Type Hint", "dataclass"]
1919
type: "post"
2020
---
2121

22-
## 🔎 `dataclass` で万物に型をつけよう
22+
<!-- ## 🔎 `dataclass` で万物に型をつけよう -->
23+
24+
{{< blogcard url="https://note.com/shunk031/n/nc1106f2ef926" >}}

content/column/reproducible-experiments.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ draft: false
77
author : "北田 俊輔"
88

99
# post thumb
10-
image: "images/blog/blog-1.jpg"
10+
image: "https://assets.st-note.com/production/uploads/images/177512767/rectangle_large_type_2_167a97ebd37dff5b6af21d36ce41723d.png"
1111

1212
# meta description
13-
description: "this is meta description"
13+
description: "🧪 深層学習を用いた実験における再現可能な環境構築"
1414

1515
# taxonomies
1616
categories: ["Python", "uv", "docker", "rust"]
@@ -19,4 +19,6 @@ tags: ["Python", "uv", "docker", "rust"]
1919
type: "post"
2020
---
2121

22-
## 🧪 深層学習を用いた実験における再現可能な環境構築
22+
<!-- ## 🧪 深層学習を用いた実験における再現可能な環境構築 -->
23+
24+
{{< blogcard url="https://note.com/shunk031/n/n0f0e9e42b5aa" >}}

content/column/typehint-in-python.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ draft: false
77
author : "北田 俊輔"
88

99
# post thumb
10-
image: "images/blog/blog-1.jpg"
10+
image: "https://assets.st-note.com/production/uploads/images/177372381/rectangle_large_type_2_77ac5bc8e07e0b825e715c96b64bc683.png"
1111

1212
# meta description
13-
description: "this is meta description"
13+
description: "💡すべてを救う Python の型ヒントについて"
1414

1515
# taxonomies
1616
categories: ["Python", "Type Hint"]
@@ -19,4 +19,6 @@ tags: ["Python", "Type Hint"]
1919
type: "post"
2020
---
2121

22-
## 💡すべてを救う Python の型ヒントについて
22+
<!-- ## 💡すべてを救う Python の型ヒントについて -->
23+
24+
{{< blogcard url="https://note.com/shunk031/n/n02edafb543a6" >}}

layouts/shortcodes/blogcard.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="blogcard">
2-
<iframe class="hatenablogcard" style="width:100%;height:155px;max-width:500px;"
3-
src="https://hatenablog-parts.com/embed?url={{ .Get " url" }}" width="300" height="150" frameborder="0"
2+
<iframe class="hatenablogcard" style="width:100%;"
3+
src="https://hatenablog-parts.com/embed?url={{ .Get "url" }}" frameborder="0"
44
scrolling="no"></iframe>
55
</div>

themes/influencer-hugo/layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,14 @@ <h2 class="text-lg mb-3">{{ .title | markdownify }}</h2>
367367
</div>
368368
{{ end }}
369369
<div class="row">
370-
{{ range first 3 (where .Site.RegularPages "Type" "post")}}
370+
{{ range first 6 (where .Site.RegularPages "Type" "post")}}
371371
<div class="col-lg-4 col-md-6 col-sm-6">
372372
{{ .Render "post"}}
373373
</div>
374374
{{ end }}
375375
</div>
376376
<div class="text-center mt-5">
377-
<a href="/blog" class="btn btn-main">All Post</a>
377+
<a href="/column" class="btn btn-main">All Columns</a>
378378
</div>
379379
</div>
380380
</section>

0 commit comments

Comments
 (0)