Skip to content

Commit

Permalink
Merge pull request #3277 from kolchfa-aws/additional-info
Browse files Browse the repository at this point in the history
Add support for additional author info in blogs
  • Loading branch information
nateynateynate authored Sep 9, 2024
2 parents 820fecd + fbc90db commit cb337a9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ <h1>{{page.title}}</h1>

{%- include author_panel.html author=author linked="true" -%}
{% endfor %}

{% assign additional_author_info = page.additional_author_info | default: '' %}
{% if additional_author_info.size > 0 %}
<div class="additional-author-info">
<p>{{additional_author_info}}</p>
</div>
{% endif %}
</div>
{% endcapture %}

Expand Down
3 changes: 3 additions & 0 deletions _posts/_sample.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ has_math: true
# Setting to true will result in the inclusion of CSS styles specific to using borders for the table, for table header cells, and table data cells. scientific data tables. For reference see: _includes/science-table-styles.html.
has_science_table: true

# Provide additional info to be added to the bottom of the right column, after the author bios. Useful for including more authors, reviewers, or developers, to whom you want to give credit for the blog post.
additional_author_info: Any additional information you want to include.

# The layout template to use for rendering the content.
# Options are default, fullwidth, homepage, and post.
layout: post
Expand Down
6 changes: 6 additions & 0 deletions _sass/_opensearch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@
}
}

.additional-author-info {
border-top: 1px solid $secondary-sanfrancisco-fog-s2;
margin-top: 2rem;
font-style: italic;
}

.tree, .tree ul {
margin:0;
padding:0;
Expand Down

0 comments on commit cb337a9

Please sign in to comment.