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

[FEATURE] Twitter Card #826

Closed
TheDoubleH opened this issue Jan 3, 2023 · 1 comment
Closed

[FEATURE] Twitter Card #826

TheDoubleH opened this issue Jan 3, 2023 · 1 comment
Labels
new feature New feature

Comments

@TheDoubleH
Copy link

Describe the feature you want 描述你的功能需求

When sharing posts via twitter, the preview is very generic.

I would be preferable to enable "twitter cards"

I would suggest that:

  • the twitter id is inherited from Setup
  • Image is derived from featuredimage in post toml
  • Description and title from the post as well

Useful reference 有价值的参考

partials and guide example: https://gohugohq.com/partials/twitter-cards-partials-for-hugo/
Official Twitter documentation: https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started

@TheDoubleH TheDoubleH added the new feature New feature label Jan 3, 2023
@HEIGE-PCloud
Copy link
Owner

DoIt uses Hugo's internal twitter card template, you can follow the guide here to set it up!

@HEIGE-PCloud HEIGE-PCloud closed this as not planned Won't fix, can't repro, duplicate, stale Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants