import GlobalFooter from "../components/GlobalFooter.tsx"; import GlobalHeader from "../components/GlobalHeader.tsx"; import PageLayout from "../components/PageLayout.tsx"; import TableOfContents from "../components/TableOfContents.tsx"; import { Config, getTagLabel } from "../config.ts"; import { Element } from "../dom.ts"; import { Document } from "../djot/document.ts"; import { dateToString } from "../revision.ts"; import { getPostPublishedDate } from "../generators/post.ts"; export default function PostPage( doc: Document, config: Config, ) { return ( getTagLabel(config, slug))} metaTitle={`${doc.title}|${config.blog.siteName}`} requiresSyntaxHighlight config={config} >

{doc.title}

{doc.tags.length !== 0 && ( )}
{doc.toc && doc.toc.entries.length > 0 && ( )}

更新履歴

    {doc.revisions.map((rev) => (
  1. {`: ${rev.remark}`}
  2. ))}
{ // TODO: refactor (doc.root.children[0] as Element).children }
); }