Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1168 from oleg-nenashev/author-profile-boxes
[INFRA-1359] - Add Author Info boxes to blog-posts
- Loading branch information
Showing
13 changed files
with
222 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
- authorId = page.author || '' | ||
- author = site.authors[authorId] | ||
|
||
-if author | ||
%div{:id => "about-the-author"} | ||
%b.author.about-header | ||
About the Author | ||
%table.author.box | ||
%tr | ||
%td | ||
- author.avatar = Dir.glob("content/images/avatars/#{authorId}.{bmp,gif,ico,jpg,jpeg,png,svg}").first | ||
- if author.avatar | ||
- author.avatar.sub!('content','') | ||
%img.author.logo{:src => author.avatar, :alt => author.name} | ||
- else | ||
%img.author.logo{:src => "/images/logos/transparent/transparent.svg", :alt => author.name} | ||
%td | ||
%b.author.name | ||
= author.name | ||
%p | ||
- if author.content.empty? | ||
This author has no biography defined. | ||
See social media links referenced below. | ||
- else | ||
= author.content | ||
%ul.author.social-media-buttons | ||
- if author.github | ||
%li.author | ||
%a{:href => "https://github.com/#{author.github}", :target => "_blank"} | ||
GitHub | ||
- if author.twitter | ||
%li.author | ||
%a{:href => "https://twitter.com/#{author.twitter}", :target => "_blank"} | ||
- if author.blog | ||
%li.author | ||
%a{:href => "#{author.blog}", :target => "_blank"} | ||
Blog | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.