hugo-theme-stack/layouts
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
..
_default Revert "Merge branch 'canary' into master" (#712) 2022-10-29 17:14:19 +02:00
page feat: use .RelPermalink for search JSON (#859) 2023-08-15 11:40:43 +02:00
partials Add og tag option to show site name. 2023-10-13 15:24:05 +08:00
shortcodes feat(article): GitLab Snippets Shortcode (#627) 2022-06-11 11:04:20 +02:00
404.html refactor(i18n): translation key renaming (#68) 2020-12-19 01:41:26 +01:00
index.html Revert "Merge branch 'canary' into master" (#712) 2022-10-29 17:14:19 +02:00