tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
add rel=alternate links to at-uris
awarm.space
4 months ago
889e4e4c
fdf3149b
+12
2 changed files
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
page.tsx
layout.tsx
+6
app/lish/[did]/[publication]/[rkey]/page.tsx
···
41
41
let docRecord = document.data as PubLeafletDocument.Record;
42
42
43
43
return {
44
44
+
icons: {
45
45
+
other: {
46
46
+
rel: "alternate",
47
47
+
url: document.uri,
48
48
+
},
49
49
+
},
44
50
title:
45
51
docRecord.title +
46
52
" - " +
+6
app/lish/[did]/[publication]/layout.tsx
···
46
46
return {
47
47
title: pubRecord?.name || "Untitled Publication",
48
48
description: pubRecord?.description || "",
49
49
+
icons: {
50
50
+
other: {
51
51
+
rel: "alternate",
52
52
+
url: publication.uri,
53
53
+
},
54
54
+
},
49
55
alternates: pubRecord?.base_path
50
56
? {
51
57
types: {