From 0e84a2e0306b00ac810c4e68bb9dc079ec3f74d7 Mon Sep 17 00:00:00 2001 From: Hysterelius Date: Fri, 29 Sep 2023 09:30:15 +1000 Subject: Remove unnecessary tag (#150) * Remove unnecessary tag * Consistent current page styling--- sass/abridge.scss | 9 +++++---- templates/macros/macros.html | 2 +- templates/page.html | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/sass/abridge.scss b/sass/abridge.scss index 608081c..65b50ef 100644 --- a/sass/abridge.scss +++ b/sass/abridge.scss @@ -1200,6 +1200,10 @@ $syntax: true !default;//syntax highlighting for code blocks ol { margin: 0; } + .scur {//series current page + font-weight: var(--fh); + color: var(--a1); + } } .sblock { @if $series { @@ -1213,10 +1217,7 @@ $syntax: true !default;//syntax highlighting for code blocks margin-bottom: .2rem; color: var(--c4); } - .scur {//series current page - font-weight: var(--fh); - color: var(--a1); - } + } ol,ul { font-size: 1em; diff --git a/templates/macros/macros.html b/templates/macros/macros.html index a6d31c6..9d794ee 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -15,7 +15,7 @@ {%- set uglyurls = config.extra.uglyurls | default(value=false) -%} {%- if config.extra.offline %}{% set uglyurls = true %}{% endif %} {%- if inner.content == page.content %} -
  • {{ inner.title }}
  • +
  • {{ inner.title }}
  • {% else %}
  • {{ inner.title }}
  • {%- endif %} diff --git a/templates/page.html b/templates/page.html index b362877..8b63ac7 100644 --- a/templates/page.html +++ b/templates/page.html @@ -64,7 +64,7 @@
      {%- for inner in tag.pages | sort(attribute="date") %} {%- if inner.content == page.content %} -
    1. {{ inner.title }}
    2. +
    3. {{ inner.title }}
    4. {%- set_global current_section_index = loop.index0 %} {# Finds the current section, needed for pagination logic later #} {% else %}
    5. {{ inner.title }}
    6. -- cgit v1.3.1