···324 return (
325 // all this margin stuff is a highly unfortunate hack so that the border-l on blockquote is the height of just the text rather than the height of the block, which includes padding.
326 <blockquote
327- className={`blockquoteBlock py-0! mb-2! ${className} ${PubLeafletBlocksBlockquote.isMain(previousBlock?.block) ? "-mt-2! pt-3!" : "mt-1!"}`}
328 {...blockProps}
329 >
330 <TextBlock
···324 return (
325 // all this margin stuff is a highly unfortunate hack so that the border-l on blockquote is the height of just the text rather than the height of the block, which includes padding.
326 <blockquote
327+ className={`blockquote py-0! mb-2! ${className} ${PubLeafletBlocksBlockquote.isMain(previousBlock?.block) ? "-mt-2! pt-3!" : "mt-1!"}`}
328 {...blockProps}
329 >
330 <TextBlock
···5import { Metadata } from "next";
6import { idResolver } from "app/(home-pages)/reader/idResolver";
7import { DocumentPageRenderer } from "app/lish/[did]/[publication]/[rkey]/DocumentPageRenderer";
8-import { NotFoundLayout } from "components/PageLayouts/NotFoundLayout";
910export async function generateMetadata(props: {
11 params: Promise<{ didOrHandle: string; rkey: string }>;
···35 let docRecord = document.data as PubLeafletDocument.Record;
3637 // For documents in publications, include publication name
38- let publicationName =
39- document.documents_in_publications[0]?.publications?.name;
4041 return {
42 icons: {
···65 let resolved = await idResolver.handle.resolve(didOrHandle);
66 if (!resolved) {
67 return (
68- <NotFoundLayout>
69- <p className="font-bold">Sorry, we can't find this handle!</p>
70 <p>
71 This may be a glitch on our end. If the issue persists please{" "}
72 <a href="mailto:contact@leaflet.pub">send us a note</a>.
73 </p>
74- </NotFoundLayout>
75 );
76 }
77 did = resolved;
78 } catch (e) {
79 return (
80- <NotFoundLayout>
81- <p className="font-bold">Sorry, we can't find this leaflet!</p>
82 <p>
83 This may be a glitch on our end. If the issue persists please{" "}
84 <a href="mailto:contact@leaflet.pub">send us a note</a>.
85 </p>
86- </NotFoundLayout>
87 );
88 }
89 }
···5import { Metadata } from "next";
6import { idResolver } from "app/(home-pages)/reader/idResolver";
7import { DocumentPageRenderer } from "app/lish/[did]/[publication]/[rkey]/DocumentPageRenderer";
089export async function generateMetadata(props: {
10 params: Promise<{ didOrHandle: string; rkey: string }>;
···34 let docRecord = document.data as PubLeafletDocument.Record;
3536 // For documents in publications, include publication name
37+ let publicationName = document.documents_in_publications[0]?.publications?.name;
03839 return {
40 icons: {
···63 let resolved = await idResolver.handle.resolve(didOrHandle);
64 if (!resolved) {
65 return (
66+ <div className="p-4 text-lg text-center flex flex-col gap-4">
67+ <p>Sorry, can't resolve handle.</p>
68 <p>
69 This may be a glitch on our end. If the issue persists please{" "}
70 <a href="mailto:contact@leaflet.pub">send us a note</a>.
71 </p>
72+ </div>
73 );
74 }
75 did = resolved;
76 } catch (e) {
77 return (
78+ <div className="p-4 text-lg text-center flex flex-col gap-4">
79+ <p>Sorry, can't resolve handle.</p>
80 <p>
81 This may be a glitch on our end. If the issue persists please{" "}
82 <a href="mailto:contact@leaflet.pub">send us a note</a>.
83 </p>
84+ </div>
85 );
86 }
87 }