From 082bada8e4b403231790f8e52e9e1f8eccb9a4ce Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Fri, 17 Mar 2023 18:56:09 -0700 Subject: [PATCH] fix styling --- src/posts/2023/webmentions-in-eleventy.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/posts/2023/webmentions-in-eleventy.md b/src/posts/2023/webmentions-in-eleventy.md index 0d6df7d8..93dcd1ae 100644 --- a/src/posts/2023/webmentions-in-eleventy.md +++ b/src/posts/2023/webmentions-in-eleventy.md @@ -57,7 +57,8 @@ jobs: When the build runs, it renders any mentions of a given post via a [liquid.js](https://liquidjs.com/) template that looks like this: -```plaintext +{% raw %} +```liquid {% if webmentions %}
{% @@ -129,6 +130,7 @@ When the build runs, it renders any mentions of a given post via a [liquid.js](h
{% endif %} ``` +{% endraw %} This conditionally displays different mention types based on the available data after being passed through the `webmentionsByUrl` filter which I shamelessly lifted from [Robb](https://github.com/rknightuk/rknight.me/blob/8e2a5c5f886cae6c04add7893b8bf8a2d6295ddf/config/filters.js#L48-L84).