Skip to content

Commit

Permalink
Strip whitespace in OG descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
k0nserv committed Mar 8, 2024
1 parent 3ff458a commit 780e51f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"
>
{% if page.description %}
<meta property="og:description" content="{{ page.description }}">
<meta name="twitter:description" content="{{ page.description }}">
<meta name="description" content="{{ page.description }}">
<meta property="og:description" content="{{ page.description | strip }}">
<meta name="twitter:description" content="{{ page.description | strip }}">
<meta name="description" content="{{ page.description | strip }}">
{% else %}
<meta property="og:description" content="{{ site.description }}">
<meta name="twitter:description" content="{{ site.description }}">
<meta name="description" content="{{ site.description }}">
<meta property="og:description" content="{{ site.description | strip }}">
<meta name="twitter:description" content="{{ site.description | strip }}">
<meta name="description" content="{{ site.description | strip }}">
{% endif %} {% if page.categories %} {% for category in page.categories
limit:1 %}
<meta content="{{ category }}" property="article:section">
Expand Down

0 comments on commit 780e51f

Please sign in to comment.