Skip to content

Commit

Permalink
Deploying to gh-pages from @ bea650c 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
oezguercelebi committed Jan 15, 2025
1 parent 26c7d2d commit 21a0dc2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
34 changes: 34 additions & 0 deletions v2/admin/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
backend:
name: github
repo: binary-builders/binary.builders
branch: dev # Specifically targeting the dev branch for v2
base_url: https://binary.builders/v2

media_folder: static/images
public_folder: /images

collections:
- name: "posts"
label: "Posts"
folder: "content/posts"
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Featured Image", name: "image", widget: "image", required: false}
- {label: "Description", name: "description", widget: "text"}
- {label: "Body", name: "body", widget: "markdown"}
- {label: "Tags", name: "tags", widget: "list", required: false}
- {label: "Draft", name: "draft", widget: "boolean", default: true}

- name: "pages"
label: "Pages"
folder: "content/pages"
create: true
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Description", name: "description", widget: "text"}
- {label: "Body", name: "body", widget: "markdown"}
- {label: "Menu", name: "menu", widget: "select", options: ["main"], required: false}
- {label: "Draft", name: "draft", widget: "boolean", default: true}
12 changes: 12 additions & 0 deletions v2/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" />
<title>Binary Builders v2 Content Manager</title>
</head>
<body>
<!-- Include the script that builds the page and powers Decap CMS -->
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>

0 comments on commit 21a0dc2

Please sign in to comment.