kyu08/blog

動的OGPの生成

kyu08 opened this issue · 1 comments

kyu08 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フレームワークに乗り換えるのがよさそう。