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
3 changed files with 8 additions and 1 deletions
Showing only changes of commit c63e566a2d - Show all commits

View File

@ -35,7 +35,7 @@ header_pages:
style: dark # dark (default), light or hacker
listen_for_clients_preferred_style: false # false (default) or true
footer: '2023 Distrust, LLC'
footer: '2024 Distrust, LLC'
# Build settings
theme: jekyll-theme-console

View File

@ -6,6 +6,13 @@
<link rel="icon" type="image/png" sizes="96x96" href="/assets/favicons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicons/favicon-16x16.png">
<title>{{ page.title }}</title>
<meta property="og:title" content="Distrust" />
anton marked this conversation as resolved Outdated
Outdated
Review

{{ page.title }}

{{ page.title }}
<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"
content="/assets/base/distrust-logo.png"
/>
{% if page.robots %}
<meta name="robots" content="{{page.robots}}" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB