From e9e2af423557b50c416b68559bab7786bee35ff2 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 10 May 2022 17:52:28 +0200 Subject: Initial commit --- templates/_macros.html | 20 ++++++ templates/_variables.html | 15 ++++ templates/index.html | 154 ++++++++++++++++++++++++++++++++++++++++ templates/page.html | 15 ++++ templates/section.html | 1 + templates/shortcodes/issue.html | 1 + 6 files changed, 206 insertions(+) create mode 100644 templates/_macros.html create mode 100644 templates/_variables.html create mode 100644 templates/index.html create mode 100644 templates/page.html create mode 100644 templates/section.html create mode 100644 templates/shortcodes/issue.html (limited to 'templates') diff --git a/templates/_macros.html b/templates/_macros.html new file mode 100644 index 0000000..88a2f47 --- /dev/null +++ b/templates/_macros.html @@ -0,0 +1,20 @@ +{% macro render_header() %} +{% set section = get_section(path="_index.md") %} + + + + + +{% endmacro render_header %} \ No newline at end of file diff --git a/templates/_variables.html b/templates/_variables.html new file mode 100644 index 0000000..8480408 --- /dev/null +++ b/templates/_variables.html @@ -0,0 +1,15 @@ + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..3afc311 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,154 @@ +{% import "_macros.html" as macros %} + + + + + + {% block title %}{{ config.title }}{% endblock title %} + + {% block favicon %} + + {% endblock favicon %} + {% include "_variables.html" %} + + + + + {% block head %} + {% endblock head %} + + + + {% block header %} +
+ {{ macros::render_header() }} +
+ + {#
+ {{ macros::render_header() }} +
#} + + {#
+ {% block hero %} + +
+

+ Build your static website +

+

+ Juice is an intuitive, elegant, and lightweight Zola theme for product websites. +

+
+ Star + Fork +
+
+ + +
+ Explore More ⇩ +
+ + {% endblock hero %} +
+ #} + {% endblock header %} + +
+ {% block toc %} + {% if section.toc %} + {% set toc = section.toc %} + {% elif page.toc %} + {% set toc = page.toc %} + {% endif %} + {% if toc %} +
+
+ {% for h in toc %} + + {% if h.children %} + {% for h2 in h.children %} + + {% endfor %} + {% endif %} + {% endfor %} +
+
+ {% endif %} + {% endblock toc %} + +
+ {% block content %} +
Overview
+ {{ section.content | safe }} + {% endblock content %} +
+ + {% block sidebar %} + {% endblock sidebar %} +
+ + {% block footer %} + + {% endblock footer %} + + + + diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..c6d8610 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,15 @@ +{% import "_macros.html" as macros %} +{% extends "index.html" %} + +{% block title %}{{ page.title }} | {{ super() }} {% endblock title %} + +{% block header %} +
+ {{ macros::render_header() }} +
+{% endblock header %} + +{% block content %} +
{{ page.description }}
+{{ page.content | safe }} +{% endblock content %} \ No newline at end of file diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..09763b9 --- /dev/null +++ b/templates/section.html @@ -0,0 +1 @@ +{% extends "index.html" %} diff --git a/templates/shortcodes/issue.html b/templates/shortcodes/issue.html new file mode 100644 index 0000000..3006d9b --- /dev/null +++ b/templates/shortcodes/issue.html @@ -0,0 +1 @@ +#{{ id }} \ No newline at end of file -- cgit v1.2.3