git ssb

0+

Grey the earthling / gkn.me.uk



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.htmlchanged
themes/ran/templates/base.htmlchanged
themes/ran/templates/article.htmlView
@@ -85,9 +85,9 @@
8585 <li>
8686 <a href="{{- link.url -}}">
8787 <strong>{{- link.title | trim -}}</strong>
8888 {%- if link.description -%}
89- {#- #} {# -#}
89 + <span class="visuallyhidden">: </span>
9090 <i>{{- link.description | trim -}}</i>
9191 {%- endif -%}
9292 </a>
9393 </li>
@@ -134,15 +134,16 @@
134134 {%- for article in article.related_posts -%}
135135 <li>
136136 <a href="/{{- article.url -}}">
137137 <strong>{{- article.title | trim -}}</strong>
138- {#- #} {# -#}
138 + <span class="visuallyhidden"> (</span>
139139 <time datetime="{{- article.date |
140140 strftime('%Y-%m-%d %H:%M') -}}">
141141 {{- article.date | strftime(DATE_FORMAT_DAY) -}}
142142 </time>
143 + <span class="visuallyhidden">)</span>
143144 {%- if article.description -%}
144- {#- #} {# -#}
145 + <span class="visuallyhidden">: </span>
145146 <i>
146147 {{- article.description | striptags -}}
147148 </i>
148149 {%- endif -%}
themes/ran/templates/base.htmlView
@@ -3,14 +3,15 @@
33 <a href="/{{- article.url -}}">
44 <strong>
55 {{- article.title |trim -}}
66 </strong>
7- {#- #} {# -#}
7 + <span class="visuallyhidden"> (</span>
88 <time datetime="{{- article.date | strftime('%Y-%m-%d %H:%M') -}}">
99 {{- article.date | strftime(DATE_FORMAT_DAY) -}}
1010 </time>
11 + <span class="visuallyhidden">)</span>
1112 {%- if article.description -%}
12- {#- #} {# -#}
13 + <span class="visuallyhidden">: </span>
1314 <i>
1415 {{- article.description | striptags -}}
1516 </i>
1617 {%- endif -%}

Built with git-ssb-web