File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @cloudfour/patterns ' : minor
3+ ---
4+
5+ Don't allow line breaks in author names
Original file line number Diff line number Diff line change 77.c-author {
88 color : var (--theme-color-text-muted );
99}
10+
11+ /* *
12+ * 1. Prevent breaking inside author names
13+ */
14+ .c-author__author {
15+ display : inline-block ; /* 1 */
16+ }
Original file line number Diff line number Diff line change 6262 {# Author content #}
6363 <div class =" c-author__content-container o-media__content" >
6464 {# Author links #}
65- <p class = " c-author__author " >
65+ <p >
6666 <span class =" u-hidden-visually" >{{ author_prefix | default (" By" ) }}</span >
6767 {% block authors %}
6868 {% for author in authors %}
6969 {% if loop .last and loop .length > 1 %}and {% endif %}
70- {%- if author .link and not unlink -%}
71- < a href =" {{ author .link }}" >{{ author .name }}</a >
72- {%- else -%}
73- <span >{{ author .name }}</span >
74- {%- endif -%}
70+ {%- if author .link and not unlink -%}
71+ < a class = " c-author__author " href =" {{ author .link }}" >{{ author .name }}</a >
72+ {%- else -%}
73+ <span class = " c-author__author " >{{ author .name }}</span >
74+ {%- endif -%}
7575 {%- if not loop .last and loop .length > 2 %},{% endif %}
7676 {% endfor %}
7777 {% endblock %}
You can’t perform that action at this time.
0 commit comments