kyu08 / blog

A blog powered by hugo

Home Page:https://blog.kyu08.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

動的OGPの生成

kyu08 opened this issue · comments

commented

やりたいこと

  1. 記事のfront-matterにcover: "${記事ID}.png"を指定しておく(make newにこの処理を追加する)
  2. mainにマージされるとGitHub Actionsでdeployがキックされる
    1. OGPを生成
    2. deploy

公式

https://gohugo.io/functions/images/
https://gohugo.io/content-management/image-processing/

参考になりそうなブログ

自分でやるのは大変なのでOGPを動的に生成する機運が高まったらそれができるSSGフレームワークに乗り換えるのがよさそう。