This commit is contained in:
Denys Konovalov 2020-07-09 21:54:48 +02:00
commit f4d16812d3
5 changed files with 173 additions and 7 deletions

@ -0,0 +1,33 @@
---
label: Bolgpost
hide_body: false
fields:
- type: text
name: title
label: Titel
- type: datetime
name: date
label: Datum
- type: file
name: bg_image
label: bg_image
- type: text
name: description
label: Untertitel
- type: file
name: image
label: Bild
- type: text
name: author
label: Autor
- type: list
name: categories
label: Kategorien
- type: list
name: tags
label: Tags
- type: text
name: type
label: type
default: blog
hidden: true

@ -0,0 +1,49 @@
---
label: Teacher
hide_body: false
fields:
- type: text
name: title
label: Name
- type: file
name: bg_image
label: bg_image
- type: text
name: description
label: Untertitel
- type: file
name: image
label: Image
- type: text
name: course
label: Fachbereich
- type: textarea
name: bio
label: Biografie
- type: list
name: interest
label: Fächer
- type: field_group_list
name: contact
label: Kontaktdaten
fields:
- type: text
name: name
label: Titel
- type: text
name: icon
label: Symbol
- type: text
name: link
label: Link
- type: boolean
name: clubs
label: AG-Leiter ?
- type: text
name: type
label: type
default: teacher
hidden: true
- type: text
name: forestry_link
label: Kontaktformular-Link

31
.forestry/settings.yml Normal file

@ -0,0 +1,31 @@
---
new_page_extension: md
auto_deploy: false
admin_path: "/static/admin"
webhook_url:
sections:
- type: directory
path: content/german
label: German
create: all
match: "**/*"
- type: directory
path: content/english
label: English
create: all
match: "**/*"
upload_dir: static/images
public_path: "/images"
front_matter_path: ''
use_front_matter_path: false
file_template: ":filename:"
build:
preview_env:
- HUGO_ENV=staging
- HUGO_VERSION=0.71.1
preview_output_directory: public
preview_docker_image: forestryio/hugo:latest
mount_path: "/srv"
working_dir: "/srv"
instant_preview_command: hugo server -D -E -F --renderToDisk -d public
version: 0.71.1

@ -1,8 +1,6 @@
--- ---
title: "Dernières nouvelles" title: Aktuelles
draft: false bg_image: images/backgrounds/page-title.jpg
# page title background image description: Hier finden sie die aktuelen Beiträge aus dem Schulblog.
bg_image: "images/backgrounds/page-title.jpg"
# meta description ---
description : "ceci est une description meta"
---

55
static/admin/index.html Normal file

@ -0,0 +1,55 @@
<!-- forestryio: ignore; forestryio: admin -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="noindex" />
<title>Admin</title>
<meta name="description" content=" " />
<meta name="author" content=" " />
<meta name="HandheldFriendly" content="true" />
<meta name="MobileOptimized" content="320" />
<!-- Use maximum-scale and user-scalable at your own risk. It disables pinch/zoom. Think about usability/accessibility before including.-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Google font -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<!-- Fort awesome icon kit -->
<script src="https://use.fortawesome.com/b6f38602.js"></script>
</head>
<body>
<div id="app">
</div>
<script id="admin-config-script" type="text/javascript">
var env = {
siteId: "fphpwhtth9pt8q",
local: false
};
function uuidv4() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
}
var uuid = uuidv4()
var script = document.createElement('script');
script.src = "https://app.forestry.io/admin/forestry.min.js?hash=" + uuid
script.id = "forestry-admin";
document.body.appendChild(script);
var link = document.createElement("link");
link.type = "text/css";
link.rel = "stylesheet";
link.href = "https://app.forestry.io/admin/main.css?hash=" + uuid
document.head.appendChild(link);
</script>
</body>
</html>