在Swig渲染下,在樣板Theme資料夾中找找看head的相關檔案:

1
layout/_partials/head.swig

插入這段

1
2
3
{{ 
  open_graph({})
}}

Facebook開發者工具中,出現了建議添加og:image:width以及og:image:height兩個tags,因此更改參數為:

1
2
3
{{ 
  open_graph({"og:image:width": 300, "og:image:height": 300})
}}