Skip to content

Commit

Permalink
upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldesigndj committed Oct 28, 2023
1 parent 314f78e commit 515b5b8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 40 deletions.
7 changes: 6 additions & 1 deletion components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ export default function Footer({ children, active, hits = 0 }) {

{menus.map((item) => (
<div class="mb-4" key={item.title}>
<div class="font-bold">{item.title}</div>
<div class="font-bold">
{item.title === "Pages"
? <a href="/pages" class="text-black">{item.title}</a>
: item.title}
</div>

<ul class="mt-2">
{item.children.map((child) => (
<li class="mt-2" key={child.name}>
Expand Down
37 changes: 10 additions & 27 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,28 @@
"build": "deno run -A dev.ts build",
"preview": "deno run -A --unstable main.ts"
},
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
"fmt": {
"semiColons": false,
"exclude": [
"_fresh"
]
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"fmt": { "semiColons": false },
"lock": false,
"imports": {
"@/": "./",
"$fresh/": "https://deno.land/x/fresh@1.4.3/",
"$fresh/": "https://deno.land/x/fresh@1.5.2/",
"$std/": "https://deno.land/[email protected]/",
"$icons/": "https://deno.land/x/[email protected]/tsx/",
"fresh_seo": "https://deno.land/x/[email protected]/mod.ts",
"fresh_marionette": "https://deno.land/x/[email protected]/mod.js",
"preact": "https://esm.sh/preact@10.15.1",
"preact/": "https://esm.sh/preact@10.15.1/",
"preact-render-to-string": "https://esm.sh/*[email protected].1",
"@preact/signals": "https://esm.sh/*@preact/signals@1.1.3",
"@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.2.3",
"preact": "https://esm.sh/preact@10.18.1",
"preact/": "https://esm.sh/preact@10.18.1/",
"preact-render-to-string": "https://esm.sh/*[email protected].2",
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.1",
"@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.0",
"twind": "https://esm.sh/[email protected]",
"twind/": "https://esm.sh/[email protected]/",
"puppeteer": "https://deno.land/x/[email protected]/mod.ts",
"envalid": "https://deno.land/x/[email protected]/mod.ts",
"qs": "https://esm.sh/[email protected]",
"marked": "https://esm.sh/[email protected]"
},
"lint": {
"rules": {
"tags": [
"fresh",
"recommended"
]
},
"exclude": [
"_fresh"
]
}
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
"exclude": ["**/_fresh/*"]
}
26 changes: 14 additions & 12 deletions fresh.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import * as $0 from "./routes/_404.jsx"
import * as $1 from "./routes/_500.jsx"
import * as $2 from "./routes/_app.tsx"
import * as $3 from "./routes/_middleware.js"
import * as $4 from "./routes/index.tsx"
import * as $5 from "./routes/pages/[slug].jsx"
import * as $6 from "./routes/pages/index.jsx"
import * as $7 from "./routes/showcase.tsx"
import * as $8 from "./routes/sitemap.xml.js"
import * as $9 from "./routes/uploads/[file].js"
import * as $4 from "./routes/handler.tsx"
import * as $5 from "./routes/index.tsx"
import * as $6 from "./routes/pages/[slug].jsx"
import * as $7 from "./routes/pages/index.jsx"
import * as $8 from "./routes/showcase.tsx"
import * as $9 from "./routes/sitemap.xml.js"
import * as $10 from "./routes/uploads/[file].js"
import * as $$0 from "./islands/SingleImagePopup.jsx"
import * as $$1 from "./islands/Slideshow.tsx"
import * as $$2 from "./islands/ThumbnailGallery.tsx"
Expand All @@ -22,12 +23,13 @@ const manifest = {
"./routes/_500.jsx": $1,
"./routes/_app.tsx": $2,
"./routes/_middleware.js": $3,
"./routes/index.tsx": $4,
"./routes/pages/[slug].jsx": $5,
"./routes/pages/index.jsx": $6,
"./routes/showcase.tsx": $7,
"./routes/sitemap.xml.js": $8,
"./routes/uploads/[file].js": $9,
"./routes/handler.tsx": $4,
"./routes/index.tsx": $5,
"./routes/pages/[slug].jsx": $6,
"./routes/pages/index.jsx": $7,
"./routes/showcase.tsx": $8,
"./routes/sitemap.xml.js": $9,
"./routes/uploads/[file].js": $10,
},
islands: {
"./islands/SingleImagePopup.jsx": $$0,
Expand Down
5 changes: 5 additions & 0 deletions routes/handler.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const handler = {
GET: (_req, ctx) => {
return ctx.render({ ...ctx.state, hits: ctx.hits })
},
}

0 comments on commit 515b5b8

Please sign in to comment.