feat: add og tags for nicer previews #10

Manually merged
ryan merged 7 commits from feat/add-og-tags into main 2024-07-10 21:15:27 +00:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit 3a705aae2b - Show all commits

View File

@ -10,9 +10,13 @@
<meta property="og:site_name" content="Distrust" />
anton marked this conversation as resolved Outdated
Outdated
Review

Everything that you have hardcoded here should instead be pulled from the config. Here's a jekyll theme that does what you're looking for https://github.com/sujaykundu777/devlopr-jekyll/blob/master/_includes/head.html

Everything that you have hardcoded here should instead be pulled from the config. Here's a jekyll theme that does what you're looking for https://github.com/sujaykundu777/devlopr-jekyll/blob/master/_includes/head.html
<meta property="og:description" content="Understand and mitigate security threats others won't see coming." />
<meta
property="og:image"
property="og:image:secure_url"
content="https://distrust.co/assets/base/distrust-logo.png"
/>
<meta
property="og:image"
content="http://distrust.co/assets/base/distrust-logo.png"
/>
anton marked this conversation as resolved Outdated
Outdated
Review

You'll also need to add the Twitter specific tags

   <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:description" content=" ">
    <meta name="twitter:title" content="{{ page.title }}">
    <meta name="twitter:site" content="">
    <meta name="twitter:image" content="">
You'll also need to add the Twitter specific tags ```html <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:description" content=" "> <meta name="twitter:title" content="{{ page.title }}"> <meta name="twitter:site" content=""> <meta name="twitter:image" content=""> ```
{% if page.robots %}
<meta name="robots" content="{{page.robots}}" />