gitea migration
This commit is contained in:
@ -1,12 +1,9 @@
|
||||
backend:
|
||||
name: gitlab
|
||||
repo: gcg/gcg.pages.cantorgymnasium.de
|
||||
name: gitea
|
||||
repo: gcg/gcg-website
|
||||
branch: master
|
||||
auth_type: pkce
|
||||
app_id: 469e4923e9b0a2d128604dfdf8e5c413665d65f730e4f563541e237210d29992
|
||||
api_root: https://gitlab.cantorgymnasium.de/api/v4
|
||||
base_url: https://gitlab.cantorgymnasium.de
|
||||
auth_endpoint: oauth/authorize
|
||||
api_root: https://git.cantorgymnasium.de/api/v1
|
||||
base_url: https://oauth.cantorgymnasium.de
|
||||
commit_messages:
|
||||
create: "{{slug}} in {{collection}} erstellt"
|
||||
update: "{{slug}} in {{collection}} aktualisiert"
|
||||
@ -444,9 +441,9 @@ collections:
|
||||
- {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false}
|
||||
- {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"}
|
||||
- {label: "Metabeschreibung", name: "description", widget: "text", required: false}
|
||||
- name: "begabtenfoerderung-index"
|
||||
- name: "begabte-index"
|
||||
label: "Begabtenförderung"
|
||||
file: "content/german/begabtenfoerderung/_index.md"
|
||||
file: "content/german/begabte/_index.md"
|
||||
fields:
|
||||
- {label: "Titel", name: "title", widget: "string"}
|
||||
- {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false}
|
||||
@ -689,27 +686,27 @@ collections:
|
||||
- {label: "Website", name: "web_url", widget: "string", required: false}
|
||||
- {label: "Type", name: "type", widget: "hidden", default: "wettbewerbe"}
|
||||
- {label: "Text", name: "body", widget: "markdown"}
|
||||
- name: "begabtenfoerderung"
|
||||
- name: "begabte"
|
||||
icon: "book"
|
||||
label: "Begabtenförderung"
|
||||
label_singular: "Begabtenförderung"
|
||||
folder: "content/german/begabtenfoerderung"
|
||||
filter: {field: "type", value: "begabtenfoerderung"}
|
||||
folder: "content/german/begabte"
|
||||
filter: {field: "type", value: "begabte"}
|
||||
create: true
|
||||
editor:
|
||||
preview: false
|
||||
media_folder: '/static/media/begabtenfoerderung'
|
||||
public_folder: '/media/begabtenfoerderung'
|
||||
media_folder: '/static/media/begabte'
|
||||
public_folder: '/media/begabte'
|
||||
fields:
|
||||
- {label: "Titel", name: "title", widget: "string"}
|
||||
- {label: "Entwurf", name: "draft", widget: "boolean", default: false, required: false}
|
||||
- {label: "Hintergrundbild", name: "bg_image", widget: "hidden", default: "/media/backgrounds/page-title.webp"}
|
||||
- {label: "Metabeschreibung", name: "description", widget: "text", required: false}
|
||||
- {label: "Bild", name: "image", widget: "image", default: "/media/begabtenfoerderung/image.webp", required: false}
|
||||
- {label: "Bild", name: "image", widget: "image", default: "/media/begabte/image.webp", required: false}
|
||||
- {label: "Fach", name: "category", widget: "string"}
|
||||
- {label: "Klassenstufen", name: "class", widget: "string"}
|
||||
- {label: "Website", name: "web_url", widget: "string", required: false}
|
||||
- {label: "Type", name: "type", widget: "hidden", default: "begabtenfoerderung"}
|
||||
- {label: "Type", name: "type", widget: "hidden", default: "begabte"}
|
||||
- {label: "Text", name: "body", widget: "markdown"}
|
||||
- name: "schulchronik"
|
||||
icon: "timeline"
|
||||
|
@ -13,25 +13,32 @@
|
||||
}
|
||||
</style>
|
||||
<!-- Include the script that builds the page and powers Static CMS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/@staticcms/app@^1.0.0/dist/static-cms-app.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@staticcms/app@^1.1.3/dist/static-cms-app.js"></script>
|
||||
<script>
|
||||
CMS.init();
|
||||
var icons = [['home', 'fa fa-house'], ['settings', 'fa fa-gear'], ['user', 'fa fa-user'], ['page', 'fa fa-file'], ['document', 'fa fa-file-lines'], ['news', 'fa fa-newspaper'], ['award', 'fa fa-award'], ['group', 'fa fa-people-group'], ['trophy', 'fa fa-trophy'], ['book', 'fa fa-book'], ['timeline', 'fa fa-timeline'], ['graduation-cap', 'fa fa-graduation-cap'], ['info', 'fa fa-circle-info']];
|
||||
var icons = [['home', 'fa fa-house'], ['settings', 'fa fa-gear'], ['user', 'fa fa-user'], ['page', 'fa fa-file'], ['document', 'fa fa-file-lines'], ['news', 'fa fa-newspaper'], ['award', 'fa fa-award'], ['group', 'fa fa-people-group'], ['trophy', 'fa fa-trophy'], ['book', 'fa fa-book'], ['timeline', 'fa fa-timeline'], ['graduation-cap', 'fa fa-graduation-cap'], ['info', 'fa fa-circle-info'], ['desktop', 'fa-solid fa-desktop'], ['bookmark', 'fa-solid fa-bookmark']];
|
||||
icons.forEach(icon => {
|
||||
CMS.registerIcon(icon[0], ({}) => { return(h('i', {"className": icon[1]})); });
|
||||
});
|
||||
const CustomPage = () => {
|
||||
return h('div', {}, 'I am a custom page!');
|
||||
const StatusPage = () => {
|
||||
return h('a', {href: "https://drone.cantorgymnasium.de/gcg/gcg-website"}, h('img', {src: "https://drone.cantorgymnasium.de/api/badges/gcg/gcg-website/status.svg"}));
|
||||
};
|
||||
|
||||
CMS.registerAdditionalLink({
|
||||
id: 'info',
|
||||
title: 'Informationen',
|
||||
data: CustomPage,
|
||||
id: 'status',
|
||||
title: 'Status',
|
||||
data: StatusPage,
|
||||
options: {
|
||||
icon: 'info',
|
||||
icon: 'desktop',
|
||||
},
|
||||
});
|
||||
CMS.registerAdditionalLink({
|
||||
id: 'wiki',
|
||||
title: 'GCG.Wiki',
|
||||
data: 'https://wiki.cantorgymnasium.de',
|
||||
options: {
|
||||
icon: 'bookmark',
|
||||
},
|
||||
});
|
||||
CMS.registerShortcode('gallery', {
|
||||
label: 'Gallery',
|
||||
openTag: '{{< ',
|
||||
@ -662,7 +669,7 @@
|
||||
CMS.registerPreviewTemplate("forms-index", PagePreview);
|
||||
CMS.registerPreviewTemplate("ganztagsangebote-index", PagePreview);
|
||||
CMS.registerPreviewTemplate("wettbewerbe-index", PagePreview);
|
||||
CMS.registerPreviewTemplate("begabtenfoerderung-index", PagePreview);
|
||||
CMS.registerPreviewTemplate("begabte-index", PagePreview);
|
||||
</script>
|
||||
<script>
|
||||
var PagePreviewImage = ({ widgetFor, getAsset, entry}) => {
|
||||
|
Reference in New Issue
Block a user