Skip to content

Commit

Permalink
Add CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Jun 5, 2024
1 parent 430c808 commit 465fd46
Show file tree
Hide file tree
Showing 3 changed files with 553 additions and 1 deletion.
11 changes: 11 additions & 0 deletions _cms.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import lumeCms from "lume/cms/mod.ts";

const cms = lumeCms();

// Configuration here
cms.collection("Vereinsordnungen", "src:vo/*.typ", [
"content: textarea",
]);
cms.upload("Fonts", "src:fonts");

export default cms;
4 changes: 3 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"imports": {
"@nick/clsx": "jsr:@nick/clsx@^0.2.2",
"lume/": "https://deno.land/x/[email protected]/",
"lume/cms/": "https://cdn.jsdelivr.net/gh/lumeland/[email protected]/",
"react": "npm:react"
},
"tasks": {
"lume": "echo \"import 'lume/cli.ts'\" | deno run -A -",
"build": "deno task lume",
"serve": "deno task lume -s"
"serve": "deno task lume -s",
"cms": "deno task lume cms"
},
"compilerOptions": {
"types": [
Expand Down
Loading

0 comments on commit 465fd46

Please sign in to comment.