Skip to content

Add blogcards to Python articles for enhanced content linking #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ enable = true

# cookies
[params.cookies]
enable = true
enable = false
expire_days = 2

############################# Footer ########################
Expand Down Expand Up @@ -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'
8 changes: 5 additions & 3 deletions content/column/beautiful-python-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -19,4 +19,6 @@ tags: ["Python", "ruff", "rust"]
type: "post"
---

## ✨️ Python のコードを美しく保つには
<!-- ## ✨️ Python のコードを美しく保つには -->

{{< blogcard url="https://note.com/shunk031/n/n65c55ca011e3" >}}
2 changes: 1 addition & 1 deletion content/column/extending-diffusers-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ author : "北田 俊輔"
image: "images/blog/blog-1.jpg"

# meta description
description: "this is meta description"
description: "🧨 diffusers のコードを拡張する"

# taxonomies
categories: ["Python", "diffusers"]
Expand Down
2 changes: 1 addition & 1 deletion content/column/mastering-huggingface-ecosystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
8 changes: 5 additions & 3 deletions content/column/python-dataclass.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -19,4 +19,6 @@ tags: ["Python", "Type Hint", "dataclass"]
type: "post"
---

## 🔎 `dataclass` で万物に型をつけよう
<!-- ## 🔎 `dataclass` で万物に型をつけよう -->

{{< blogcard url="https://note.com/shunk031/n/nc1106f2ef926" >}}
8 changes: 5 additions & 3 deletions content/column/reproducible-experiments.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -19,4 +19,6 @@ tags: ["Python", "uv", "docker", "rust"]
type: "post"
---

## 🧪 深層学習を用いた実験における再現可能な環境構築
<!-- ## 🧪 深層学習を用いた実験における再現可能な環境構築 -->

{{< blogcard url="https://note.com/shunk031/n/n0f0e9e42b5aa" >}}
8 changes: 5 additions & 3 deletions content/column/typehint-in-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -19,4 +19,6 @@ tags: ["Python", "Type Hint"]
type: "post"
---

## 💡すべてを救う Python の型ヒントについて
<!-- ## 💡すべてを救う Python の型ヒントについて -->

{{< blogcard url="https://note.com/shunk031/n/n02edafb543a6" >}}
4 changes: 2 additions & 2 deletions layouts/shortcodes/blogcard.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="blogcard">
<iframe class="hatenablogcard" style="width:100%;height:155px;max-width:500px;"
src="https://hatenablog-parts.com/embed?url={{ .Get " url" }}" width="300" height="150" frameborder="0"
<iframe class="hatenablogcard" style="width:100%;"
src="https://hatenablog-parts.com/embed?url={{ .Get "url" }}" frameborder="0"
scrolling="no"></iframe>
</div>
4 changes: 2 additions & 2 deletions themes/influencer-hugo/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@ <h2 class="text-lg mb-3">{{ .title | markdownify }}</h2>
</div>
{{ end }}
<div class="row">
{{ range first 3 (where .Site.RegularPages "Type" "post")}}
{{ range first 6 (where .Site.RegularPages "Type" "post")}}
<div class="col-lg-4 col-md-6 col-sm-6">
{{ .Render "post"}}
</div>
{{ end }}
</div>
<div class="text-center mt-5">
<a href="/blog" class="btn btn-main">All Post</a>
<a href="/column" class="btn btn-main">All Columns</a>
</div>
</div>
</section>
Expand Down