diff --git a/_includes/authors.html b/_includes/authors.html index c127fd59e..bccc61f96 100644 --- a/_includes/authors.html +++ b/_includes/authors.html @@ -1,4 +1,4 @@ -
+
{% for page_author in include.authors %} {% assign author = site.data.authors[page_author] %} {% if author.name %} diff --git a/_layouts/new-layouts/post.html b/_layouts/new-layouts/post.html index 8512725e5..f87c0336c 100644 --- a/_layouts/new-layouts/post.html +++ b/_layouts/new-layouts/post.html @@ -8,7 +8,11 @@

{{ 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 %} +

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;