From e6f8f43b6ca5ff00d33b3a539e67eb2255fa1dd0 Mon Sep 17 00:00:00 2001 From: sptaule Date: Sat, 29 Jan 2022 14:42:09 +0100 Subject: Improve responsive, icons, refactor search, update readme --- templates/base.html | 32 +++----------------------------- templates/documentation.html | 2 +- templates/index.html | 22 +++++++++++----------- templates/macros.html | 12 ++++++------ templates/page.html | 10 +++++----- templates/partials/doc/toc_script.html | 12 +++++++----- templates/partials/shared/head.html | 13 +------------ templates/partials/shared/nav.html | 12 ++++++++---- templates/partials/shared/search.html | 25 +++++++++++++++++++++++++ templates/section.html | 10 ++++++---- 10 files changed, 73 insertions(+), 77 deletions(-) create mode 100644 templates/partials/shared/search.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 41121c3..d947c50 100755 --- a/templates/base.html +++ b/templates/base.html @@ -13,40 +13,14 @@ {% include "partials/shared/nav.html" %} -
- {% block content %}{% endblock %} -
+ {% block content %}{% endblock %} {% block search %} - + {% include "partials/shared/search.html" %} {% endblock %} {% block pagination %} - {% include "partials/shared/paginator.html" %} + {% include "partials/shared/paginator.html" %} {% endblock %} {% block comment %}{% endblock %} diff --git a/templates/documentation.html b/templates/documentation.html index 09dcad9..55a5c61 100644 --- a/templates/documentation.html +++ b/templates/documentation.html @@ -6,7 +6,7 @@ {% block content %} {% set section = get_section(path="documentation/_index.md") %} -
+
{% include "partials/doc/global_toc.html" %}
diff --git a/templates/index.html b/templates/index.html index f3a9379..1f09edd 100755 --- a/templates/index.html +++ b/templates/index.html @@ -11,26 +11,26 @@
- Host a Website + Host a Website
- Store Media + Store Media
- Backup Target + Backup Target
- +
-
+

Each chunk of data is replicated in 3 zones

@@ -45,9 +45,9 @@
-
+
-

Our Goals

+

Our Goals

We made it lightweight and kept the efficiency in mind.

    @@ -80,7 +80,7 @@
-

Keeping requirements low

+

Keeping requirements low

We worked hard to keep requirements as low as possible
as we target the largest possible public. @@ -125,7 +125,7 @@

-

Data resiliency for everyone

+

Data resiliency for everyone

Lorem ipsum dolor sit amet consectetur adipisicing elit. @@ -168,7 +168,7 @@

-

Standing on the shoulders of giants

+

Standing on the shoulders of giants

Lorem ipsum dolor sit amet consectetur adipisicing elit. @@ -191,7 +191,7 @@

-
+

Sponsors and funding

The Deuxfleurs association has received a grant from NGI POINTER, diff --git a/templates/macros.html b/templates/macros.html index 9fab136..dc65140 100755 --- a/templates/macros.html +++ b/templates/macros.html @@ -2,24 +2,24 @@

{% if social_config.git %} - - + + {% endif %} {% if social_config.email %} - - + + {% endif %} {% if config.generate_feed %} - - + + {% endif %} diff --git a/templates/page.html b/templates/page.html index eeba7f1..53767ae 100755 --- a/templates/page.html +++ b/templates/page.html @@ -5,7 +5,7 @@ {% endblock %} {% block content %} -

+
@@ -24,11 +24,11 @@
-
-
+
+
{{ macros::page_publish_metadata(page=page) }}
-
+
{{ macros::page_content_metadata(page=page) }}
@@ -43,7 +43,7 @@
-
+
{{ page.content | safe }}
diff --git a/templates/partials/doc/toc_script.html b/templates/partials/doc/toc_script.html index df115b0..1453a69 100644 --- a/templates/partials/doc/toc_script.html +++ b/templates/partials/doc/toc_script.html @@ -11,11 +11,13 @@ const navSections = new Array(tocItems.length); */ window.addEventListener('scroll', function() { - if (window.scrollY >= menuBarHeight) { - document.getElementById('main-toc-menu').classList.add('fixed', 'top-0', 'left-0'); - document.getElementById('main-toc-menu').style.width = mainTocMenuWidth + 'px'; - } else { - document.getElementById('main-toc-menu').classList.remove('fixed', 'top-0', 'left-0'); + if (window.screen.width >= 1280) { + if (window.scrollY >= menuBarHeight) { + document.getElementById('main-toc-menu').classList.add('fixed', 'top-0', 'left-0'); + document.getElementById('main-toc-menu').style.width = mainTocMenuWidth + 'px'; + } else { + document.getElementById('main-toc-menu').classList.remove('fixed', 'top-0', 'left-0'); + } } }); diff --git a/templates/partials/shared/head.html b/templates/partials/shared/head.html index 185a97b..ca2033e 100644 --- a/templates/partials/shared/head.html +++ b/templates/partials/shared/head.html @@ -1,9 +1,6 @@ {% if config.extra.favicon.webmanifest %} {% endif %} -{% if config.extra.favicon.safari_pinned_tab %} - -{% endif %} {% if config.extra.favicon.favicon_16x16 %} {% endif %} @@ -13,14 +10,6 @@ {% if config.extra.favicon.apple_touch_icon %} {% endif %} - -{% if config.extra.galleria.enabled %} - -{% endif %} - - @@ -28,7 +17,7 @@ {% block title %} - {{ config.title }} + {{ config.title }} - An open-source distributed storage service {% endblock title %} diff --git a/templates/partials/shared/nav.html b/templates/partials/shared/nav.html index 57e81fe..a4a4b99 100644 --- a/templates/partials/shared/nav.html +++ b/templates/partials/shared/nav.html @@ -1,12 +1,16 @@ -