Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/docs/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { TableOfContents } from "@/components/docs/table-of-contents"
import { Divider } from "@/components/layout/divider"
import { getBreadcrumbs } from "@/contentlayer/utils/get-breadcrumbs"
import { allDocsPages } from "contentlayer/generated"
import { formatDistance } from "date-fns"
import { notFound } from "next/navigation"

export const generateStaticParams = () =>
Expand Down Expand Up @@ -51,14 +52,14 @@ export default async function Page(props: {
{page.title}
</h2>
</div>
{/*

page.lastEdited && (
<div className="text-sm h-4 mt-1.5 mb-6">
Last edited{" "}
{formatDistance(new Date(), new Date(page.lastEdited))} ago.
</div>
)
*/}

<MobileTableOfContents
elements={page.headings}
pageFilePath={page._raw.sourceFilePath}
Expand Down
3 changes: 3 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export const metadata: Metadata = {
title: "Apalis - background task and message processing library for Rust",
description:
"Simple, extensible multithreaded background task and message processing library for Rust",
openGraph: {
images: "/images/og.png",
}
};

export default function RootLayout({ children }: { children: ReactNode }) {
Expand Down
Binary file added public/images/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading