{{ page.title }}
- {% include authors.html authors=page.author compact=true %} + {% assign compact_flag = false %} + {% if page.author.size > 1 %} + {% assign compact_flag = true %} + {% endif %} + {% include authors.html authors=page.author compact=compact_flag fullwidth=true %} {{ page.title }} {% endif %}
{{ content }} {% if page.author %}
-
+ {% assign authors = page.author | array %} {% if authors.size > 1 %} +
diff --git a/assets/stylesheets/new-stylesheets/includes/authors/_base.scss b/assets/stylesheets/new-stylesheets/includes/authors/_base.scss index 5e63641bc..f08e8eb4c 100644 --- a/assets/stylesheets/new-stylesheets/includes/authors/_base.scss +++ b/assets/stylesheets/new-stylesheets/includes/authors/_base.scss @@ -13,6 +13,11 @@ } } + &.fullwidth { + grid-template-columns: repeat(1, 1fr); + color: var(--color-syntax-plain-text); + } + &.compact { display: flex; flex-wrap: wrap;
+ {% assign authors = page.author | array %} {% if authors.size > 1 %} +
Authors
- {% else %} -Author
+ {% include authors.html authors=authors %} {% endif %} - {% include authors.html authors=authors %} {% endif %}diff --git a/assets/stylesheets/new-stylesheets/includes/authors/_base.scss b/assets/stylesheets/new-stylesheets/includes/authors/_base.scss index 5e63641bc..f08e8eb4c 100644 --- a/assets/stylesheets/new-stylesheets/includes/authors/_base.scss +++ b/assets/stylesheets/new-stylesheets/includes/authors/_base.scss @@ -13,6 +13,11 @@ } } + &.fullwidth { + grid-template-columns: repeat(1, 1fr); + color: var(--color-syntax-plain-text); + } + &.compact { display: flex; flex-wrap: wrap;