From 336fd3f7566c7872c17b30f7cd150e1d16899205 Mon Sep 17 00:00:00 2001 From: sptaule Date: Mon, 24 Jan 2022 18:36:50 +0100 Subject: First commit --- templates/404.html | 22 ++++ templates/base.html | 173 ++++++++++++++++++++++++++++++ templates/categories/list.html | 27 +++++ templates/categories/single.html | 76 ++++++++++++++ templates/index.html | 178 +++++++++++++++++++++++++++++++ templates/macros.html | 79 ++++++++++++++ templates/page.html | 210 +++++++++++++++++++++++++++++++++++++ templates/robots.txt | 2 + templates/section.html | 71 +++++++++++++ templates/shortcodes/chart.html | 1 + templates/shortcodes/galleria.html | 1 + templates/shortcodes/katex.html | 1 + templates/shortcodes/mapbox.html | 11 ++ templates/shortcodes/mermaid.html | 1 + templates/shortcodes/vimeo.html | 9 ++ templates/shortcodes/youtube.html | 9 ++ templates/tags/list.html | 27 +++++ templates/tags/single.html | 76 ++++++++++++++ 18 files changed, 974 insertions(+) create mode 100755 templates/404.html create mode 100755 templates/base.html create mode 100755 templates/categories/list.html create mode 100755 templates/categories/single.html create mode 100755 templates/index.html create mode 100755 templates/macros.html create mode 100755 templates/page.html create mode 100755 templates/robots.txt create mode 100755 templates/section.html create mode 100755 templates/shortcodes/chart.html create mode 100755 templates/shortcodes/galleria.html create mode 100755 templates/shortcodes/katex.html create mode 100755 templates/shortcodes/mapbox.html create mode 100755 templates/shortcodes/mermaid.html create mode 100755 templates/shortcodes/vimeo.html create mode 100755 templates/shortcodes/youtube.html create mode 100755 templates/tags/list.html create mode 100755 templates/tags/single.html (limited to 'templates') diff --git a/templates/404.html b/templates/404.html new file mode 100755 index 0000000..7885942 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,22 @@ +{% extends 'base.html' %} + + +{% block content %} +
+
+
+
+

+ HTTP 404 +

+

+ What a shame!
The page you are looking for does not exist. +

+ + Go back to homepage +

