Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update site config #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions public/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@ backend:
media_folder: "public/images/uploads" # Media files will be stored in the repo under static/images/uploads
public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads

local_backend: true

collections:
- name: "config"
label: "Site Config"
label: "Landing Page"
description: "Change your landing page content such as testimonials, message from founder, etc."
delete: false
editor:
preview: false
files:
- name: "general"
label: "Site Config"
file: "content/site_config.json"
description: "General site settings"
description: "General site settings"
fields:
- label: "Site title"
name: "site_title"
Expand Down Expand Up @@ -43,14 +46,15 @@ collections:
- label: "Testimonials"
name: "site_testimonials"
widget: "list"
summary: "{{fields.name}} - {{fields.count}}"
summary: "{{fields.name}} - {{fields.course}}"
fields:
- {label: Name, name: name, widget: string}
- {label: Avatar, name: avatar, widget: image}
- {label: Course, name: course, widget: string}
- {label: Testimonial, name: testimonial, widget: markdown}
- name: "about"
label: "About"
label: "About Page"
description: "Change your about page content such as description, vision, mission, etc."
delete: false
editor:
preview: false
Expand All @@ -70,7 +74,8 @@ collections:
name: "vision"
widget: "markdown"
- name: "courses"
label: "Courses"
label: "Courses Page"
description: "Modify all courses as you wish"
delete: false
editor:
preview: false
Expand All @@ -91,9 +96,7 @@ collections:
- {label: Icon, name: image, widget: image}
- label: Features
name: what_will_you_get
widget: object
field:
- {label: Feature, name: feature, widget: string}
widget: list
- name: "test_series"
label: "Test Series"
delete: false
Expand All @@ -116,9 +119,7 @@ collections:
- {label: "Icon", name: "image", widget: "image", default: "images/uploads/test_default.png"}
- label: "Features"
name: "what_will_you_get"
widget: "object"
fields:
- {label: "Feature", name: "feature", widget: "string"}
widget: "list"
- name: "faculties"
label: "Faculties"
delete: false
Expand Down