mirror of
https://git.digitalstudium.com/digitalstudium/digitalstudium.com
synced 2023-12-29 08:06:35 +00:00
Remove prism
This commit is contained in:
51
static/admin/config.yml
Normal file
51
static/admin/config.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
backend:
|
||||
name: git-gateway
|
||||
|
||||
local_backend: true
|
||||
|
||||
# These lines should *not* be indented
|
||||
media_folder: "static/images" # Media files will be stored in the repo under static/images/uploads
|
||||
public_folder: "/images" # The src attribute for uploaded media will begin with /images/uploads
|
||||
|
||||
i18n:
|
||||
structure: multiple_folders
|
||||
locales: [en, ru]
|
||||
|
||||
collections:
|
||||
- name: posts
|
||||
label: Posts
|
||||
label_singular: Post
|
||||
folder: content
|
||||
path: '{{category}}/{{slug}}'
|
||||
slug: '{{filename}}{{extension}}'
|
||||
create: true
|
||||
i18n: true
|
||||
view_groups:
|
||||
- label: Year
|
||||
field: date
|
||||
# groups items based on the value matched by the pattern
|
||||
pattern: \d{4}
|
||||
- label: Category
|
||||
field: category
|
||||
fields:
|
||||
- label: Title
|
||||
name: title
|
||||
widget: string
|
||||
i18n: true
|
||||
- label: "Category"
|
||||
name: "category"
|
||||
widget: "select"
|
||||
options: ["/", "linux-lifehacks", "nginx-lifehacks", "python-lifehacks", "ubuntu-lifehacks"]
|
||||
i18n: duplicate
|
||||
- label: Filename
|
||||
name: filename
|
||||
widget: string
|
||||
i18n: duplicate
|
||||
- label: Date
|
||||
name: date
|
||||
widget: datetime
|
||||
i18n: duplicate
|
||||
- label: Body
|
||||
name: body
|
||||
widget: markdown
|
||||
i18n: true
|
13
static/admin/index.html
Normal file
13
static/admin/index.html
Normal file
@@ -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/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user