From e0977c983abff89ac3a9e37f616399dc0b6c61c7 Mon Sep 17 00:00:00 2001 From: sptaule Date: Wed, 26 Jan 2022 14:44:47 +0100 Subject: Fix doc links & added noJS support for the doc --- templates/base.html | 11 +- templates/categories/list.html | 27 ---- templates/categories/single.html | 76 ---------- templates/documentation.html | 245 +++++---------------------------- templates/index.html | 48 +++---- templates/page.html | 4 +- templates/partials/doc/global_toc.html | 34 +++++ templates/partials/doc/page_toc.html | 33 +++++ templates/partials/doc/pagination.html | 76 ++++++++++ templates/partials/doc/toc_script.html | 55 ++++++++ templates/tags/list.html | 27 ---- templates/tags/single.html | 76 ---------- 12 files changed, 268 insertions(+), 444 deletions(-) delete mode 100755 templates/categories/list.html delete mode 100755 templates/categories/single.html create mode 100644 templates/partials/doc/global_toc.html create mode 100644 templates/partials/doc/page_toc.html create mode 100644 templates/partials/doc/pagination.html create mode 100644 templates/partials/doc/toc_script.html delete mode 100755 templates/tags/list.html delete mode 100755 templates/tags/single.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index b6c8760..bdda7e4 100755 --- a/templates/base.html +++ b/templates/base.html @@ -83,10 +83,13 @@ {% endfor %}
- - - - + + + + +
+
+ {{ macros:: social_links( social_config=config.extra.social) }}
diff --git a/templates/categories/list.html b/templates/categories/list.html deleted file mode 100755 index c78c7b0..0000000 --- a/templates/categories/list.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -
-
-
-

- - - - Categories -

-

{{ terms | length }} categories in total

-

- {% for category in terms %} - - - - - {{category.name}} {{ category.pages | length }} - - {% endfor %} -

-
-
-
-{% endblock content %} diff --git a/templates/categories/single.html b/templates/categories/single.html deleted file mode 100755 index a3d2159..0000000 --- a/templates/categories/single.html +++ /dev/null @@ -1,76 +0,0 @@ -{% extends "base.html" %} - -{% block header %} -
-
-
-
-

- - - - - {{ term.name }} - -

-
-
-
-
-{% endblock %} - -{% block content %} -
-
-
-
- {% if paginator %} - {% set pages = paginator.pages %} - {% else %} - {% set pages = term.pages %} - {% endif %} - - {% for page in pages %} -
-

- - {{ page.title }} - -

-

{{ page.description }}

-
-
- {{ macros::page_publish_metadata(page=page) }} -
-
- {{ macros::page_content_metadata(page=page) }} -
-
-
- {{ page.summary | safe }} - - Read More - - - - -
-
-
- {% if page.taxonomies.categories %} - {{ macros::render_categories(categories=page.taxonomies.categories) }} - {% endif %} -
-
- {% if page.taxonomies.tags %} - {{ macros::render_tags(tags=page.taxonomies.tags) }} - {% endif %} -
-
-
- {% endfor %} -
-
-
-
-{% endblock content %} \ No newline at end of file diff --git a/templates/documentation.html b/templates/documentation.html index 7145129..f425d6d 100644 --- a/templates/documentation.html +++ b/templates/documentation.html @@ -1,224 +1,51 @@ {% extends 'base.html' %} {% block title %} -{{ config.title }} | {{ page.title }} + {{ config.title }} | {{ page.title }} {% endblock %} {% block content %} -{% set section = get_section(path="documentation/_index.md") %} -
-
- - - -
-
-
-
-

- {{ page.title }} -

- {% if page.description %} -

{{ page.description }}

