Skip to content

Commit

Permalink
feat: added decap cms
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolorentedev committed Nov 6, 2024
1 parent 76ff365 commit ee012b5
Show file tree
Hide file tree
Showing 2 changed files with 390 additions and 0 deletions.
377 changes: 377 additions & 0 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,377 @@
backend:
name: github
repo: barklarm/barklarm-website
branch: main
base_url: https://stripe-productive-freighter.glitch.me
media_folder: "static/img/blog"
public_folder: "https://raw.githubusercontent.com/barklarm/barklarm-website/main/static/img/blog"
collections:
- name: "blog-scheduler" # Used in routes, e.g., /admin/collections/blog
label: "Blog Scheduler" # Used in the UI
folder: "blog-scheduler" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Authors", name: "authors", widget: "hidden", default: "alvarolorentedev"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Organization", name: "organization_id", widget: "hidden", default: 9041}
- label: "Tags"
name: "tags"
widget: "select"
multiple: true
min: 1
max: 4
options:
- javascript
- webdev
- beginners
- programming
- tutorial
- react
- archlinux
- python
- news
- android
- productivity
- css
- discuss
- devops
- career
- node
- html
- codenewbie
- opensource
- latestnigerianewslat
- typescript
- aws
- java
- github
- showdev
- testing
- php
- newsbrief
- security
- linux
- vue
- docker
- angular
- uncategorized
- blockchain
- database
- machinelearning
- git
- go
- ruby
- laravel
- southafricanews
- design
- cloud
- mobile
- dotnet
- computerscience
- datascience
- csharp
- kubernetes
- serverless
- azure
- api
- rails
- technology
- algorithms
- codepen
- help
- reactnative
- softwaredevelopment
- architecture
- flutter
- 100daysofcode
- startup
- ios
- blog
- macosapps
- development
- learning
- coding
- vscode
- watercooler
- sportnews
- nextjs
- frontend
- wordpress
- django
- graphql
- sql
- interview
- cpp
- ubuntu
- cryptocurrency
- gamedev
- kotlin
- rust
- web
- performance
- google
- hacktoberfest
- business
- ai
- todayilearned
- motivation
- software
- ux
- bitcoin
- functional
- challenge
- fundingamer
default: []
- {label: "Description", name: "description", widget: "string"}
- {label: "Draft", name: "draft", widget: "boolean", default: true}
- {label: "Publish Date", name: "published", widget: "datetime", required: false}
- {label: "Cover Image", name: "cover_image", widget: "image", required: false}
- {label: "Canonical URL", name: "canonical_url", widget: "string", required: false}
- {label: "Series", name: "series", widget: "string", required: false}
- {label: "Body", name: "body", widget: "markdown"}
- name: "blog" # Used in routes, e.g., /admin/collections/blog
label: "Blog" # Used in the UI
folder: "blog" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Authors", name: "authors", widget: "hidden", default: "alvarolorentedev"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Organization", name: "organization_id", widget: "hidden", default: 9041}
- label: "Tags"
name: "tags"
widget: "select"
multiple: true
min: 1
max: 4
options:
- javascript
- webdev
- beginners
- programming
- tutorial
- react
- archlinux
- python
- news
- android
- productivity
- css
- discuss
- devops
- career
- node
- html
- codenewbie
- opensource
- latestnigerianewslat
- typescript
- aws
- java
- github
- showdev
- testing
- php
- newsbrief
- security
- linux
- vue
- docker
- angular
- uncategorized
- blockchain
- database
- machinelearning
- git
- go
- ruby
- laravel
- southafricanews
- design
- cloud
- mobile
- dotnet
- computerscience
- datascience
- csharp
- kubernetes
- serverless
- azure
- api
- rails
- technology
- algorithms
- codepen
- help
- reactnative
- softwaredevelopment
- architecture
- flutter
- 100daysofcode
- startup
- ios
- blog
- macosapps
- development
- learning
- coding
- vscode
- watercooler
- sportnews
- nextjs
- frontend
- wordpress
- django
- graphql
- sql
- interview
- cpp
- ubuntu
- cryptocurrency
- gamedev
- kotlin
- rust
- web
- performance
- google
- hacktoberfest
- business
- ai
- todayilearned
- motivation
- software
- ux
- bitcoin
- functional
- challenge
- fundingamer
default: []
- {label: "Description", name: "description", widget: "string"}
- {label: "Draft", name: "draft", widget: "boolean", default: true}
- {label: "Publish Date", name: "published", widget: "datetime", required: false}
- {label: "Cover Image", name: "cover_image", widget: "image", required: false}
- {label: "Canonical URL", name: "canonical_url", widget: "string", required: false}
- {label: "Series", name: "series", widget: "string", required: false}
- {label: "Body", name: "body", widget: "markdown"}
- name: "hashnode" # Used in routes, e.g., /admin/collections/blog
label: "Hashnode post" # Used in the UI
folder: "integrations/hashnode" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Domain", name: "domain", widget: "hidden", default: "kanekotic.hashnode.dev"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Subtitle", name: "subtitle", widget: "string"}
- label: "Tags"
name: "tags"
widget: "select"
multiple: true
min: 1
max: 4
options:
- javascript
- webdev
- beginners
- programming
- tutorial
- react
- archlinux
- python
- news
- android
- productivity
- css
- discuss
- devops
- career
- node
- html
- codenewbie
- opensource
- latestnigerianewslat
- typescript
- aws
- java
- github
- showdev
- testing
- php
- newsbrief
- security
- linux
- vue
- docker
- angular
- uncategorized
- blockchain
- database
- machinelearning
- git
- go
- ruby
- laravel
- southafricanews
- design
- cloud
- mobile
- dotnet
- computerscience
- datascience
- csharp
- kubernetes
- serverless
- azure
- api
- rails
- technology
- algorithms
- codepen
- help
- reactnative
- softwaredevelopment
- architecture
- flutter
- 100daysofcode
- startup
- ios
- blog
- macosapps
- development
- learning
- coding
- vscode
- watercooler
- sportnews
- nextjs
- frontend
- wordpress
- django
- graphql
- sql
- interview
- cpp
- ubuntu
- cryptocurrency
- gamedev
- kotlin
- rust
- web
- performance
- google
- hacktoberfest
- business
- ai
- todayilearned
- motivation
- software
- ux
- bitcoin
- functional
- challenge
- fundingamer
default: []
- {label: "Draft", name: "ignorePost", widget: "boolean", default: true}
- {label: "Cover Image", name: "cover", widget: "image", required: false}
- {label: "Canonical URL", name: "canonical", widget: "string", required: false}
- {label: "Body", name: "body", widget: "markdown"}
13 changes: 13 additions & 0 deletions static/admin/index.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit ee012b5

Please sign in to comment.