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

Add Open Graph and Twitter Card meta tags to improve social media sharing #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Delvis
Copy link

@Delvis Delvis commented Jan 11, 2024

This commit adds Open Graph and Twitter Card meta tags to the <head> section of the baseof.html file. These tags enhance the display of website content when shared on social media platforms like Facebook and Twitter.

Changes made:

  • Added og:image, og:title, og:description, og:url, og:type, and og:site_name for Open Graph.
  • Added twitter:card, twitter:title, twitter:description, and optional twitter:image for Twitter Card.

The values for these tags are dynamically populated based on the content of the page. Additionally, fb:app_id is recommended but can be added separately as needed.

This enhancement aims to provide a better visual representation when sharing pages from the website on various social networks.

…ring

This commit adds Open Graph and Twitter Card meta tags to the `<head>` section of the `baseof.html` file. These tags enhance the display of website content when shared on social media platforms like Facebook and Twitter.

Changes made:
- Added `og:image`, `og:title`, `og:description`, `og:url`, `og:type`, and `og:site_name` for Open Graph.
- Added `twitter:card`, `twitter:title`, `twitter:description`, and optional `twitter:image` for Twitter Card.

The values for these tags are dynamically populated based on the content of the page. Additionally, `fb:app_id` is recommended but can be added separately as needed.

This enhancement aims to provide a better visual representation when sharing pages from the website on various social networks.
@gurusabarish
Copy link
Owner

@abe-101
Copy link
Contributor

abe-101 commented Apr 18, 2024

this pr can be closed
refer to https://gohugo.io/templates/embedded/#open-graph for how to add the tags

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

Successfully merging this pull request may close these issues.

None yet

3 participants