Commit eb7713aa95a037673eca630953d54d05cdb76221
Better text-mode punctuation in complex links
Use punctuation instead of spaces to separate the parts of big links.Greg K Nicholson committed on 2/16/2018, 6:32:40 PM
Parent: 09853b2cb333cee284b5dd42cb21a933dbdc1b66
Files changed
themes/ran/templates/article.html | changed |
themes/ran/templates/base.html | changed |
themes/ran/templates/article.html | ||
---|---|---|
@@ -85,9 +85,9 @@ | ||
85 | 85 … | <li> |
86 | 86 … | <a href="{{- link.url -}}"> |
87 | 87 … | <strong>{{- link.title | trim -}}</strong> |
88 | 88 … | {%- if link.description -%} |
89 | - {#- #} {# -#} | |
89 … | + <span class="visuallyhidden">: </span> | |
90 | 90 … | <i>{{- link.description | trim -}}</i> |
91 | 91 … | {%- endif -%} |
92 | 92 … | </a> |
93 | 93 … | </li> |
@@ -134,15 +134,16 @@ | ||
134 | 134 … | {%- for article in article.related_posts -%} |
135 | 135 … | <li> |
136 | 136 … | <a href="/{{- article.url -}}"> |
137 | 137 … | <strong>{{- article.title | trim -}}</strong> |
138 | - {#- #} {# -#} | |
138 … | + <span class="visuallyhidden"> (</span> | |
139 | 139 … | <time datetime="{{- article.date | |
140 | 140 … | strftime('%Y-%m-%d %H:%M') -}}"> |
141 | 141 … | {{- article.date | strftime(DATE_FORMAT_DAY) -}} |
142 | 142 … | </time> |
143 … | + <span class="visuallyhidden">)</span> | |
143 | 144 … | {%- if article.description -%} |
144 | - {#- #} {# -#} | |
145 … | + <span class="visuallyhidden">: </span> | |
145 | 146 … | <i> |
146 | 147 … | {{- article.description | striptags -}} |
147 | 148 … | </i> |
148 | 149 … | {%- endif -%} |
themes/ran/templates/base.html | |||
---|---|---|---|
@@ -3,14 +3,15 @@ | |||
3 | 3 … | <a href="/{{- article.url -}}"> | |
4 | 4 … | <strong> | |
5 | 5 … | {{- article.title |trim -}} | |
6 | 6 … | </strong> | |
7 | - {#- #} {# -#} | ||
7 … | + <span class="visuallyhidden"> (</span> | ||
8 | 8 … | <time datetime="{{- article.date | strftime('%Y-%m-%d %H:%M') -}}"> | |
9 | 9 … | {{- article.date | strftime(DATE_FORMAT_DAY) -}} | |
10 | 10 … | </time> | |
11 … | + <span class="visuallyhidden">)</span> | ||
11 | 12 … | {%- if article.description -%} | |
12 | - {#- #} {# -#} | ||
13 … | + <span class="visuallyhidden">: </span> | ||
13 | 14 … | <i> | |
14 | 15 … | {{- article.description | striptags -}} | |
15 | 16 … | </i> | |
16 | 17 … | {%- endif -%} |
Built with git-ssb-web