Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
oezguercelebi committed Jan 15, 2025
1 parent 93231f8 commit a3afdf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
22 changes: 1 addition & 21 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ backend:
name: github
repo: binary-builders/binary.builders
branch: dev
base_url: https://api.github.com
auth_endpoint: https://github.com/login/oauth/authorize
client_id: Ov23liRMIoF49EgraU0t
scope: repo,user

media_folder: static/images
public_folder: /images
Expand All @@ -15,23 +12,6 @@ collections:
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}
- {label: "Body", name: "body", widget: "markdown"}
20 changes: 1 addition & 19 deletions static/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,7 @@
<title>Binary Builders v2 Content Manager</title>
</head>
<body>
<script>
window.CMS_MANUAL_INIT = true;
</script>
<!-- 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>
<script>
const config = {
load_config_file: true,
local_backend: false,
backend: {
name: 'github',
repo: 'binary-builders/binary.builders',
branch: 'dev',
base_url: 'https://api.github.com',
auth_endpoint: 'https://github.com/login/oauth/authorize',
client_id: 'Ov23liRMIoF49EgraU0t',
scope: 'repo,user'
}
};
window.CMS.init({ config });
</script>
</body>
</html>

0 comments on commit a3afdf3

Please sign in to comment.