Skip to content

Commit

Permalink
updates decap cms settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bulbil committed Nov 17, 2023
1 parent 4d2eb47 commit d3486c4
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 19 deletions.
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module.exports = (eleventyConfig) => {
eleventyConfig.addPassthroughCopy("assets/favicon");
eleventyConfig.addPassthroughCopy("assets/font");
eleventyConfig.addPassthroughCopy("assets/js");
eleventyConfig.addPassthroughCopy("admin");

// for prefix path as needed for relative paths
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
Expand Down
69 changes: 52 additions & 17 deletions admin/config.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,64 @@
# config.yml
backend:
name: github
repo: hello-ulises/ulises.us
repo: hello-ulises/ulises-dev
branch: main
site_domain: pedantic-heyrovsky-2f6199.netlify.app
site_domain: ulises-dev.netlify.app

media_folder: assets/img
site_url: http://ulises.us
display_url: http://ulises.us
site_url: https://dev.ulises.us
display_url: https://dev.ulises.us
logo_url: https://avatars.githubusercontent.com/u/23337776?s=200&v=4
locale: en

collections:
- name: 'posts'
label: 'Posts'
label_singular: 'Post'
folder: '_posts/'
- name: "posts"
label: "Posts"
label_singular: "Post"
folder: "_posts/"
create: true
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields:
- { name: 'title', label: 'Title', widget: 'string', description: 'This will appear as the post title' }
- { name: 'date', label: 'Date', widget: 'datetime', description: 'Date of post affects in which order posts appear', date_format: "YYYY-MM-DD" }
- { name: 'event_date', label: 'Event Date', widget: 'string', description: 'If applicable, enter date and time of event as it should appear in the text of the post', required: false }
- { name: 'layout', label: 'Layout', widget: 'hidden', default: 'post' }
- { name: 'categories', label: 'Column', widget: 'select', options: ["left", "right"], required: false }
- { name: 'tags', label: 'Tags', widget: 'select', multiple: true, options: ['sticky','active-voice','intimacy'], required: false }
- { name: 'published', label: 'Published', widget: 'boolean', default: true}
- { name: 'body', label: 'Body', widget: 'markdown'}
- {
name: "title",
label: "Title",
widget: "string",
description: "This will appear as the post title",
}
- {
name: "date",
label: "Date",
widget: "datetime",
description: "Date of post affects in which order posts appear",
date_format: "YYYY-MM-DD",
}
- {
name: "event_date",
label: "Event Date",
widget: "string",
description: "If applicable, enter date and time of event as it should appear in the text of the post",
required: false,
}
- { name: "layout", label: "Layout", widget: "hidden", default: "post" }
- {
name: "categories",
label: "Column",
widget: "select",
options: ["left", "right"],
required: false,
}
- {
name: "tags",
label: "Tags",
widget: "select",
multiple: true,
options: ["sticky", "active-voice", "intimacy"],
required: false,
}
- {
name: "published",
label: "Published",
widget: "boolean",
default: true,
}
- { name: "body", label: "Body", widget: "markdown" }
7 changes: 5 additions & 2 deletions admin/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<!doctype html>
<html>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
</head>

<body>
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
</body>
</html>

</html>

0 comments on commit d3486c4

Please sign in to comment.