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