Remove prism

This commit is contained in:
Digital Studium
2023-04-23 17:56:27 +03:00
parent 0682ac8961
commit d90ff60a80
23 changed files with 181 additions and 35 deletions

51
static/admin/config.yml Normal file
View 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
View 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>