Skip to content

Commit

Permalink
CMS system
Browse files Browse the repository at this point in the history
  • Loading branch information
MgramTheDuck committed Dec 9, 2024
1 parent 39cc16e commit f628bf4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "PowerShell",
"request": "launch",
"name": "Run Local Server",
"script": "bundle exec jekyll serve --livereload",
"script": "bundle exec jekyll serve",
"args": [],
}
]
Expand Down
24 changes: 24 additions & 0 deletions admin/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
backend:
name: github
repo: materiaraiding/materiaraiding
branch: main # Branch to update (optional; defaults to master)

media_folder: "assets/images" # Media files will be stored in the repo under static/images/uploads
public_folder: "/images" # The src attribute for uploaded media will begin with /images/uploads

collections:
- name: "ultimate"
label: "Ultimate" # Used in the UI
folder: "_ultimate" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
fields: # The fields for each document, usually in front matter
- { label: "Layout", name: "layout", widget: "hidden", default: "guide" }
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "string" }
- { label: "Permalink", name: "permalink", widget: "string" }
- { label: "expansion", name: "expansion", widget: "string" }
- { label: "difficulty", name: "difficulty", widget: "string" }
- { label: "discussionlink", name: "discussionlink", widget: "string" }
- { label: "Page Image", name: "image", widget: "string" }
- { label: "Navigation Order", name: "nav_order", widget: "number" }
- { label: "Body", name: "body", widget: "markdown" }
12 changes: 12 additions & 0 deletions admin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<title>Content Manager</title>
</head>
<body>
<script src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"></script>
</body>
</html>

0 comments on commit f628bf4

Please sign in to comment.