File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
assets/stylesheets/new-stylesheets/includes/authors Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1- < div class ="authors{% if include.compact %} compact{% endif %} ">
1+ < div class ="authors{% if include.compact %} compact{% endif %}{% if include.fullwidth %} fullwidth{% endif %} ">
22 {% for page_author in include.authors %}
33 {% assign author = site.data.authors[page_author] %}
44 {% if author.name %}
Original file line number Diff line number Diff line change 88 < div class ="content ">
99 < h1 > {{ page.title }}</ h1 >
1010
11- {% include authors.html authors=page.author compact=true %}
11+ {% assign compact_flag = false %}
12+ {% if page.author.size > 1 %}
13+ {% assign compact_flag = true %}
14+ {% endif %}
15+ {% include authors.html authors=page.author compact=compact_flag fullwidth=true %}
1216
1317 < time pubdate datetime ="{{ page.date | date_to_xmlschema }} "
1418 > {{ page.date | date: "%B %-d, %Y" }}</ time
@@ -30,16 +34,15 @@ <h1>{{ page.title }}</h1>
3034 {% endif %}
3135 < div class ="details ">
3236 {{ content }} {% if page.author %}
33- < hr />
37+
3438 {% assign authors = page.author | array %}
3539
3640 {% if authors.size > 1 %}
41+ < hr />
3742 < h2 > Authors</ h2 >
38- {% else %}
39- < h2 > Author</ h2 >
43+ {% include authors.html authors=authors %}
4044 {% endif %}
4145
42- {% include authors.html authors=authors %}
4346 {% endif %}
4447
4548 < hr />
Original file line number Diff line number Diff line change 1313 }
1414 }
1515
16+ & .fullwidth {
17+ grid-template-columns : repeat (1 , 1fr );
18+ color : var (--color-syntax-plain-text );
19+ }
20+
1621 & .compact {
1722 display : flex ;
1823 flex-wrap : wrap ;
You can’t perform that action at this time.
0 commit comments