Commit Graph

7 Commits

Author SHA1 Message Date
MofuMoca
900e683872
Add og tag option to show site name.
增加 og tag 可以選擇是否要包含網站名稱,用於某些預覽連結只顯示 og:title 而不顯示 og:site_name 時,可以直接在預覽上查看到網站名稱。
預設為 false,維持原本此 theme 的設定,若需要在本 commit 之中也有設定好 params 設定為 false,在 partials/head/opengraph/provider/base.html 有設定 default 值,以防使用者沒有設定時不會出錯。

Add og tag options to set 'og:title' as 'title - sitename' or just 'Title' for some website link preview just show title not includ sitename.
The defautl value is 'false' in example config.yaml and in partials/head/opengraph/provider/base.html set default vaule to 'false' via code.
2023-10-13 15:24:05 +08:00
Jimmy Cai
25a72940b8
refactor(opengraph): add default value for twitter:card (#72) 2020-12-20 11:05:34 +01:00
Jimmy Cai
93146c9dc3
fix: add .Type as second cache key for helper/image
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/12
2020-09-18 00:12:26 +02:00
Jimmy Cai
8f0d420d24
feat: add partialCached for data/title data/description 2020-09-17 21:59:57 +02:00
Jimmy Cai
cf6502c311
feat: add partialCached to helper/image invocation
Using .RelPermalink as key for cache
2020-09-17 21:52:06 +02:00
Jimmy Cai
5265af0b3b
reafctor(head): rewrite description.html function 2020-09-11 23:00:19 +02:00
Jimmy Cai
5f7e818b92
refactor(head/opengraph): split code into modules 2020-09-11 21:55:15 +02:00