From 8bbc438d06400a54c7364abb24aa0c5520c745f6 Mon Sep 17 00:00:00 2001 From: Shunsuke KITADA Date: Sun, 2 Mar 2025 23:06:01 +0900 Subject: [PATCH 1/5] Add blogcards to Python articles for enhanced content linking --- content/column/beautiful-python-code.md | 2 ++ content/column/python-dataclass.md | 2 ++ content/column/typehint-in-python.md | 2 ++ 3 files changed, 6 insertions(+) diff --git a/content/column/beautiful-python-code.md b/content/column/beautiful-python-code.md index b2b709e..b165ef0 100644 --- a/content/column/beautiful-python-code.md +++ b/content/column/beautiful-python-code.md @@ -20,3 +20,5 @@ type: "post" --- ## ✨️ Python のコードを美しく保つには + +{{< blogcard url="https://note.com/shunk031/n/n65c55ca011e3" >}} diff --git a/content/column/python-dataclass.md b/content/column/python-dataclass.md index 06220a4..6ff0794 100644 --- a/content/column/python-dataclass.md +++ b/content/column/python-dataclass.md @@ -20,3 +20,5 @@ type: "post" --- ## 🔎 `dataclass` で万物に型をつけよう + +{{< blogcard url="https://note.com/shunk031/n/nc1106f2ef926" >}} diff --git a/content/column/typehint-in-python.md b/content/column/typehint-in-python.md index 23e52e4..9794278 100644 --- a/content/column/typehint-in-python.md +++ b/content/column/typehint-in-python.md @@ -20,3 +20,5 @@ type: "post" --- ## 💡すべてを救う Python の型ヒントについて + +{{< blogcard url="https://note.com/shunk031/n/n02edafb543a6" >}} From 5d4ee368dce41e23a407b92f47fb651ae0628070 Mon Sep 17 00:00:00 2001 From: Shunsuke KITADA Date: Tue, 4 Mar 2025 22:52:08 +0900 Subject: [PATCH 2/5] Refactor blogcard iframe for improved responsiveness --- layouts/shortcodes/blogcard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/blogcard.html b/layouts/shortcodes/blogcard.html index a1d88da..e95f64d 100644 --- a/layouts/shortcodes/blogcard.html +++ b/layouts/shortcodes/blogcard.html @@ -1,5 +1,5 @@
-
From c37c62bffcbbba324f96d91f75e342d2f16df072 Mon Sep 17 00:00:00 2001 From: Shunsuke KITADA Date: Tue, 4 Mar 2025 22:52:16 +0900 Subject: [PATCH 3/5] Update index layout to display six posts and change 'All Post' link to 'All Columns' --- themes/influencer-hugo/layouts/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/influencer-hugo/layouts/index.html b/themes/influencer-hugo/layouts/index.html index c3ab077..f4f62b5 100644 --- a/themes/influencer-hugo/layouts/index.html +++ b/themes/influencer-hugo/layouts/index.html @@ -367,14 +367,14 @@

{{ .title | markdownify }}

