Test adding Decap CMS
ci/woodpecker/manual/woodpecker Pipeline was successful
Details
ci/woodpecker/manual/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
577dfb1a89
commit
eca8d40480
|
@ -0,0 +1,110 @@
|
|||
backend:
|
||||
name: gitea
|
||||
repo: mattcen/hugo-cms-test # Path to your Gitea repository
|
||||
app_id: 27deeec5-b711-4181-8ad7-efd8b28286a8 # The Client ID provided by Gitea
|
||||
api_root: https://git.mattcen.com/api/v1 # API URL of your Gitea instance
|
||||
base_url: https://git.mattcen.com # Root URL of your Gitea instance
|
||||
# optional, defaults to master
|
||||
branch: main
|
||||
|
||||
media_folder: "site/static/img" # Folder where user uploaded files should go
|
||||
public_folder: "img"
|
||||
|
||||
collections: # A list of collections the CMS should be able to edit
|
||||
- name: "post" # Used in routes, ie.: /admin/collections/:slug/edit
|
||||
label: "Post" # Used in the UI, ie.: "New Post"
|
||||
folder: "site/content/post" # The path to the folder where the documents are stored
|
||||
create: true # Allow users to create new documents in this collection
|
||||
fields: # The fields each document in this collection have
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
- {label: "Publish Date", name: "date", widget: "datetime"}
|
||||
- {label: "Intro Blurb", name: "description", widget: "text"}
|
||||
- {label: "Image", name: "image", widget: "image", required: false}
|
||||
- {label: "Body", name: "body", widget: "markdown"}
|
||||
- name: "pages"
|
||||
label: "Pages"
|
||||
files:
|
||||
- file: "site/content/_index.md"
|
||||
label: "Home Page"
|
||||
name: "home"
|
||||
fields:
|
||||
- {label: Title, name: title, widget: string}
|
||||
- {label: Subtitle, name: subtitle, widget: string}
|
||||
- {label: Image, name: image, widget: image}
|
||||
- {label: "Blurb", name: blurb, widget: object, fields: [
|
||||
{label: "Heading", name: "heading", widget: string},
|
||||
{label: "Text", name: "text", widget: "text"}]}
|
||||
- {label: "Intro", name: intro, widget: object, fields: [
|
||||
{label: "Heading", name: "heading", widget: string},
|
||||
{label: "Text", name: "text", widget: "text"}]}
|
||||
- {label: "Products", name: products, widget: list, fields: [
|
||||
{label: "Image", name: "image", widget: "image"},
|
||||
{label: "Text", name: "text", widget: "text"}]}
|
||||
- {label: "Values", name: "values", widget: "object", fields: [
|
||||
{label: "Heading", name: "heading", widget: string},
|
||||
{label: "Text", name: "text", widget: "text"}]}
|
||||
- file: "site/content/contact/_index.md"
|
||||
label: "Contact Page"
|
||||
name: "contact"
|
||||
fields:
|
||||
- {label: Title, name: title, widget: string}
|
||||
- {label: Logo, name: logo, widget: image}
|
||||
- {label: Body, name: body, widget: markdown}
|
||||
- label: Contact Entries
|
||||
name: contact_entries
|
||||
widget: list
|
||||
fields:
|
||||
- label: Heading
|
||||
name: heading
|
||||
widget: string
|
||||
- label: Text
|
||||
name: text
|
||||
widget: text
|
||||
- file: "site/content/products/_index.md"
|
||||
label: "Products Page"
|
||||
name: "products"
|
||||
fields:
|
||||
- {label: Title, name: title, widget: string}
|
||||
- {label: Image, name: image, widget: image}
|
||||
- {label: Intro, name: intro, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: text}, {label: Blurbs, name: blurbs, widget: list, fields: [{label: Image, name: image, widget: image}, {label: Text, name: text, widget: text}]}]}
|
||||
- {label: Main, name: main, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: text}, {label: Image1, name: image1, widget: object, fields: [{label: Image, name: image, widget: image}, {label: Alt, name: alt, widget: string}]}, {label: Image2, name: image2, widget: object, fields: [{label: Image, name: image, widget: image}, {label: Alt, name: alt, widget: string}]}, {label: Image3, name: image3, widget: object, fields: [{label: Image, name: image, widget: image}, {label: Alt, name: alt, widget: string}]}]}
|
||||
- {label: Testimonials, name: testimonials, widget: list, fields: [{label: Quote, name: quote, widget: string}, {label: Author, name: author, widget: string}]}
|
||||
- {label: Full_image, name: full_image, widget: image}
|
||||
- {label: Pricing, name: pricing, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: string}, {label: Plans, name: plans, widget: list, fields: [{label: Plan, name: plan, widget: string}, {label: Price, name: price, widget: string}, {label: Description, name: description, widget: string}, {label: Items, name: items, widget: list}]}]}
|
||||
- file: "site/content/values/_index.md"
|
||||
label: "Values Page"
|
||||
name: "values"
|
||||
fields:
|
||||
- {label: Title, name: title, widget: string}
|
||||
- {label: Image, name: image, widget: image}
|
||||
- label: Values
|
||||
name: values
|
||||
widget: list
|
||||
fields:
|
||||
- {label: Heading, name: heading, widget: string}
|
||||
- {label: Text, name: text, widget: text}
|
||||
- {label: Image, name: imageUrl, widget: image}
|
||||
- name: "site_settings"
|
||||
label: "Site Settings"
|
||||
files:
|
||||
- file: "site/data/footer.json"
|
||||
label: Footer
|
||||
name: footer
|
||||
fields:
|
||||
- {label: Title, name: title, widget: string}
|
||||
- {label: Blurb, name: blurb, widget: text}
|
||||
- file: "site/config.toml"
|
||||
label: Hugo Config
|
||||
name: config
|
||||
editor:
|
||||
preview: false
|
||||
fields:
|
||||
- {label: Site Title for Browser Tab, name: title, widget: string}
|
||||
- label: Params
|
||||
name: params
|
||||
widget: object
|
||||
fields:
|
||||
- label: Open Graph Image
|
||||
name: images
|
||||
widget: list
|
||||
field: { label: Image, name: image, widget: image }
|
|
@ -0,0 +1,13 @@
|
|||
<!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>
|
||||
<!-- 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>
|
Loading…
Reference in New Issue