From 3b45ea3c4aa6b8e59c9a951ddfbc101399cd07dc Mon Sep 17 00:00:00 2001 From: xoy Date: Mon, 27 Feb 2023 08:34:39 +0100 Subject: [PATCH] =?UTF-8?q?Umstrukturierung=20und=20readme=20=C3=BCberarbe?= =?UTF-8?q?itet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.MD | 32 +++++++++++++++------ events/YYYY-MM-DD.html | 12 ++++---- index.php | 10 +++++++ about.html => pages/about.html | 0 datenschutz.html => pages/datenschutz.html | 0 event.html => pages/event.html | 0 events.html => pages/events.html | 0 impressum.html => pages/impressum.html | 0 index.html => pages/index.html | 0 kontakt.html => pages/kontakt.html | 0 {kontakt => pages/kontakt}/.DS_Store | Bin {kontakt => pages/kontakt}/adresse.html | 0 {kontakt => pages/kontakt}/irc.html | 0 {kontakt => pages/kontakt}/mail.html | 0 {kontakt => pages/kontakt}/tel.html | 0 support.html => pages/support.html | 0 treff.html => pages/treff.html | 0 verein.html => pages/verein.html | 0 templates/event.html | 31 ++++++++++++++++++++ templates/page.html | 31 ++++++++++++++++++++ 20 files changed, 101 insertions(+), 15 deletions(-) create mode 100644 index.php rename about.html => pages/about.html (100%) rename datenschutz.html => pages/datenschutz.html (100%) rename event.html => pages/event.html (100%) rename events.html => pages/events.html (100%) rename impressum.html => pages/impressum.html (100%) rename index.html => pages/index.html (100%) rename kontakt.html => pages/kontakt.html (100%) rename {kontakt => pages/kontakt}/.DS_Store (100%) rename {kontakt => pages/kontakt}/adresse.html (100%) rename {kontakt => pages/kontakt}/irc.html (100%) rename {kontakt => pages/kontakt}/mail.html (100%) rename {kontakt => pages/kontakt}/tel.html (100%) rename support.html => pages/support.html (100%) rename treff.html => pages/treff.html (100%) rename verein.html => pages/verein.html (100%) create mode 100644 templates/event.html create mode 100644 templates/page.html diff --git a/README.MD b/README.MD index 2663230..ae4d080 100644 --- a/README.MD +++ b/README.MD @@ -20,15 +20,31 @@ Datei im Elementverzeichnis Anlegen: *YYYY-MM-DD.html* -Strukturierung: ``` -

Event Titel

-

Event Datum

-

Event Beschreibung

-
- Event Content - ... -
+title: Event Titel +date: Event Datum +desc: Event Beschreibung +------------------------ +#Content below here! +``` + +Strukturierung: + +- Header +``` +title: Event Titel +date: Event Datum +desc: Event Beschreibung +``` + +- Trenner zwischen Header und Content +``` +------------------------ +``` + +- Kommentar +``` +#Content below here! ``` Eigenes CSS kann in der Datei *events_custom.css* hinzugefĆ¼gt werden. \ No newline at end of file diff --git a/events/YYYY-MM-DD.html b/events/YYYY-MM-DD.html index 6abcfbb..684e464 100644 --- a/events/YYYY-MM-DD.html +++ b/events/YYYY-MM-DD.html @@ -1,7 +1,5 @@ -

Event Titel

-

Event Datum

-

Event Beschreibung

-
- Event Content - ... -
\ No newline at end of file +title: Event Titel +date: Event Datum +desc: Event Beschreibung +------------------------ +#Content below here! \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..143a4cd --- /dev/null +++ b/index.php @@ -0,0 +1,10 @@ + '/path/to/compilation_cache', + ]); + + if (isset($_GET["page"]) && $_GET["page"] != "") { + echo $twig->render('page.html', ['title' => $_GET["page"]]); + } +?> \ No newline at end of file diff --git a/about.html b/pages/about.html similarity index 100% rename from about.html rename to pages/about.html diff --git a/datenschutz.html b/pages/datenschutz.html similarity index 100% rename from datenschutz.html rename to pages/datenschutz.html diff --git a/event.html b/pages/event.html similarity index 100% rename from event.html rename to pages/event.html diff --git a/events.html b/pages/events.html similarity index 100% rename from events.html rename to pages/events.html diff --git a/impressum.html b/pages/impressum.html similarity index 100% rename from impressum.html rename to pages/impressum.html diff --git a/index.html b/pages/index.html similarity index 100% rename from index.html rename to pages/index.html diff --git a/kontakt.html b/pages/kontakt.html similarity index 100% rename from kontakt.html rename to pages/kontakt.html diff --git a/kontakt/.DS_Store b/pages/kontakt/.DS_Store similarity index 100% rename from kontakt/.DS_Store rename to pages/kontakt/.DS_Store diff --git a/kontakt/adresse.html b/pages/kontakt/adresse.html similarity index 100% rename from kontakt/adresse.html rename to pages/kontakt/adresse.html diff --git a/kontakt/irc.html b/pages/kontakt/irc.html similarity index 100% rename from kontakt/irc.html rename to pages/kontakt/irc.html diff --git a/kontakt/mail.html b/pages/kontakt/mail.html similarity index 100% rename from kontakt/mail.html rename to pages/kontakt/mail.html diff --git a/kontakt/tel.html b/pages/kontakt/tel.html similarity index 100% rename from kontakt/tel.html rename to pages/kontakt/tel.html diff --git a/support.html b/pages/support.html similarity index 100% rename from support.html rename to pages/support.html diff --git a/treff.html b/pages/treff.html similarity index 100% rename from treff.html rename to pages/treff.html diff --git a/verein.html b/pages/verein.html similarity index 100% rename from verein.html rename to pages/verein.html diff --git a/templates/event.html b/templates/event.html new file mode 100644 index 0000000..0d19b04 --- /dev/null +++ b/templates/event.html @@ -0,0 +1,31 @@ + + + + + + + + ctdo - {{ title }} + + + + + + +
Rundgang
+ +
+ ctdo logo + {{ nav }} +
+ +
+

{{ title }}

+ {{ content }} +
+ + + + \ No newline at end of file diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..0d19b04 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,31 @@ + + + + + + + + ctdo - {{ title }} + + + + + + +
Rundgang
+ +
+ ctdo logo + {{ nav }} +
+ +
+

{{ title }}

+ {{ content }} +
+ + + + \ No newline at end of file