Skip to content

Commit

Permalink
Fix description metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
howardjp committed Apr 29, 2024
1 parent 2135d25 commit 7931538
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,21 @@
{% assign featured_image = page.featured_image %}
{% endif %}

{% assign desc = page.content | markdownify | strip_html | truncatewords: 30 %}
{% if page.subtitle %}
{% assign desc = page.subtitle | markdownify | strip_html %}
{% endif %}

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>{{ title }}</title>

<meta name="title" content="{{ title }}" />
<meta name="author" content="James" />
<meta name="description" content="{{ page.subtitle }}" />
<meta name="description" content="{{ desc }}" />

<meta property="og:title" content="{{ title }}" />
<meta property="og:locale" content="en_US" />
<meta property="og:description" content="{{ page.subtitle }}" />
<meta property="og:description" content="{{ desc }}" />
<meta property="og:url" content="{{ page.url }}" />
<meta property="og:site_name" content="James Howard" />
<meta property="og:image" content="{{ featured_image | relative_url }}" />
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: base
title: Home
subtitle: The website of James Howard, a Mathematician, a Different Kind of Mathematician, and a Statistician
---
<div class="section section-header">
<div class="parallax filter filter-color-black">
Expand Down

0 comments on commit 7931538

Please sign in to comment.