Added netlify

parent 0aec1847
Pipeline #2981 passed with stages
in 30 seconds
......@@ -2,6 +2,7 @@ image: ruby:2.3
pages:
script:
- curl -L -o admin/netlify-cms.js https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js
- bundle install --path vendor/bundle
- bundle exec jekyll build -d public --config "_config.yml,_config.prod.yml"
......
backend:
name: gitlab
repo: eliotberriot/eliotberriot.com # Path to your GitLab repository
auth_type: implicit # Required for implicit grant
app_id: 6c03940a6dc5a51e37006943c1eae9e1ccb90ee45944a44b25b7683230c884c6 # Application ID from your GitLab settings
api_root: https://code.eliotberriot.com/api/v4
base_url: https://code.eliotberriot.com
auth_endpoint: oauth/authorize
media_folder: assets/posts
collections:
- name: "blog" # Used in routes, e.g., /admin/collections/blog
label: "Blog post" # Used in the UI
folder: "_posts" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{year}}/{{year}}-{{month}}/{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "post"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Body", name: "body", widget: "markdown"}
<!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>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="netlify-cms.js"></script>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment