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 7
7
.c-author {
8
8
color : var (--theme-color-text-muted );
9
9
}
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 62
62
{# Author content #}
63
63
<div class =" c-author__content-container o-media__content" >
64
64
{# Author links #}
65
- <p class = " c-author__author " >
65
+ <p >
66
66
<span class =" u-hidden-visually" >{{ author_prefix | default (" By" ) }}</span >
67
67
{% block authors %}
68
68
{% for author in authors %}
69
69
{% 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 -%}
75
75
{%- if not loop .last and loop .length > 2 %},{% endif %}
76
76
{% endfor %}
77
77
{% endblock %}
You can’t perform that action at this time.
0 commit comments