sz media refactor

This commit is contained in:
Denys Konovalov 2023-12-12 19:19:34 +01:00
parent 4f4957c7e1
commit 7b038041b2
Signed by: Denys Konovalov
GPG Key ID: 0037E1B0E33BD2C9
7 changed files with 5 additions and 14 deletions

@ -3,7 +3,7 @@ title: "The Inheritance Games"
draft: false
date: 2023-02-16
description: ""
image: buchempfehlung-2023-01.webp
image: /media/buchempfehlung-2023-01.webp
categories:
- Buchempfehlungen
tags:

@ -9,13 +9,13 @@
/>
<link
rel="stylesheet"
href="https://unpkg.com/@staticcms/app@next/dist/main.css"
href="https://unpkg.com/@staticcms/app@^3.0.0/dist/main.css"
/>
<title>Static CMS</title>
</head>
<body>
<script src="https://unpkg.com/@staticcms/app@next/dist/static-cms-app.js"></script>
<script src="https://unpkg.com/@staticcms/app@^3.0.0/dist/static-cms-app.js"></script>
<script type="module">
import Icons from "https://cantorgymnasium.de/admin/icons.js";
import config from "./config.js";

@ -4,18 +4,12 @@ const PostCollection = {
description: "Hier könnt ihr die Artikel der Schülerzeitung bearbeiten.",
icon: "news",
folder: "content/post",
path: "{{slug}}/index.md",
create: true,
editor: {
preview: true,
frame: true,
size: "half",
},
media_folder: "/static/media",
public_folder: "/media",
media_library: {
folder_support: true,
},
filter: {
field: "type",
value: "post",
@ -89,15 +83,12 @@ const PagesCollection = {
description: "Hier könnt ihr die Zusatzseiten der Website bearbeiten.",
icon: "page",
folder: "content/page",
path: "{{slug}}/index.md",
create: true,
editor: {
preview: true,
frame: true,
size: "half",
},
media_folder: "/static/media",
public_folder: "/media",
media_library: {
folder_support: true,
},

@ -17,8 +17,8 @@ const config = {
},
},
local_backend: true,
media_folder: "/",
public_folder: "/",
media_folder: "/static/media",
public_folder: "/media",
media_library: {
max_file_size: 10240000,
folder_support: true,