Skip to content

Commit 2a96ff0

Browse files
committed
remove webmentions, tweak layout
1 parent c59a592 commit 2a96ff0

File tree

12 files changed

+66
-354
lines changed

12 files changed

+66
-354
lines changed

astro.config.ts

-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ export default defineConfig({
4040
sitemap(),
4141
mdx(),
4242
],
43-
image: {
44-
domains: ["webmention.io"],
45-
},
4643
// https://docs.astro.build/en/guides/prefetch/
4744
prefetch: true,
4845
vite: {

src/components/BaseHead.astro

-18
Original file line numberDiff line numberDiff line change
@@ -158,24 +158,6 @@ const socialImageURL = new URL(ogImage ? ogImage : "/default-social-card.jpg", A
158158
type="application/rss+xml"
159159
/>
160160

161-
{/* Webmentions */}
162-
{
163-
siteConfig.webmentions && (
164-
<>
165-
<link
166-
href={siteConfig.webmentions.link}
167-
rel="webmention"
168-
/>
169-
{siteConfig.webmentions.pingback && (
170-
<link
171-
href={siteConfig.webmentions.pingback}
172-
rel="pingback"
173-
/>
174-
)}
175-
</>
176-
)
177-
}
178-
179161
<meta
180162
content={Astro.generator}
181163
name="generator"

src/components/blog/Hero.astro

+30-13
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = {
3939
</h1>
4040
<div class="flex flex-wrap items-center gap-x-3 gap-y-2">
4141
<p class="font-semibold">
42-
<FormattedDate class="dt-published" date={data.publishDate} dateTimeOptions={dateTimeOptions} />
42+
<FormattedDate
43+
class="dt-published"
44+
date={data.publishDate}
45+
dateTimeOptions={dateTimeOptions}
46+
/>
4347
/{" "}
4448
{remarkPluginFrontmatter.minutesRead}
4549
</p>
@@ -69,21 +73,23 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = {
6973
stroke-linejoin="round"
7074
stroke-width="1.5"
7175
viewBox="0 0 24 24"
72-
xmlns="http://www.w3.org/2000/svg"
73-
>
74-
<path d="M0 0h24v24H0z" fill="none" stroke="none" />
76+
xmlns="http://www.w3.org/2000/svg">
77+
<path
78+
d="M0 0h24v24H0z"
79+
fill="none"
80+
stroke="none"
81+
/>
7582
<path d="M7.859 6h-2.834a2.025 2.025 0 0 0 -2.025 2.025v2.834c0 .537 .213 1.052 .593 1.432l6.116 6.116a2.025 2.025 0 0 0 2.864 0l2.834 -2.834a2.025 2.025 0 0 0 0 -2.864l-6.117 -6.116a2.025 2.025 0 0 0 -1.431 -.593z" />
7683
<path d="M17.573 18.407l2.834 -2.834a2.025 2.025 0 0 0 0 -2.864l-7.117 -7.116" />
7784
<path d="M6 9h-.01" />
7885
</svg>
79-
{data.tags.map((tag, i) => (
86+
{data.tags.map((tag: unknown, i: number) => (
8087
<>
8188
<a
8289
aria-label={`View more blogs with the tag ${tag}`}
8390
class="cactus-link inline-block before:content-['#']"
8491
data-pagefind-filter="tag"
85-
href={`/tags/${tag}/`}
86-
>
92+
href={`/tags/${tag}/`}>
8793
{tag}
8894
</a>
8995
{i < data.tags.length - 1 && ", "}
@@ -103,8 +109,7 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = {
103109
stroke="currentColor"
104110
fill="none"
105111
stroke-linecap="round"
106-
stroke-linejoin="round"
107-
>
112+
stroke-linejoin="round">
108113
<path
109114
fill="none"
110115
stroke="currentColor"
@@ -114,10 +119,22 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = {
114119
d="m9 15l6-6m-4-3l.463-.536a5 5 0 0 1 7.071 7.072L18 13m-5 5l-.397.534a5.068 5.068 0 0 1-7.127 0a4.972 4.972 0 0 1 0-7.071L6 11"
115120
></path>
116121
</svg>
117-
<a class="u-url cactus-link" href={Astro.url}>permalink</a>
122+
<a
123+
class="u-url cactus-link"
124+
href={Astro.url}
125+
>permalink</a
126+
>
118127
</div>
119-
<em><p class="p-summary mt-4">{data.description}</p></em>
128+
<em
129+
><p class="p-summary mt-4 border-b-[0.5px] border-dashed border-gray-500 pb-4">
130+
{data.description}
131+
</p></em
132+
>
120133
<div class="hidden">
121-
<a rel="author" class="p-author h-card" href="/">Kieran McGuire</a>
134+
<a
135+
rel="author"
136+
class="p-author h-card"
137+
href="/"
138+
>Kieran McGuire</a
139+
>
122140
</div>
123-
<hr class="mt-2" />

src/components/blog/webmentions/Comments.astro

-89
This file was deleted.

src/components/blog/webmentions/Likes.astro

-51
This file was deleted.

src/components/blog/webmentions/index.astro

-30
This file was deleted.

src/components/layout/Footer.astro

+21-5
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,48 @@ const year = new Date().getFullYear();
66
---
77

88
<footer
9-
class="mt-16 gap-y-2 border-t-[0.5px] border-dashed border-gray-500 pb-4 pt-4 align-top text-xs text-gray-600 dark:text-gray-400">
9+
class="mt-12 gap-y-2 border-t-[0.5px] border-dashed border-gray-500 pb-4 pt-4 align-top text-xs text-gray-600 dark:text-gray-400">
1010
<div class="mt-0">
1111
Copyright &copy; {year}{" "}
1212
{siteConfig.author}
1313
</div>
1414
<div>
1515
<p class="mt-2">
1616
<Icon
17-
class="mr-1 inline h-4 w-4"
18-
name="mdi:cookie-off"
1917
aria-hidden="true"
18+
class="mr-1 inline h-4 w-4"
2019
focusable="false"
21-
/>No cookies between friends
20+
name="mdi:email-fast"
21+
/><a
22+
href="mailto:mailto:[email protected]"
23+
class="underline"
24+
>Send me an email!</a
25+
>
2226
</p>
2327
<p class="mt-2">
2428
<Icon
2529
class="mr-1 inline h-4 w-4"
2630
name="mdi:rss"
2731
aria-hidden="true"
2832
focusable="false"
29-
/>Valid RSS (<a
33+
/><a
34+
href="/rss.xml"
35+
class="underline"
36+
>RSS</a
37+
> (<a
3038
href="https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fkieranmcguire.uk%2Frss.xml"
3139
class="underline"
3240
>validator.w3.org</a
3341
>)
3442
</p>
43+
<p class="mt-2">
44+
<Icon
45+
class="mr-1 inline h-4 w-4"
46+
name="mdi:cookie-off"
47+
aria-hidden="true"
48+
focusable="false"
49+
/>No cookies between friends
50+
</p>
3551
<p class="mt-2">
3652
<Icon
3753
class="mr-1 inline h-4 w-4"

0 commit comments

Comments
 (0)