Skip to content

Commit

Permalink
Add OG tags
Browse files Browse the repository at this point in the history
  • Loading branch information
k3DW committed Oct 16, 2024
1 parent c16d2ef commit 774146b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="{{ page.author | default: site.author | escape }}">
<meta name="generator" content="Jekyll v{{ jekyll.version }}">

{% if page.layout == "post" %}
<meta property="og:title" content="{{ page.title | escape }}" />
{% if page.description %}
<meta property="og:description" content="{{ page.date | date: "%Y-%m-%d" }} - {{ page.description | escape }}" />
{% else %}
<meta property="og:description" content="{{ page.date | date: "%Y-%m-%d" }}" />
{% endif %}
{% elsif page.layout == "tag" %}
<meta property="og:title" content="{{ page.title | escape }} tag | Braden++" />
{% else %}
<meta property="og:title" content="Braden++" />
{% endif %}
<meta property="og:url" content="{{ page.url | absolute_url }}" />
<meta property="og:image" content="/assets/k3DW-og-cropped.png" />
<meta property="og:type" content="article" />

<link rel="canonical" href="{{ page.url | absolute_url }}">
<link rel="icon" href="/assets/k3DW.png">
{% if site.show_frame %}
Expand Down
Binary file added assets/k3DW-og-cropped.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 774146b

Please sign in to comment.