From: Vladimír Vondruš Date: Sat, 18 Nov 2017 14:17:44 +0000 (+0100) Subject: css: hint that two-column navbar should have successive numbering. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=8ca55ade2f14ec285075c7f568458e25c6cd31bc;p=blog.git css: hint that two-column navbar should have successive numbering. And apply that to the theme as well. --- diff --git a/doc/css/page-layout.rst b/doc/css/page-layout.rst index 2ff5af2f..48cdd955 100644 --- a/doc/css/page-layout.rst +++ b/doc/css/page-layout.rst @@ -158,7 +158,8 @@ add a thinner subtitle. To save vertical space on small screens, it's possible to split the navbar contents into two (or more) columns using standard m.css -`grid functionality <{filename}/css/grid.rst>`_: +`grid functionality <{filename}/css/grid.rst>`_. For better accessibility, +specify the start index on the second :html:`
    ` element. .. code:: html :hl_lines: 7 8 9 10 11 12 13 14 15 16 17 18 19 @@ -177,7 +178,7 @@ contents into two (or more) columns using standard m.css
  1. Showcase
  2. Download
-
    +
    1. Blog
    2. Contact
    @@ -211,7 +212,7 @@ appear as an indented sub-list.
  1. Showcase
  2. Download
-
    +
    1. Blog
        diff --git a/pelican-theme/templates/base.html b/pelican-theme/templates/base.html index 67dcb315..4a180600 100644 --- a/pelican-theme/templates/base.html +++ b/pelican-theme/templates/base.html @@ -45,7 +45,8 @@ {% endfor %}
      -
        + {% set start = M_LINKS_NAVBAR1|length + 1 %} +
          {% for title, link, slug, sub in M_LINKS_NAVBAR2 %}
        1. {{ title }}