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
File renamed without changes.
2 changes: 0 additions & 2 deletions fresh.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import errorHandling from "./plugins/error_handling.ts";
import securityHeaders from "./plugins/security_headers.ts";
import type { FreshConfig } from "$fresh/server.ts";
import { ga4Plugin } from "https://deno.land/x/fresh_ga4@0.0.4/mod.ts";
import { blog } from "./plugins/blog/mod.ts";

export default {
plugins: [
Expand All @@ -16,6 +15,5 @@ export default {
tailwind(),
errorHandling,
securityHeaders,
blog(),
],
} satisfies FreshConfig;
6 changes: 6 additions & 0 deletions fresh.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ import * as $api_users_login_index from "./routes/api/users/[login]/index.ts";
import * as $api_users_login_items from "./routes/api/users/[login]/items.ts";
import * as $api_users_index from "./routes/api/users/index.ts";
import * as $api_vote from "./routes/api/vote.ts";
import * as $blog_slug_ from "./routes/blog/[slug].tsx";
import * as $blog_index from "./routes/blog/index.tsx";
import * as $dashboard_index from "./routes/dashboard/index.tsx";
import * as $dashboard_stats from "./routes/dashboard/stats.tsx";
import * as $dashboard_users from "./routes/dashboard/users.tsx";
import * as $feed from "./routes/feed.ts";
import * as $index from "./routes/index.tsx";
import * as $pricing from "./routes/pricing.tsx";
import * as $submit from "./routes/submit.tsx";
Expand All @@ -45,9 +48,12 @@ const manifest = {
"./routes/api/users/[login]/items.ts": $api_users_login_items,
"./routes/api/users/index.ts": $api_users_index,
"./routes/api/vote.ts": $api_vote,
"./routes/blog/[slug].tsx": $blog_slug_,
"./routes/blog/index.tsx": $blog_index,
"./routes/dashboard/index.tsx": $dashboard_index,
"./routes/dashboard/stats.tsx": $dashboard_stats,
"./routes/dashboard/users.tsx": $dashboard_users,
"./routes/feed.ts": $feed,
"./routes/index.tsx": $index,
"./routes/pricing.tsx": $pricing,
"./routes/submit.tsx": $submit,
Expand Down
21 changes: 0 additions & 21 deletions plugins/blog/mod.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { defineRoute } from "$fresh/server.ts";
import { CSS, render } from "jsr:@deno/gfm";
import { getPost } from "../../utils/posts.ts";
import { getPost } from "@/utils/posts.ts";
import Head from "@/components/Head.tsx";
import Share from "../../components/Share.tsx";
import Share from "@/components/Share.tsx";

export default defineRoute(async (_req, ctx) => {
const post = await getPost(ctx.params.slug);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { defineRoute } from "$fresh/server.ts";
import { getPosts, type Post } from "../../utils/posts.ts";
import { getPosts, type Post } from "@/utils/posts.ts";
import Head from "@/components/Head.tsx";

function PostCard(props: Post) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/blog/routes/feed.ts → routes/feed.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023-2025 the Deno authors. All rights reserved. MIT license.
import { Feed } from "npm:feed@4.2.2";
import { getPosts } from "../utils/posts.ts";
import { getPosts } from "@/utils/posts.ts";
import { SITE_NAME } from "@/utils/constants.ts";
import { defineRoute } from "$fresh/server.ts";

Expand Down
File renamed without changes.
File renamed without changes.
Loading