+
+
+
+
+{% endblock %} diff --git a/templates/base.html b/templates/base.html new file mode 100755 index 0000000..b6c8760 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,173 @@ +{% import 'macros.html' as macros %} + + + + + + + + + + + {% if config.extra.favicon.webmanifest %} + + {% endif %} + {% if config.extra.favicon.safari_pinned_tab %} + + {% endif %} + {% if config.extra.favicon.favicon_16x16 %} + + {% endif %} + {% if config.extra.favicon.favicon_32x32 %} + + {% endif %} + {% if config.extra.favicon.apple_touch_icon %} + + {% endif %} + + {% if config.extra.galleria.enabled %} + + {% endif %} + + {% if config.extra.mapbox.enabled %} + + {% endif %} + + + + + + {% block user_custom_stylesheet %} + {% endblock %} + + + {% block title %} + {{ config.title }} + {% endblock title %} + + + {% if config.extra.katex.enabled %} + + + + + {% if config.extra.katex.auto_render %} + + {% endif %} + {% endif %} + + + + + +
+ {% block content %}{% endblock %} +
+ + + {% block pagination %} + {% if paginator.previous or paginator.next %} +
+
+ +
+
+ {% endif %} + {% endblock %} + + {% block comment %} + {% endblock %} + + + + {% if config.extra.galleria.enabled %} + + + + {% endif %} + {% if config.extra.mermaid.enabled %} + + {% endif %} + {% if config.extra.chart.enabled %} + + {% endif %} + + + {%- if lang != "en" -%} + {%- block other_lang_search_js -%} + {%- endblock -%} + {%- endif -%} + + + {% block custom_js %} + {% endblock %} + + {% block user_custom_js %} + {% endblock %} + + + diff --git a/templates/categories/list.html b/templates/categories/list.html new file mode 100755 index 0000000..c78c7b0 --- /dev/null +++ b/templates/categories/list.html @@ -0,0 +1,27 @@ +{% 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 new file mode 100755 index 0000000..a3d2159 --- /dev/null +++ b/templates/categories/single.html @@ -0,0 +1,76 @@ +{% 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/index.html b/templates/index.html new file mode 100755 index 0000000..2126007 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,178 @@ +{% extends "base.html" %} + +{% block content %} +
+
+ +
+ +

{{ config.extra.organization.description }}

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

Our Goals

+
+

We made it lightweight and kept the efficiency in mind.

+
    +
  • + As self-contained as possible +
  • +
    +
  • + Easy to set up +
  • +
    +
  • + Highly resilient to
    +
    + network failures, + network latency
    + disk failures, + sysadmin failures +
    +
  • +
    +
  • + Relatively simple +
  • +
    +
  • + Made for multi-datacenter deployments +
  • +
+
+ +
+

Keeping requirements low

+
+

+ 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 +
    + Build a cluster with whatever second-hand machines are available +
  • +
+
+ +
+

Data resiliency for everyone

+
+

+ Blabla bla bla bla. +

+

+ Garage implements the Amazon S3 API
and thus is already compatible with many applications. +

+ +
+ +
+

Built on the shoulder of giants

+
+

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

+ +
+ +
+ + {% if section.content %} +
+ {{ section.content | safe }} +
+ {% endif %} +
+
+{% endblock %} diff --git a/templates/macros.html b/templates/macros.html new file mode 100755 index 0000000..9fab136 --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,79 @@ +{% macro social_links(social_config) %} +

+ {% if social_config.git %} + + + + + + {% endif %} + + {% if social_config.email %} + + + + + + {% endif %} + + {% if config.generate_feed %} + + + + + + {% endif %} +

+{% endmacro %} + +{% macro page_publish_metadata(page) %} + + Published on +
+ +
+
+{% endmacro %} + +{% macro page_content_metadata(page) %} + + + {{ page.reading_time }} min reading time + + + {{ page.word_count }} words + + +{% endmacro %} + +{% macro render_categories(categories) %} +
+ Categories + {% for category in categories %} + +
+ + + + {{category}} +
+
+ {% endfor %} +
+{% endmacro %} + +{% macro render_tags(tags) %} +
+ Tags + {% for tag in tags %} + +
+ + + + {{tag}} +
+
+ {% endfor %} +
+{% endmacro %} diff --git a/templates/page.html b/templates/page.html new file mode 100755 index 0000000..ee83cad --- /dev/null +++ b/templates/page.html @@ -0,0 +1,210 @@ +{% extends 'base.html' %} + +{% block title %} +{{ config.title }} | {{ page.title }} +{% endblock %} + +{% block content %} +
+
+
+
+
+
+
+

+ {{ page.title }} +

+ {% if page.description %} +

{{ page.description }}

+ {% endif %} + +
+
+
+
+
+
+
+ {{ macros::page_publish_metadata(page=page) }} +
+
+ {{ macros::page_content_metadata(page=page) }} +
+
+ {% if page.taxonomies.categories %} + {{ macros::render_categories(categories=page.taxonomies.categories) }} + {% endif %} +
+
+ {% if page.taxonomies.tags %} + {{ macros::render_tags(tags=page.taxonomies.tags) }} + {% endif %} +
+
+
+
+ {{ page.content | safe }} +
+
+
+ {% if page.extra.toc %} +
+ +
+ {% endif %} +
+
+
+{% endblock %} + +{% block pagination %} + {% if page.earlier or page.later or page.lighter or page.heavier %} +
+
+
+
+ +
+
+
+
+ {% endif %} +{% endblock %} + +{% block comment %} + {% if page.extra.comments and config.extra.commenting.disqus %} +
+
+
+
+
+
+
+
+
+ {% endif %} +{% endblock %} + +{% block custom_js %} +{% if page.extra.toc %} + +{% endif %} + +{% if page.extra.comments and config.extra.commenting.disqus %} + +{% endif %} +{% endblock %} diff --git a/templates/robots.txt b/templates/robots.txt new file mode 100755 index 0000000..d5b8403 --- /dev/null +++ b/templates/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Sitemap: {{config.base_url}}/sitemap.xml \ No newline at end of file diff --git a/templates/section.html b/templates/section.html new file mode 100755 index 0000000..83c5134 --- /dev/null +++ b/templates/section.html @@ -0,0 +1,71 @@ +{% extends 'base.html' %} + +{% block title %} +{{ config.title }} | {{ section.title }} +{% endblock title %} + +{% block content %} +
+
+
+

{{ section.title }}

+

{{ section.description }}

+
+
+ {{ section.content | safe }} +
+
+
+ {% if paginator %} + {% set pages = paginator.pages %} + {% else %} + {% set pages = section.pages %} + {% endif %} + + {% for page in pages %} +
+

+ + {{ page.title }} + +

+ {% if page.description %} +

{{ page.description }}

+ {% endif %} +
+
+ {{ macros::page_publish_metadata(page=page) }} +
+
+ {{ macros::page_content_metadata(page=page) }} +
+
+
+ {{ page.summary | safe }} + +
+ Read + + + +
+
+
+
+ {% 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 %} diff --git a/templates/shortcodes/chart.html b/templates/shortcodes/chart.html new file mode 100755 index 0000000..539aeea --- /dev/null +++ b/templates/shortcodes/chart.html @@ -0,0 +1 @@ +{{body | safe}} diff --git a/templates/shortcodes/galleria.html b/templates/shortcodes/galleria.html new file mode 100755 index 0000000..0e23cd3 --- /dev/null +++ b/templates/shortcodes/galleria.html @@ -0,0 +1 @@ +
{{body | safe}}
\ No newline at end of file diff --git a/templates/shortcodes/katex.html b/templates/shortcodes/katex.html new file mode 100755 index 0000000..cac8e97 --- /dev/null +++ b/templates/shortcodes/katex.html @@ -0,0 +1 @@ + diff --git a/templates/shortcodes/mapbox.html b/templates/shortcodes/mapbox.html new file mode 100755 index 0000000..13d3488 --- /dev/null +++ b/templates/shortcodes/mapbox.html @@ -0,0 +1,11 @@ +
+
+ {{config.extra.mapbox.access_token}} +
+
+ {{zoom}} +
+
+ {{body}} +
+
diff --git a/templates/shortcodes/mermaid.html b/templates/shortcodes/mermaid.html new file mode 100755 index 0000000..18395a6 --- /dev/null +++ b/templates/shortcodes/mermaid.html @@ -0,0 +1 @@ +
{{body}}
diff --git a/templates/shortcodes/vimeo.html b/templates/shortcodes/vimeo.html new file mode 100755 index 0000000..79f92bb --- /dev/null +++ b/templates/shortcodes/vimeo.html @@ -0,0 +1,9 @@ +
+ +
\ No newline at end of file diff --git a/templates/shortcodes/youtube.html b/templates/shortcodes/youtube.html new file mode 100755 index 0000000..a6d8ad8 --- /dev/null +++ b/templates/shortcodes/youtube.html @@ -0,0 +1,9 @@ +
+ +
\ No newline at end of file diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100755 index 0000000..4100e8d --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,27 @@ +{% 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 new file mode 100755 index 0000000..3c89294 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,76 @@ +{% 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