Skip to content

Commit 25cc00a

Browse files
committed
trying out seia to render webmentions
1 parent 48f81a0 commit 25cc00a

File tree

6 files changed

+17
-109
lines changed

6 files changed

+17
-109
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ See [SECURITY.md](./SECURITY.md).
141141

142142
### Production dependencies
143143

144-
This project has **52** `dependencies`.
144+
This project has **53** `dependencies`.
145145

146146
| Package | Version |
147147
|---|---|
@@ -186,6 +186,7 @@ This project has **52** `dependencies`.
186186
| [postcss](https://www.npmjs.com/package/postcss) | `^8.4.47` |
187187
| [postcss-cli](https://www.npmjs.com/package/postcss-cli) | `^11.0.0` |
188188
| [sanitize-html](https://www.npmjs.com/package/sanitize-html) | `^2.13.1` |
189+
| [seia](https://www.npmjs.com/package/seia) | `^0.2.2` |
189190
| [slugify](https://www.npmjs.com/package/slugify) | `^1.6.6` |
190191
| [stripe](https://www.npmjs.com/package/stripe) | `^17.2.1` |
191192
| [tailwindcss](https://www.npmjs.com/package/tailwindcss) | `^3.4.14` |

config/eleventy.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ export default function (eleventyConfig) {
335335
'node_modules/@11ty/is-land/is-land.js': 'assets/js/is-land.js',
336336
'node_modules/@11ty/is-land/is-land-autoinit.js':
337337
'assets/js/is-land-autoinit.js',
338-
'node_modules/instant.page/instantpage.js': 'assets/js/instantpage.js'
338+
'node_modules/instant.page/instantpage.js': 'assets/js/instantpage.js',
339+
'node_modules/seia/dist/seia.js': 'assets/js/seia.js',
340+
'node_modules/seia/dist/styles': 'assets/css/seia/styles'
339341
})
340342

341343
// https://www.11ty.dev/docs/shortcodes/

package-lock.json

Lines changed: 6 additions & 106 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
"postcss": "^8.4.47",
119119
"postcss-cli": "^11.0.0",
120120
"sanitize-html": "^2.13.1",
121+
"seia": "^0.2.2",
121122
"slugify": "^1.6.6",
122123
"stripe": "^17.2.1",
123124
"tailwindcss": "^3.4.14",

scripts/headers.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ const main = async () => {
133133
'connect-src': [
134134
'self',
135135
'cloudflareinsights.com',
136+
`https://webmention.io/${domain}/webmention`,
136137
'res.cloudinary.com',
137-
`https://webmention.io/${domain}/webmention`
138+
'webmention.io'
138139
],
139140

140141
'default-src': ['none'],

src/layouts/article.njk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ section: post
5050
<call-to-action></call-to-action>
5151
{% endrenderTemplate %}
5252

53+
<s-e-i-a css=".h-cite{padding:1rem};"></s-e-i-a>
54+
5355
{% renderTemplate "webc" %}
5456
<webmentions-section></webmentions-section>
5557
{% endrenderTemplate %}
@@ -76,3 +78,4 @@ section: post
7678

7779
{# external JS assets #}
7880
<script data-helmet async src="/assets/js/sw-registration.js"></script>
81+
<script data-helmet async src="/assets/js/seia.js" type="module"></script>

0 commit comments

Comments
 (0)