Skip to content

Commit

Permalink
layouts: Improve OpenGraph embed preview (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett authored Jan 9, 2024
1 parent b6b2fab commit 668ef8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _layouts/essential.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<link rel="manifest" href="{{ site.baseurl }}/manifest.json">

<meta name="description" content="{{ site.description }}">
<!--<meta name="author" content="">-->
<meta property="og:title" content="{{ site.name }}">
<meta property="og:site_name" content="{{ site.name }}">
<meta property="og:description" content="{{ site.description }}">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:title" content="{{ page.title | strip_html }}">
<meta property="og:description" content="{{ page.summary | strip_html }}">
<meta property="og:type" content="website">
<meta property="og:url" content="FIXME">
<meta property="og:image" content="FIXME">
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<meta name="author" content="{{ site.data.authors[page.author].name }}">
<meta property="og:image" content="{{ site.baseurl }}/images/site/opengraph.png">
{% if site.color %}<meta name="theme-color" content="{{ site.color }}">{% endif %}

<!-- Favicon -->
Expand Down
Binary file added images/site/opengraph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 668ef8b

Please sign in to comment.