-
Notifications
You must be signed in to change notification settings - Fork 929
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
Rename maintainers as editorial board #4273
Conversation
Thanks |
_plugins/author-page.rb
Outdated
@@ -103,6 +103,11 @@ def generate(site) | |||
page2.data['news_count'] = news_by_author[contributor].length | |||
page2.data['learning_pathways_count'] = learning_pathways_by_author[contributor].length | |||
|
|||
page2.data['editors'] = TopicFilter.enumerate_topics(site).select {|t| t.fetch('editorial_board', []).include?(contributor) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/SpaceInsideBlockBraces> reported by reviewdog 🐶
Space between { and | missing.
page2.data['editors'] = TopicFilter.enumerate_topics(site).select {|t| t.fetch('editorial_board', []).include?(contributor) } | |
page2.data['editors'] = TopicFilter.enumerate_topics(site).select { |t| t.fetch('editorial_board', []).include?(contributor) } |
_plugins/author-page.rb
Outdated
@@ -103,6 +103,11 @@ def generate(site) | |||
page2.data['news_count'] = news_by_author[contributor].length | |||
page2.data['learning_pathways_count'] = learning_pathways_by_author[contributor].length | |||
|
|||
page2.data['editors'] = TopicFilter.enumerate_topics(site).select {|t| t.fetch('editorial_board', []).include?(contributor) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/LineLength> reported by reviewdog 🐶
Line is too long. [133/120]
page2.data['editors'] = TopicFilter.enumerate_topics(site).select {|t| t.fetch('editorial_board', []).include?(contributor) } | |
page2.data['editors'] = TopicFilter.enumerate_topics(site).select {|t| | |
t.fetch('editorial_board', []).include?(contributor) } |
_plugins/author-page.rb
Outdated
@@ -103,6 +103,11 @@ def generate(site) | |||
page2.data['news_count'] = news_by_author[contributor].length | |||
page2.data['learning_pathways_count'] = learning_pathways_by_author[contributor].length | |||
|
|||
page2.data['editors'] = TopicFilter.enumerate_topics(site).select {|t| t.fetch('editorial_board', []).include?(contributor) } | |||
# Also their learning pathways | |||
page2.data['editors'] += site.pages.select {|t| t['layout'] == 'learning-pathway' && t.data.fetch('editorial_board', []).include?(contributor) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/SpaceInsideBlockBraces> reported by reviewdog 🐶
Space between { and | missing.
page2.data['editors'] += site.pages.select {|t| t['layout'] == 'learning-pathway' && t.data.fetch('editorial_board', []).include?(contributor) } | |
page2.data['editors'] += site.pages.select { |t| t['layout'] == 'learning-pathway' && t.data.fetch('editorial_board', []).include?(contributor) } |
_plugins/author-page.rb
Outdated
@@ -103,6 +103,11 @@ def generate(site) | |||
page2.data['news_count'] = news_by_author[contributor].length | |||
page2.data['learning_pathways_count'] = learning_pathways_by_author[contributor].length | |||
|
|||
page2.data['editors'] = TopicFilter.enumerate_topics(site).select {|t| t.fetch('editorial_board', []).include?(contributor) } | |||
# Also their learning pathways | |||
page2.data['editors'] += site.pages.select {|t| t['layout'] == 'learning-pathway' && t.data.fetch('editorial_board', []).include?(contributor) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [rubocop] <Layout/LineLength> reported by reviewdog 🐶
Line is too long. [152/120]
page2.data['editors'] += site.pages.select {|t| t['layout'] == 'learning-pathway' && t.data.fetch('editorial_board', []).include?(contributor) } | |
page2.data['editors'] += site.pages.select {|t| | |
t['layout'] == 'learning-pathway' && t.data.fetch('editorial_board', []).include?(contributor) } |
ready to go @shiltemann |
It's closer to their functional role and it's a bit more of a recognisable in this sort of context, so hopefully encourages people to take on this role when possible. (I.e. a more CV-compatible title)
Additionally this recognises those contributors for going above and beyond, on their contributor profile page.