Skip to content

Commit

Permalink
bugfix: add missing raw block
Browse files Browse the repository at this point in the history
  • Loading branch information
carbontwelve committed Sep 16, 2022
1 parent 320aa96 commit 3459781
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -232,6 +232,7 @@ module.exports = {

This filter is used in my main template to conditionally add the og-image meta tag if an image is available:

{% raw %}
```html
{% if ogImageHref %}
<meta property="og:image" content="{{ ogImageHref }}">
Expand All @@ -240,6 +241,7 @@ This filter is used in my main template to conditionally add the og-image meta t
<meta name="twitter:card" content="summary"/>
{% endif %}
```
{% endraw %}

Finally, because the images are output to the `_assets/og-image` folder, I need to tell 11ty to copy that to `img/og-image` when publishing:

Expand Down

0 comments on commit 3459781

Please sign in to comment.