This commit is contained in:
Digital Studium
2023-05-08 18:46:26 +03:00
parent 2389983607
commit c2f72e6cce
7 changed files with 865 additions and 135 deletions

View File

@@ -3,9 +3,8 @@ backend:
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
media_folder: "static/images" # Media files will be stored in the repo under static/images
public_folder: "/images" # The src attribute for uploaded media will begin with /images
i18n:
structure: multiple_folders
@@ -23,7 +22,6 @@ collections:
view_groups:
- label: Year
field: date
# groups items based on the value matched by the pattern
pattern: \d{4}
- label: Category
field: category
@@ -35,7 +33,7 @@ collections:
- label: "Category"
name: "category"
widget: "select"
options: ["/", "linux-lifehacks", "nginx-lifehacks", "python-lifehacks", "ubuntu-lifehacks"]
options: ["/", "linux-lifehacks", "nginx-lifehacks", "python-lifehacks", "ubuntu-lifehacks", "bash-lifehacks"]
i18n: duplicate
- label: Filename
name: filename

View File

@@ -8,6 +8,6 @@
</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>
<script src="netlify-cms.js"></script>
</body>
</html>

723
static/admin/netlify-cms.js Normal file

File diff suppressed because one or more lines are too long