Skip to content

Commit cb337a9

Browse files
Merge pull request #3277 from kolchfa-aws/additional-info
Add support for additional author info in blogs
2 parents 820fecd + fbc90db commit cb337a9

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

_layouts/post.html

+7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ <h1>{{page.title}}</h1>
4545

4646
{%- include author_panel.html author=author linked="true" -%}
4747
{% endfor %}
48+
49+
{% assign additional_author_info = page.additional_author_info | default: '' %}
50+
{% if additional_author_info.size > 0 %}
51+
<div class="additional-author-info">
52+
<p>{{additional_author_info}}</p>
53+
</div>
54+
{% endif %}
4855
</div>
4956
{% endcapture %}
5057

_posts/_sample.markdown

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ has_math: true
2323
# 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.
2424
has_science_table: true
2525

26+
# 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.
27+
additional_author_info: Any additional information you want to include.
28+
2629
# The layout template to use for rendering the content.
2730
# Options are default, fullwidth, homepage, and post.
2831
layout: post

_sass/_opensearch.scss

+6
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@
210210
}
211211
}
212212

213+
.additional-author-info {
214+
border-top: 1px solid $secondary-sanfrancisco-fog-s2;
215+
margin-top: 2rem;
216+
font-style: italic;
217+
}
218+
213219
.tree, .tree ul {
214220
margin:0;
215221
padding:0;

0 commit comments

Comments
 (0)