Skip to content

Commit

Permalink
merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisjofrank committed Nov 4, 2024
2 parents 26d2d91 + 589c475 commit e88430c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
42 changes: 42 additions & 0 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright 2022 the Deno authors. All rights reserved. MIT license.

export { serveDir } from "https://deno.land/[email protected]/http/file_server.ts";
export { walk } from "https://deno.land/[email protected]/fs/walk.ts";
export {
dirname,
fromFileUrl,
join,
relative,
} from "https://deno.land/[email protected]/path/mod.ts";
export {
type ConnInfo,
serve,
} from "https://deno.land/[email protected]/http/mod.ts";
export { extract as frontMatter } from "https://deno.land/[email protected]/front_matter/any.ts";

export * as gfm from "jsr:@deno/[email protected]";
export { Fragment, h } from "https://deno.land/x/[email protected]/mod.ts";
export {
default as html,
type HtmlOptions,
type VNode,
} from "https://deno.land/x/[email protected]/html.tsx";
import UnoCSS from "https://deno.land/x/[email protected]/plugins/unocss.ts";
import ColorScheme from "https://deno.land/x/[email protected]/plugins/color-scheme.ts";

export {
createReporter,
type Reporter as GaReporter,
} from "https://deno.land/x/[email protected]/mod.ts";
export { default as callsites } from "https://raw.githubusercontent.com/kt3k/callsites/v1.0.0/mod.ts";
export { Feed, type Item as FeedItem } from "https://esm.sh/[email protected]";
export { default as removeMarkdown } from "https://esm.sh/[email protected]";

// Add syntax highlighting support for C by default
import "https://esm.sh/[email protected]/components/prism-c?no-check";

export { ColorScheme, UnoCSS };
export type UnoConfig = typeof UnoCSS extends (
arg: infer P | undefined,
) => unknown ? P
: never;
4 changes: 2 additions & 2 deletions src/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function Index({ state, posts }: IndexProps) {
}

function PostCard(
{ post, dateFormat, lang }: {
{ post, dateFormat }: {
post: Post;
dateFormat?: DateFormat;
lang?: string;
Expand Down Expand Up @@ -233,7 +233,7 @@ export function PostPage({ post, state }: PostPageProps) {
);
}

function Footer(props: { author?: string }) {
function Footer(_props: { author?: string }) {
return (
<footer class="mt-20 pb-16 lt-sm:pb-8 lt-sm:mt-16">
<p class="flex items-center gap-2.5 text-gray-400/800 dark:text-gray-500/800 text-sm">
Expand Down

0 comments on commit e88430c

Please sign in to comment.