{{ end }}
- {{ range first 3 (where .Site.RegularPages "Type" "post")}} + {{ range first 6 (where .Site.RegularPages "Type" "post")}}
{{ .Render "post"}}
{{ end }}
From 85fd5e9afdfee9ded827b943e1f778dd0ca27845 Mon Sep 17 00:00:00 2001 From: Shunsuke KITADA Date: Tue, 4 Mar 2025 22:53:09 +0900 Subject: [PATCH 4/5] Disable cookies and remove unnecessary server headers from configuration --- config.toml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/config.toml b/config.toml index 5f975b4..eb4325f 100644 --- a/config.toml +++ b/config.toml @@ -90,7 +90,7 @@ enable = true # cookies [params.cookies] -enable = true +enable = false expire_days = 2 ############################# Footer ######################## @@ -118,9 +118,3 @@ link = "#" title = "github" icon = "ti-github" # themify icon : https://themify.me/themify-icons link = "#" - -[server] -[[server.headers]] -for = '/**' -[server.headers.values] -X-Frame-Options = 'SAMEORIGIN' From f6d528e80b81c1b103ac602b61257fecac5934b1 Mon Sep 17 00:00:00 2001 From: Shunsuke KITADA Date: Tue, 4 Mar 2025 22:54:23 +0900 Subject: [PATCH 5/5] Update meta descriptions and post images for Python articles --- content/column/beautiful-python-code.md | 6 +++--- content/column/extending-diffusers-code.md | 2 +- content/column/mastering-huggingface-ecosystem.md | 2 +- content/column/python-dataclass.md | 6 +++--- content/column/reproducible-experiments.md | 8 +++++--- content/column/typehint-in-python.md | 6 +++--- 6 files changed, 16 insertions(+), 14 deletions(-) diff --git a/content/column/beautiful-python-code.md b/content/column/beautiful-python-code.md index b165ef0..bb8c306 100644 --- a/content/column/beautiful-python-code.md +++ b/content/column/beautiful-python-code.md @@ -7,10 +7,10 @@ draft: false author : "北田 俊輔" # post thumb -image: "images/blog/blog-1.jpg" +image: "https://assets.st-note.com/production/uploads/images/177372934/rectangle_large_type_2_e8ffa0da091443659a6dfe07b86e1247.png" # meta description -description: "this is meta description" +description: "✨️ Python のコードを美しく保つには" # taxonomies categories: ["Python", "ruff", "rust"] @@ -19,6 +19,6 @@ tags: ["Python", "ruff", "rust"] type: "post" --- -## ✨️ Python のコードを美しく保つには + {{< blogcard url="https://note.com/shunk031/n/n65c55ca011e3" >}} diff --git a/content/column/extending-diffusers-code.md b/content/column/extending-diffusers-code.md index d598ee5..8e470fa 100644 --- a/content/column/extending-diffusers-code.md +++ b/content/column/extending-diffusers-code.md @@ -10,7 +10,7 @@ author : "北田 俊輔" image: "images/blog/blog-1.jpg" # meta description -description: "this is meta description" +description: "🧨 diffusers のコードを拡張する" # taxonomies categories: ["Python", "diffusers"] diff --git a/content/column/mastering-huggingface-ecosystem.md b/content/column/mastering-huggingface-ecosystem.md index 6c93da8..5d85109 100644 --- a/content/column/mastering-huggingface-ecosystem.md +++ b/content/column/mastering-huggingface-ecosystem.md @@ -10,7 +10,7 @@ author : "北田 俊輔" image: "images/blog/blog-1.jpg" # meta description -description: "this is meta description" +description: "🤗 Hugging Face のエコシステムを使い倒す" # taxonomies categories: ["Python", "Hugging Face", "huggingface transformers", "huggingface evaluate", "huggingface datasets"] diff --git a/content/column/python-dataclass.md b/content/column/python-dataclass.md index 6ff0794..b6f6817 100644 --- a/content/column/python-dataclass.md +++ b/content/column/python-dataclass.md @@ -7,10 +7,10 @@ draft: false author : "北田 俊輔" # post thumb -image: "images/blog/blog-1.jpg" +image: "https://assets.st-note.com/production/uploads/images/177372544/rectangle_large_type_2_b2992d27110edccf3062187b1b807e26.png" # meta description -description: "this is meta description" +description: "🔎 `dataclass` で万物に型をつけよう" # taxonomies categories: ["Python", "Type Hint", "dataclass"] @@ -19,6 +19,6 @@ tags: ["Python", "Type Hint", "dataclass"] type: "post" --- -## 🔎 `dataclass` で万物に型をつけよう + {{< blogcard url="https://note.com/shunk031/n/nc1106f2ef926" >}} diff --git a/content/column/reproducible-experiments.md b/content/column/reproducible-experiments.md index bc959d6..da233c8 100644 --- a/content/column/reproducible-experiments.md +++ b/content/column/reproducible-experiments.md @@ -7,10 +7,10 @@ draft: false author : "北田 俊輔" # post thumb -image: "images/blog/blog-1.jpg" +image: "https://assets.st-note.com/production/uploads/images/177512767/rectangle_large_type_2_167a97ebd37dff5b6af21d36ce41723d.png" # meta description -description: "this is meta description" +description: "🧪 深層学習を用いた実験における再現可能な環境構築" # taxonomies categories: ["Python", "uv", "docker", "rust"] @@ -19,4 +19,6 @@ tags: ["Python", "uv", "docker", "rust"] type: "post" --- -## 🧪 深層学習を用いた実験における再現可能な環境構築 + + +{{< blogcard url="https://note.com/shunk031/n/n0f0e9e42b5aa" >}} diff --git a/content/column/typehint-in-python.md b/content/column/typehint-in-python.md index 9794278..38bc45b 100644 --- a/content/column/typehint-in-python.md +++ b/content/column/typehint-in-python.md @@ -7,10 +7,10 @@ draft: false author : "北田 俊輔" # post thumb -image: "images/blog/blog-1.jpg" +image: "https://assets.st-note.com/production/uploads/images/177372381/rectangle_large_type_2_77ac5bc8e07e0b825e715c96b64bc683.png" # meta description -description: "this is meta description" +description: "💡すべてを救う Python の型ヒントについて" # taxonomies categories: ["Python", "Type Hint"] @@ -19,6 +19,6 @@ tags: ["Python", "Type Hint"] type: "post" --- -## 💡すべてを救う Python の型ヒントについて + {{< blogcard url="https://note.com/shunk031/n/n02edafb543a6" >}}