Commit f20c57f6161c71790d2a002ae9fcaa5cbf30d94b
Introduce small links with <h2> not <h1>
Produces a better document outline when ignoring sections.Greg K Nicholson committed on 2/4/2018, 6:00:05 PM
Parent: f23c91121bc51df71e22fc89a41d4ca0b7a53fa0
Files changed
themes/ran/static/style/ran.css | changed |
themes/ran/templates/archives.html | changed |
themes/ran/templates/article.html | changed |
themes/ran/templates/period_archives.html | changed |
themes/ran/static/style/ran.css | ||
---|---|---|
@@ -323,9 +323,9 @@ | ||
323 | 323 … | .smalllinks li { |
324 | 324 … | display: inline; |
325 | 325 … | } |
326 | 326 … | |
327 | - .smalllinks h1, | |
327 … | + .smalllinks h2, | |
328 | 328 … | .smalllinks a { |
329 | 329 … | display: inline-block; |
330 | 330 … | margin-top: 0; |
331 | 331 … | margin-bottom: 0; |
themes/ran/templates/archives.html | ||
---|---|---|
@@ -2,9 +2,9 @@ | ||
2 | 2 … | {%- block title -%}{{- ARCHIVES_TITLE -}}{%- endblock -%} |
3 | 3 … | {%- block pagedetails -%} |
4 | 4 … | {{- super() -}} |
5 | 5 … | <section class="smalllinks"> |
6 | - <h1>Years:</h1> | |
6 … | + <h2>Years:</h2> | |
7 | 7 … | <ul> |
8 | 8 … | {%- for article in dates | unique(attribute="date.year") -%} |
9 | 9 … | <li> |
10 | 10 … | <a href="/{{- article.date | |
@@ -15,9 +15,9 @@ | ||
15 | 15 … | {%- endfor -%} |
16 | 16 … | </ul> |
17 | 17 … | </section> |
18 | 18 … | <section class="smalllinks"> |
19 | - <h1>Labels:</h1> | |
19 … | + <h2>Labels:</h2> | |
20 | 20 … | <ul> |
21 | 21 … | {%- for tag, articles in tags | sort -%} |
22 | 22 … | {%- if articles | list | length > 1 -%} |
23 | 23 … | <li> |
themes/ran/templates/article.html | ||
---|---|---|
@@ -94,9 +94,9 @@ | ||
94 | 94 … | at least 1 of this article's tags |
95 | 95 … | also appears in another article. |
96 | 96 … | --> -#} |
97 | 97 … | <section class="smalllinks"> |
98 | - <h1>Labels:</h1> | |
98 … | + <h2>Labels:</h2> | |
99 | 99 … | <ul> |
100 | 100 … | {%- for tag in article.tags -%} |
101 | 101 … | {#- <!-- Loop through this article's tags, in order. |
102 | 102 … | --> -#} |
themes/ran/templates/period_archives.html | ||
---|---|---|
@@ -13,9 +13,9 @@ | ||
13 | 13 … | {{- super() -}} |
14 | 14 … | {%- if period | length == 1 and |
15 | 15 … | dates | unique(attribute="date.month") | list | length > 1 -%} |
16 | 16 … | <section class="smalllinks"> |
17 | - <h1>Months:</h1> | |
17 … | + <h2>Months:</h2> | |
18 | 18 … | <ul> |
19 | 19 … | {%- for article in dates | |
20 | 20 … | reverse | |
21 | 21 … | unique(attribute="date.month") -%} |
@@ -34,9 +34,9 @@ | ||
34 | 34 … | </section> |
35 | 35 … | {%- elif period | length == 2 and |
36 | 36 … | dates | unique(attribute="date.day") | list | length > 1 -%} |
37 | 37 … | <section class="smalllinks"> |
38 | - <h1>Days:</h1> | |
38 … | + <h2>Days:</h2> | |
39 | 39 … | <ul> |
40 | 40 … | {%- for article in dates | |
41 | 41 … | reverse | |
42 | 42 … | unique(attribute="date.day") -%} |
Built with git-ssb-web