Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想請教如何添加og:image在文章中 #259

Open
bacnotes opened this issue Feb 5, 2022 · 1 comment
Open

想請教如何添加og:image在文章中 #259

bacnotes opened this issue Feb 5, 2022 · 1 comment

Comments

@bacnotes
Copy link

bacnotes commented Feb 5, 2022

你的反馈

請教修改meta property的位置

目前看到meta property有出現在chrome devtools裡面的element
chrome devtools 截圖
查詢過head裡面的pug檔案,也用vs code搜尋過整個程式,但還是不太確定meta property的位置在哪裡可以設定
想要完成的任務主要是設置og:image,目前推特抓不到一個縮圖,希望可以透過設置meta(property='og:image' content='本地圖片網址')來完成

有點star! 是很棒的主題!

@YiHui-Liu
Copy link
Contributor

stun/layout/_partials/head/head.pug文件中自行添加即可:
1650609932(1)
theme.og_image在配置文件中进行设置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants