From a06813d5b8836dcb18e433ade4e8c536bcfb38e6 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 6 Jul 2021 22:39:03 +0200 Subject: Add subpage padding Signed-off-by: Matthias Beyer --- sass/main.scss | 4 ++++ templates/macro.html | 2 ++ 2 files changed, 6 insertions(+) diff --git a/sass/main.scss b/sass/main.scss index 38e2bd9..f9583fa 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -240,6 +240,10 @@ main { @include color(color, --second-text-color, $theme-light-second-text-color); } +#subpages { + padding-left: 1em; +} + @media screen and (max-width: 1023px) { body { diff --git a/templates/macro.html b/templates/macro.html index ef2a56d..5cb0d4b 100644 --- a/templates/macro.html +++ b/templates/macro.html @@ -4,9 +4,11 @@ {% for subsection in section.subsections | sort %} {% set subsection_item = get_section(path=subsection) %}
  •  {{ subsection_item.title }}
  • + {% else %} {% for subpage in section.pages %}
  •  {{ subpage.title }}
  • -- cgit v1.2.3