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

Enabling Social Sharing Previews for all sites #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Enabling Social Sharing Previews for all sites
* Using og meta properties to allow for previews across all platforms without duplicating the tags - https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started#twitter-cards-and-open-graph
* Adding social preview image
stphnwlsh committed Feb 15, 2022
commit b89227e3bab972b4efd9725b0da4e5c1f2a9f2cc
9 changes: 5 additions & 4 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -6,10 +6,11 @@
<meta name="description" content="{{ site.description }}">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@omnisharp" />
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
<meta name="twitter:description" content="{{ site.description }}" />
<meta name="twitter:image" content="{{ "/images/logo.png" | prepend: site.url }}" />
<meta name="twitter:url" content="{{ site.url }}" />
<meta property="og:url" content="{{ site.url }}" />
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
<meta property="og:description" content="{{ site.description }}">
<meta property="og:image" content="{{ "/images/logo-text-social.png" | prepend: site.url }}" />
<meta property="og:type" content="website">
<link rel="icon" type="image/png" href="favicon.png">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml">
Binary file added images/logo-text-social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.