summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/error.html.twig8
-rw-r--r--templates/home.html.twig35
-rw-r--r--templates/page.html.twig25
-rw-r--r--templates/partials/base.html.twig0
-rw-r--r--templates/partials/navigation.html.twig47
-rw-r--r--templates/partials/navigation2.html.twig53
6 files changed, 168 insertions, 0 deletions
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 %}
+ <div class="lead text-center">
+ <h1>Error!</h1>
+ {{ page.content|raw }}
+ </div>
+{% 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 @@
+<!DOCTYPE html>
+{% do assets.addCss('theme://css/website.css', 100) %}
+<html>
+ <head>
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {{ assets.css()|raw }}
+ <title>{{site.title|e}}</title>
+ </head>
+ <body>
+ <div class="iconholder homebutton">
+ <span class="icon">home</span>
+ </div>
+ <div class="center">
+ <div class="content">
+ {% 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}}
+ </div>
+ </div>
+ <div class=wrbox>
+ <a class="iconbutton wrbutton wrleft" href="{{page.header.webring.left}}">
+ <span class="icon">arrow_back</span>
+ </a>
+ <span class="wrlabel">Queso Webring</span>
+ <a class="iconbutton wrbutton wrright" href="{{page.header.webring.right}}">
+ <span class="icon">arrow_forward</span>
+ </a>
+ </div>
+ </body>
+</html> \ 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 @@
+<!DOCTYPE html>
+{% do assets.addCss('theme://css/website.css', 100) %}
+<html>
+ <head>
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {{ assets.css()|raw }}
+ <title>{{ header.title|e }}</title>
+ </head>
+ <body>
+ <a href="https://sowgro.net" class="iconbutton homebutton">
+ <span class="icon">home</span>
+ </a>
+ <div class="center">
+ <div class="content">
+ {{ page.content|raw }}
+ </div>
+ </div>
+ <div class=datebox>
+ <span class="date">{{ header.date|e }}</span>
+ </div>
+ </body>
+</html> \ 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
--- /dev/null
+++ b/templates/partials/base.html.twig
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 %}
+ <li class="has-children {{ current_page|e }}">
+ <a href="{{ p.url|e }}">
+ {% if p.header.icon %}<i class="fa fa-{{ p.header.icon|e }}"></i>{% endif %}
+ {{ p.menu|e }}
+ </a>
+ <ul>
+ {{ _self.loop(p) }}
+ </ul>
+ </li>
+ {% else %}
+ <li class="{{ current_page|e }}">
+ <a href="{{ p.url|e }}">
+ {% if p.header.icon %}<i class="fa fa-{{ p.header.icon|e }}"></i>{% endif %}
+ {{ p.menu|e }}
+ </a>
+ </li>
+ {% endif %}
+ {% endfor %}
+{% endmacro %}
+
+<ul>
+ {% if config.theme.dropdown.enabled %}
+ {{ _self.loop(pages) }}
+ {% else %}
+ {% for page in pages.children.visible %}
+ {% set current_page = (page.active or page.activeChild) ? 'selected' : '' %}
+ <li class="{{ current_page|e }}">
+ <a href="{{ page.url|e }}">
+ {% if page.header.icon %}<i class="fa fa-{{ page.header.icon|e }}"></i>{% endif %}
+ {{ page.menu|e }}
+ </a>
+ </li>
+ {% endfor %}
+ {% endif %}
+ {% for mitem in site.menu %}
+ <li>
+ <a href="{{ mitem.url|e }}">
+ {% if mitem.icon %}<i class="fa fa-{{ mitem.icon|e }}"></i>{% endif %}
+ {{ mitem.text|e }}
+ </a>
+ </li>
+ {% endfor %}
+</ul>
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 %}
+
+ <li class="has-children {{ current_page|e }}">
+ <a href="{{ p.url|e }}">
+ {% if p.header.icon %}<i class="fa fa-{{ p.header.icon|e }}"></i>{% endif %}
+ {{ p.menu|e }}
+ </a>
+ <ul>
+ {{ _self.loop(p) }}
+ </ul>
+ </li>
+ {% else %}
+
+ <li class="{{ current_page|e }}">
+ <a href="{{ p.url|e }}">
+ {% if p.header.icon %}<i class="fa fa-{{ p.header.icon|e }}"></i>{% endif %}
+ {{ p.menu|e }}
+ </a>
+ </li>
+ {% endif %}
+ {% endfor %}
+{% endmacro %}
+
+<ul>
+ {% if config.theme.dropdown.enabled %}
+ {{ _self.loop(pages) }}
+
+ {% else %}
+
+ {% for page in pages.children.visible %}
+ {% set current_page = (page.active or page.activeChild) ? 'selected' : '' %}
+ {% if page.menu|e != 'Home' %}
+ <li class="{{ current_page|e }}">
+ <a href="{{ page.url|e }}">
+ {% if page.header.icon %}<i class="fa fa-{{ page.header.icon|e }}"></i>{% endif %}
+ {{ page.menu|e }}
+ </a>
+ </li>
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+ {% for mitem in site.menu %}
+ <li>
+ <a href="{{ mitem.url|e }}">
+ {% if mitem.icon %}<i class="fa fa-{{ mitem.icon|e }}"></i>{% endif %}
+ {{ mitem.text|e }}
+ </a>
+ </li>
+ {% endfor %}
+</ul>