-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Display author avatars in the blog #1915
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
Changes from all commits
d5d59a0
3f267c3
f92664b
ec26bd1
cc4d220
e944163
d167ada
3eb6944
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{%- assign authors = include.authors -%} | ||
{% if authors %} | ||
<div class="blog-authors"> | ||
By | ||
{% for author in authors %} | ||
|
||
{%- assign label = author.github | prepend: '@' -%} | ||
{%- if author.name -%} | ||
{%- assign label = author.name -%} | ||
{%- endif -%} | ||
|
||
{% if label and author.github %} | ||
<a href="https://github.com/{{author.github}}" rel="author" class="blog-author-link"> | ||
<img src="https://github.com/{{author.github}}.png?size=64" alt="" class="blog-author-avatar" /> | ||
ShubhamOulkar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<span class="blog-author-link-label">{{label}}</span></a>{% unless forloop.last %}, {% endunless %} | ||
{% elsif label %} | ||
{{label}}{% unless forloop.last %}, {% endunless %} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
{% endif %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
--- | ||
title: "Introducing Express v5: A New Era for the Node.js Framework" | ||
tags: releases | ||
author: Wes Todd and the Express Technical Committee | ||
authors: | ||
- name: Wes Todd | ||
github: wesleytodd | ||
- name: Express Technical Committee | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could use the GitHub username for the TC, so it doesn't end up without a photo. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I couldn't find a GitHub user for the technical committee specifically, I added expressjs and it looks like this: Is this what you meant? If not I can revert. One doubt I had is that we're kind of spamming the blog page with lots of the same image and link out to the GitHub org. Maybe this is fine? |
||
github: expressjs | ||
description: Announcing the release of Express version 5 | ||
--- | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
--- | ||
title: "[email protected]: Now the Default on npm with LTS Timeline" | ||
tags: news release | ||
author: Express Technical Committee | ||
authors: | ||
- name: Express Technical Committee | ||
github: expressjs | ||
description: Express 5.1.0 is now the default on npm, and we're introducing an official LTS schedule for the v4 and v5 release lines. | ||
--- | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.