From 753be9b8271a32a1b6319f1a7ee8ba2d63f138a9 Mon Sep 17 00:00:00 2001 From: sowgro Date: Mon, 16 Oct 2023 15:16:55 -0400 Subject: first commit --- templates/error.html.twig | 8 +++++ templates/home.html.twig | 35 +++++++++++++++++++++ templates/page.html.twig | 25 +++++++++++++++ templates/partials/base.html.twig | 0 templates/partials/navigation.html.twig | 47 ++++++++++++++++++++++++++++ templates/partials/navigation2.html.twig | 53 ++++++++++++++++++++++++++++++++ 6 files changed, 168 insertions(+) create mode 100644 templates/error.html.twig create mode 100644 templates/home.html.twig create mode 100644 templates/page.html.twig create mode 100644 templates/partials/base.html.twig create mode 100644 templates/partials/navigation.html.twig create mode 100644 templates/partials/navigation2.html.twig (limited to 'templates') diff --git a/templates/error.html.twig b/templates/error.html.twig new file mode 100644 index 0000000..c945464 --- /dev/null +++ b/templates/error.html.twig @@ -0,0 +1,8 @@ +{% extends 'partials/base.html.twig' %} + +{% block content %} +
+

Error!

+ {{ page.content|raw }} +
+{% endblock %} diff --git a/templates/home.html.twig b/templates/home.html.twig new file mode 100644 index 0000000..9bc580d --- /dev/null +++ b/templates/home.html.twig @@ -0,0 +1,35 @@ + +{% do assets.addCss('theme://css/website.css', 100) %} + + + + + + + {{ assets.css()|raw }} + {{site.title|e}} + + +
+ home +
+
+
+ {% set foo = page.content|raw %} + {% set sp = foo|split(page.header.page_list_placeholder) %} + {{sp[0]|raw}} + {% include 'partials/navigation2.html.twig' %} + {{sp[1]|raw}} +
+
+
+ + arrow_back + + Queso Webring + + arrow_forward + +
+ + \ No newline at end of file diff --git a/templates/page.html.twig b/templates/page.html.twig new file mode 100644 index 0000000..c00d198 --- /dev/null +++ b/templates/page.html.twig @@ -0,0 +1,25 @@ + +{% do assets.addCss('theme://css/website.css', 100) %} + + + + + + + {{ assets.css()|raw }} + {{ header.title|e }} + + + + home + +
+
+ {{ page.content|raw }} +
+
+
+ {{ header.date|e }} +
+ + \ No newline at end of file diff --git a/templates/partials/base.html.twig b/templates/partials/base.html.twig new file mode 100644 index 0000000..e69de29 diff --git a/templates/partials/navigation.html.twig b/templates/partials/navigation.html.twig new file mode 100644 index 0000000..28df6aa --- /dev/null +++ b/templates/partials/navigation.html.twig @@ -0,0 +1,47 @@ +{% macro loop(page) %} + {% for p in page.children.visible %} + {% set current_page = (p.active or p.activeChild) ? 'selected' : '' %} + {% if p.children.visible.count > 0 %} +
  • + + {% if p.header.icon %}{% endif %} + {{ p.menu|e }} + + +
  • + {% else %} +
  • + + {% if p.header.icon %}{% endif %} + {{ p.menu|e }} + +
  • + {% endif %} + {% endfor %} +{% endmacro %} + + diff --git a/templates/partials/navigation2.html.twig b/templates/partials/navigation2.html.twig new file mode 100644 index 0000000..2e865bd --- /dev/null +++ b/templates/partials/navigation2.html.twig @@ -0,0 +1,53 @@ +{% macro loop(page) %} + {% for p in page.children.visible %} + {% set current_page = (p.active or p.activeChild) ? 'selected' : '' %} + {% if p.children.visible.count > 0 %} + +
  • + + {% if p.header.icon %}{% endif %} + {{ p.menu|e }} + + +
  • + {% else %} + +
  • + + {% if p.header.icon %}{% endif %} + {{ p.menu|e }} + +
  • + {% endif %} + {% endfor %} +{% endmacro %} + + -- cgit v1.2.3