Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for additional author info in blogs #3277

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading