From 7f558517f40833d7d80ddcfb4c356ce8dce18463 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 11 May 2022 17:53:45 +0200 Subject: Premier ajout de contenu --- templates/_macros.html | 7 ++-- templates/_variables.html | 2 +- templates/index.html | 90 ++++++++++++++--------------------------------- 3 files changed, 32 insertions(+), 67 deletions(-) (limited to 'templates') diff --git a/templates/_macros.html b/templates/_macros.html index 88a2f47..7c301a9 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -8,8 +8,9 @@ -{% endmacro render_header %} \ No newline at end of file +{% endmacro render_header %} diff --git a/templates/_variables.html b/templates/_variables.html index 8480408..53a9d8b 100644 --- a/templates/_variables.html +++ b/templates/_variables.html @@ -3,7 +3,7 @@ /* Primary theme color */ --primary-color: #ea596e; /* Primary theme text color */ - --primary-text-color: #543631; + --primary-text-color: #fafafa; /* Primary theme link color */ --primary-link-color: #d45063; /* Secondary color: the background body color */ diff --git a/templates/index.html b/templates/index.html index 3afc311..abbfeb6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,8 +10,6 @@ {% endblock favicon %} {% include "_variables.html" %} - - {% block head %} @@ -23,83 +21,49 @@
{{ 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 %} + {% if page.ancestors %} + {% set section = get_section(path=page.ancestors | last) %} + {% endif %} + {% if section.ancestors %} + {% set parent = get_section(path=section.ancestors | last) %} + {% endif %}
- {% for h in toc %} -
- {{ h.title }} + - {% if h.children %} - {% for h2 in h.children %} -
- - {{ h2.title }} + {% if section.subsections %} + {% for s in section.subsections %} + {% set p = get_section(path=s) %} + {% endfor %} - {% endif %} + {% endif %} + + {% if section.pages %} + {% for p in section.pages %} + {% endfor %} + {% endif %} + {% if parent %} + + {% endif %}
- {% endif %} {% endblock toc %}
{% block content %} -
Overview
+
{{ section.title }}
{{ section.content | safe }} {% endblock content %}
-- cgit v1.2.3