- {% endif %} -
-
-
- {{ page.content | safe }} -
-
-
- - -
-
-{% endblock %} - -{% block pagination %} -{% if page.earlier or page.later or page.lighter or page.heavier %} -
-
-
-
- +
+ {% include "partials/doc/page_toc.html" %}
-
-
-{% endif %} -{% endblock %} - -{% block comment %} -{% if page.extra.comments and config.extra.commenting.disqus %} -
-
-
-
-
-
+
+ {% if page.earlier or page.later or page.lighter or page.heavier %} + {% include "partials/doc/pagination.html" %} + {% endif %}
-
-
-{% endif %} + {% endblock %} {% block custom_js %} -{% if page.extra.toc %} - -{% endif %} - -{% if page.extra.comments and config.extra.commenting.disqus %} - -{% endif %} + {% if page.toc %} + {% include "partials/doc/toc_script.html" %} + {% endif %} {% endblock %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 2126007..08cce9c 100755 --- a/templates/index.html +++ b/templates/index.html @@ -4,26 +4,26 @@
-
+
-

{{ config.extra.organization.description }}

-
-
- - Host a Website +

{{ config.extra.organization.description }}

+
+
+ + Host a Website
-
- - Store Media +
+ + Store Media
-
- - Backup Target +
+ + Backup Target
-
+

Our Goals

@@ -64,36 +64,36 @@

We worked hard to keep requirements as low as possible
as we target the largest possible public.

-
    -
  • +
      +
    • CPU
      Any x86_64 CPU from the last 10 years, ARMv7 or ARMv8
    • -
    • +
    • RAM
      1 GB
    • -
    • +
    • Disk space
      At least 16 GB
    • -
    • +
    • Network
      200 ms or less, 50 Mbps or more
    • -
    • +
    • Heterogeneous hardware @@ -103,11 +103,11 @@
-
+

Data resiliency for everyone

- Blabla bla bla bla. + Lorem ipsum dolor sit amet consectetur adipisicing elit.

Garage implements the Amazon S3 API
and thus is already compatible with many applications. @@ -146,10 +146,12 @@

-
+

Built on the shoulder of giants

-

Which means thats you have to be very tall to get it.

+

+ Lorem ipsum dolor sit amet consectetur adipisicing elit. +

  • Dynamo: Amazon’s Highly Available Key-value Store diff --git a/templates/page.html b/templates/page.html index ee83cad..eeba7f1 100755 --- a/templates/page.html +++ b/templates/page.html @@ -19,8 +19,8 @@

    {{ page.description }}

    {% endif %} - diff --git a/templates/partials/doc/global_toc.html b/templates/partials/doc/global_toc.html new file mode 100644 index 0000000..ebad287 --- /dev/null +++ b/templates/partials/doc/global_toc.html @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/templates/partials/doc/page_toc.html b/templates/partials/doc/page_toc.html new file mode 100644 index 0000000..172e0ce --- /dev/null +++ b/templates/partials/doc/page_toc.html @@ -0,0 +1,33 @@ + \ No newline at end of file diff --git a/templates/partials/doc/pagination.html b/templates/partials/doc/pagination.html new file mode 100644 index 0000000..0170a77 --- /dev/null +++ b/templates/partials/doc/pagination.html @@ -0,0 +1,76 @@ +
    +
    +
    +
    +
    + Navigation +
    + +
    +
    +
    +
    \ No newline at end of file diff --git a/templates/partials/doc/toc_script.html b/templates/partials/doc/toc_script.html new file mode 100644 index 0000000..a858c94 --- /dev/null +++ b/templates/partials/doc/toc_script.html @@ -0,0 +1,55 @@ + \ No newline at end of file diff --git a/templates/tags/list.html b/templates/tags/list.html deleted file mode 100755 index 4100e8d..0000000 --- a/templates/tags/list.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -
    -
    -
    -

    - - - - Tags -

    -

    {{ terms | length }} tags in total

    -

    - {% for tag in terms %} - - - - - {{tag.name}} {{ tag.pages | length }} - - {% endfor %} -

    -
    -
    -
    -{% endblock content %} diff --git a/templates/tags/single.html b/templates/tags/single.html deleted file mode 100755 index 3c89294..0000000 --- a/templates/tags/single.html +++ /dev/null @@ -1,76 +0,0 @@ -{% extends "base.html" %} - -{% block header %} -
    -
    -
    -
    -

    - - - - - {{ term.name }} - -

    -
    -
    -
    -
    -{% endblock %} - -{% block content %} -
    -
    -
    -
    - {% if paginator %} - {% set pages = paginator.pages %} - {% else %} - {% set pages = term.pages %} - {% endif %} - - {% for page in pages %} -
    -

    - - {{ page.title }} - -

    -

    {{ page.description }}

    -
    -
    - {{ macros::page_publish_metadata(page=page) }} -
    -
    - {{ macros::page_content_metadata(page=page) }} -
    -
    -
    - {{ page.summary | safe }} - - Read More - - - - -
    -
    -
    - {% if page.taxonomies.categories %} - {{ macros::render_categories(categories=page.taxonomies.categories) }} - {% endif %} -
    -
    - {% if page.taxonomies.tags %} - {{ macros::render_tags(tags=page.taxonomies.tags) }} - {% endif %} -
    -
    -
    - {% endfor %} -
    -
    -
    -
    -{% endblock content %} \ No newline at end of file -- cgit v1.2.3