diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/directory.html.twig | 26 | ||||
-rw-r--r-- | templates/home.html.twig | 31 | ||||
-rw-r--r-- | templates/page.html.twig | 16 | ||||
-rw-r--r-- | templates/partials/base.html.twig | 0 | ||||
-rw-r--r-- | templates/partials/header.html.twig | 11 | ||||
-rw-r--r-- | templates/partials/list.html.twig | 9 | ||||
-rw-r--r-- | templates/partials/navigation.html.twig | 61 | ||||
-rw-r--r-- | templates/partials/navigation2.html.twig | 53 |
8 files changed, 75 insertions, 132 deletions
diff --git a/templates/directory.html.twig b/templates/directory.html.twig new file mode 100644 index 0000000..bdb3a5c --- /dev/null +++ b/templates/directory.html.twig @@ -0,0 +1,26 @@ +<!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 }} - {{site.title|e}}</title> + </head> + <body> + {% include 'partials/header.html.twig' %} + <div class="center"> + <div class="content"> + <h1>Blog pages</h1> + {{ page.content|raw }} + {% include 'partials/list.html.twig' %} + {% include 'partials/navigation.html.twig' %} + </div> + </div> + <div class=footer> + <span title="Last Edited">{{ header.date|e }}</span> + </div> + </body> +</html>
\ No newline at end of file diff --git a/templates/home.html.twig b/templates/home.html.twig index ff817d1..afb2b70 100644 --- a/templates/home.html.twig +++ b/templates/home.html.twig @@ -1,5 +1,5 @@ -<!DOCTYPE html> {% do assets.addCss('theme://css/website.css', 100) %} +<!DOCTYPE html> <html> <head> <link rel="preconnect" href="https://fonts.googleapis.com"> @@ -10,35 +10,22 @@ <title>{{site.title|e}}</title> </head> <body> - <div class="header"> - <div class=wrbox> - <div class="iconholder wrbutton wrleft"> - <span class="icon">home</span> - </div> - </div> - </div> + {% include 'partials/header.html.twig' %} <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}} + {{ page.content|raw }} </div> </div> - <div class=datebox> - <span class="date" title="Last Edited">{{ header.date|e }}</span> - </div> - {# <div class="footer"> - <div class=wrbox> - <a class="iconbutton wrbutton wrleft" href="{{page.header.webring.left}}"> + <div class=footer> + <div class="transparentButton"> + <a 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>Queso Webring</span> + <a href="{{page.header.webring.right}}"> <span class="icon">arrow_forward</span> </a> </div> - </div> #} + </div> </body> </html>
\ No newline at end of file diff --git a/templates/page.html.twig b/templates/page.html.twig index 6671f5b..1291aaf 100644 --- a/templates/page.html.twig +++ b/templates/page.html.twig @@ -7,24 +7,18 @@ <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> + <title>{{ header.title|e }} - {{site.title|e}}</title> </head> <body> - <div class="header"> - <div class=wrbox> - <a class="iconbutton wrbutton wrleft" href="/"> - <span class="icon" title="/">home</span> - </a> - <span class="wrlabel">Tyler Ferrari's Site</span> - </div> - </div> + {% include 'partials/header.html.twig' %} <div class="center"> <div class="content"> {{ page.content|raw }} + {% include 'partials/navigation.html.twig' %} </div> </div> - <div class=datebox> - <span class="date" title="Last Edited">{{ header.date|e }}</span> + <div class=footer> + <span title="Last Edited">{{ 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 deleted file mode 100644 index e69de29..0000000 --- a/templates/partials/base.html.twig +++ /dev/null diff --git a/templates/partials/header.html.twig b/templates/partials/header.html.twig new file mode 100644 index 0000000..4229a92 --- /dev/null +++ b/templates/partials/header.html.twig @@ -0,0 +1,11 @@ + <div class="header"> + {% if page.header.icon %} + <span class=icon>{{page.header.icon}}</span> + {% else %} + <span class=icon>web</span> + {% endif %} + {% if page.url != "/" %} + <a href="/" style="color:white;">{{site.title|e}}</a> + {% endif %} + <span class="icon" style="color:transparent;">web</span> + </div>
\ No newline at end of file diff --git a/templates/partials/list.html.twig b/templates/partials/list.html.twig new file mode 100644 index 0000000..eb2f485 --- /dev/null +++ b/templates/partials/list.html.twig @@ -0,0 +1,9 @@ +<ul> + {% for current_page in page.children %} + <li> + <a href="{{ current_page.url|e }}"> + {{ current_page.title|e }} + </a> + </li> + {% endfor %} +</ul> diff --git a/templates/partials/navigation.html.twig b/templates/partials/navigation.html.twig index 28df6aa..4426c8c 100644 --- a/templates/partials/navigation.html.twig +++ b/templates/partials/navigation.html.twig @@ -1,47 +1,16 @@ -{% 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 %} +<div class=links> + {% if page.parent.url != "/" %} + <a class="anim3" href="{{ page.parent.url }}"> + <div class="roundedButton"> + <span class="icon">arrow_back</span> + <span>Back</span> + </div> + </a> {% 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> + <a class="anim4" href="/"> + <div class="roundedButton"> + <span class="icon">home</span> + <span>Home</span> + </div> + </a> +</div> diff --git a/templates/partials/navigation2.html.twig b/templates/partials/navigation2.html.twig deleted file mode 100644 index 2e865bd..0000000 --- a/templates/partials/navigation2.html.twig +++ /dev/null @@ -1,53 +0,0 @@ -{% 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> |