From 26e48fba3dbde7798132a0f2d4325b192e776445 Mon Sep 17 00:00:00 2001 From: zeospec Date: Sat, 3 Apr 2021 20:22:21 +0530 Subject: [PATCH 1/3] Featured post to Author Page link fix --- _includes/featuredbox.html | 2 +- _posts/2021-03-20-march-meetup.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/featuredbox.html b/_includes/featuredbox.html index 18e04ebe..c51cd4bc 100644 --- a/_includes/featuredbox.html +++ b/_includes/featuredbox.html @@ -27,7 +27,7 @@

{% if post.author %} - {{ author.display_name }} + {{ author.display_name }} {{ author.display_name }}
diff --git a/_posts/2021-03-20-march-meetup.md b/_posts/2021-03-20-march-meetup.md index 9e129c37..a718eed1 100644 --- a/_posts/2021-03-20-march-meetup.md +++ b/_posts/2021-03-20-march-meetup.md @@ -7,7 +7,7 @@ description: "In collaboration with PythonPune" categories: [ meetup, talks, workshop ] image: featured: true -hidden: false +hidden: true --- From 650253d98856e2031e3296fe98500efb0ee671b0 Mon Sep 17 00:00:00 2001 From: zeospec Date: Fri, 9 Apr 2021 11:41:40 +0530 Subject: [PATCH 2/3] author tagging fix --- _authors/abhiram.md | 9 +++ _authors/anistark.md | 9 +++ _authors/bangpypers.md | 9 +++ _authors/krace.md | 6 ++ _authors/rahul.md | 7 ++ _authors/ritesh.md | 8 ++ _authors/zeospec.md | 9 +++ _config.yml | 17 +++- _data/authors.yml | 57 -------------- _includes/featuredbox.html | 14 ++-- _includes/postbox.html | 22 +++--- _layouts/archive.html | 20 +++-- _layouts/default.html | 12 +-- _layouts/post.html | 78 +++++++++---------- _posts/2012-12-07-november-meetup.md | 4 +- .../2012-12-13-december-bangpypers-meetup.md | 4 +- _posts/2013-01-16-january-meetup.md | 4 +- _posts/2013-01-18-december-meetup-videos.md | 4 +- _posts/2013-01-24-january-meetup-video.md | 4 +- _posts/2013-03-05-feburary-meetup-video.md | 4 +- _posts/2013-03-18-march-meetup.md | 4 +- _posts/2013-03-24-march-meetup-report.md | 4 +- _posts/2013-03-24-poll.md | 4 +- _posts/2013-05-24-may-meetup-writeup.md | 4 +- _posts/2013-07-23-july-meetup-video.md | 4 +- _posts/2013-11-16-november-meetup-report.md | 4 +- _posts/2013-12-16-december-meetup.md | 4 +- _posts/2013-12-21-december-meetup-report.md | 4 +- _posts/2014-01-18-january-meetup-report.md | 4 +- _posts/2014-02-15-february-meetup-report.md | 4 +- _posts/2014-03-15-march-meetup-report.md | 4 +- _posts/2014-04-19-april-meetup-report.md | 4 +- _posts/2014-05-17-may-meetup-report.md | 4 +- _posts/2014-06-22-june-talks-report.md | 4 +- _posts/2014-06-22-june-workshop-report.md | 4 +- _posts/2014-08-22-august-workshop-report.md | 4 +- _posts/2014-10-19-october-meetup-report.md | 4 +- _posts/2014-11-15-november-meetup-report.md | 4 +- .../2014-12-20-december-dev-sprint-report.md | 4 +- _posts/2014-12-31-thank-you-2014.md | 4 +- _posts/2015-01-24-january-meetup-report.md | 4 +- _posts/2015-02-21-feb-meetup-report.md | 4 +- _posts/2015-03-21-march-meetup-report.md | 4 +- _posts/2015-04-25-april-meetup-report.md | 4 +- _posts/2015-05-16-may-dev-sprint.md | 4 +- _posts/2015-05-23-may-workshop.md | 4 +- _posts/2015-06-20-june-workshop-report.md | 4 +- _posts/2015-07-18-july-meetup.md | 4 +- _posts/2015-08-22-august-talks-meetup.md | 4 +- _posts/2015-08-29-salt-stack-workshop.md | 4 +- .../2015-09-12-september-workshop-report.md | 4 +- _posts/2015-10-24-october-meetup.md | 4 +- _posts/2015-11-21-november-workshop.md | 4 +- _posts/2015-11-28-november-talks-report.md | 4 +- _posts/2015-12-19-december-dev-sprint.md | 4 +- _posts/2016-01-30-salt-stack-workshop.md | 4 +- _posts/2016-02-06-feb-talks-report.md | 4 +- _posts/2016-02-17-feb-workshop.md | 4 +- _posts/2016-03-19-solr-workshop.md | 4 +- _posts/2016-04-02-robot-framework-workshop.md | 4 +- _posts/2016-04-23-april-dev-sprint.md | 4 +- _posts/2016-05-21-talks.md | 4 +- _posts/2016-06-18-june-workshop-django.md | 4 +- .../2016-07-16-machine-learning-workshop.md | 4 +- _posts/2016-08-20-august-talks.md | 4 +- _posts/2016-09-17-ansible-workshop.md | 4 +- _posts/2016-10-22-drf-workshop.md | 4 +- _posts/2016-11-19-pandas-workshop.md | 4 +- _posts/2017-01-21-jan-talks.md | 4 +- _posts/2017-02-18-feb-short-talks.md | 4 +- _posts/2017-03-18-mar-workshop.md | 4 +- _posts/2017-03-25-mar-workshop.md | 4 +- _posts/2017-04-15-apr-talks.md | 4 +- _posts/2017-05-20-may-talks.md | 4 +- _posts/2017-06-03-how-bangpypers-is-run.md | 4 +- _posts/2017-06-17-jun-talks.md | 4 +- _posts/2017-07-08-jul-workshop.md | 4 +- _posts/2017-07-15-jul-workshop.md | 4 +- _posts/2017-09-16-sep-talk.md | 4 +- _posts/2018-10-27-oct-talk.md | 4 +- _posts/2018-11-17-nov-workshop-report.md | 4 +- .../2019-05-15-Pycon-India-2019-is-coming.md | 4 +- _posts/2019-09-21-September-meetup.md | 4 +- ...4-guidelines-for-bangpypers-dev-sprints.md | 4 +- _posts/2020-02-22-100th-Bangpypers-meetup.md | 4 +- _posts/2020-05-23-flask-workshop.md | 4 +- _posts/2020-07-18-jul-talks.md | 4 +- _posts/2021-03-20-march-meetup.md | 6 +- authors.html | 21 +++-- 89 files changed, 309 insertions(+), 287 deletions(-) create mode 100644 _authors/abhiram.md create mode 100644 _authors/anistark.md create mode 100644 _authors/bangpypers.md create mode 100644 _authors/krace.md create mode 100644 _authors/rahul.md create mode 100644 _authors/ritesh.md create mode 100644 _authors/zeospec.md delete mode 100644 _data/authors.yml diff --git a/_authors/abhiram.md b/_authors/abhiram.md new file mode 100644 index 00000000..c522e2b4 --- /dev/null +++ b/_authors/abhiram.md @@ -0,0 +1,9 @@ +--- +username: abhiram +name: Abhiram +logo: /assets/images/authors/sharingan.jpeg +email: abhi.darkness@gmail.com +web: https://abhiramr.com +twitter: https://twitter.com/abhicantdraw/ +description: "Abhiram - Co-Organiser" +--- \ No newline at end of file diff --git a/_authors/anistark.md b/_authors/anistark.md new file mode 100644 index 00000000..be18b6b9 --- /dev/null +++ b/_authors/anistark.md @@ -0,0 +1,9 @@ +--- +username: anistark +name: Anirudha +logo: https://i.imgur.com/vVqT7PJ.jpg +email: mail@anirudha.dev +web: https://anirudha.dev +twitter: https://twitter.com/kranirudha/ +description: "Kumar Anirudha - Co-Organiser" +--- \ No newline at end of file diff --git a/_authors/bangpypers.md b/_authors/bangpypers.md new file mode 100644 index 00000000..08f94ae7 --- /dev/null +++ b/_authors/bangpypers.md @@ -0,0 +1,9 @@ +--- +username: bangpypers +name: BangPypers +logo: /assets/images/authors/bangpypers.jpg +email: +web: https://bangalore.python.org.in +twitter: https://www.meetup.com/BangPypers/ +description: "The Bangalore Python User Group" +--- \ No newline at end of file diff --git a/_authors/krace.md b/_authors/krace.md new file mode 100644 index 00000000..b2592980 --- /dev/null +++ b/_authors/krace.md @@ -0,0 +1,6 @@ +--- +username: krace +name: Krace +logo: /assets/images/authors/bangpypers.jpg +email: me@kracekumar.com +--- \ No newline at end of file diff --git a/_authors/rahul.md b/_authors/rahul.md new file mode 100644 index 00000000..c71cd250 --- /dev/null +++ b/_authors/rahul.md @@ -0,0 +1,7 @@ +--- +username: rahul +name: Rahul Kumaresan +logo: https://s.gravatar.com/avatar/199fbad24bc5db74968f668aa16f4e02?s=80 +email: kayrahul@gmail.com +twitter: https://twitter.com/RahulKumaresan/ +--- \ No newline at end of file diff --git a/_authors/ritesh.md b/_authors/ritesh.md new file mode 100644 index 00000000..f0ddd33e --- /dev/null +++ b/_authors/ritesh.md @@ -0,0 +1,8 @@ +--- +username: ritesh +name: Ritesh Agrawal +logo: /assets/images/authors/bangpypers.jpg +email: udr.ritesh@gmail.com +twitter: https://twitter.com/agrawalritesh_ +description: "Ritesh Agrawal - Co-Organiser" +--- \ No newline at end of file diff --git a/_authors/zeospec.md b/_authors/zeospec.md new file mode 100644 index 00000000..cc43bcb9 --- /dev/null +++ b/_authors/zeospec.md @@ -0,0 +1,9 @@ +--- +username: zeospec +name: ZeoSpec +logo: /assets/images/authors/zeospec.jpg +email: hi@zeospec.com +web: https://zeospec.com +twitter: https://twitter.com/zeospec/ +description: "Community Builder" +--- \ No newline at end of file diff --git a/_config.yml b/_config.yml index 4ea7589e..eb1044e7 100644 --- a/_config.yml +++ b/_config.yml @@ -27,8 +27,21 @@ jekyll-archives: year: '/blog/:year/' month: '/blog/:year/:month/' day: '/blog/:year/:month/:day/' - tag: '/authors/:name/' - + # tag: '/authors/:name/' + +collections: + authors: + output: true + permalink: /authors/:path/ + +defaults: + - scope: + path: "" + type: "authors" + values: + layout: "archive" + type: "authors" + # Pagination paginate: 6 paginate_path: /page:num/ diff --git a/_data/authors.yml b/_data/authors.yml deleted file mode 100644 index 60ec4c83..00000000 --- a/_data/authors.yml +++ /dev/null @@ -1,57 +0,0 @@ -# twitter is used for the follow add any link that you want the user to go to. -bangpypers: - name: BangPypers - display_name: BangPypers - logo: /assets/images/authors/bangpypers.jpg - email: - web: https://bangalore.python.org.in - twitter: https://www.meetup.com/BangPypers/ - description: "The Bangalore Python User Group" - -zeospec: - name: ZeoSpec - display_name: ZeoSpec - logo: /assets/images/authors/zeospec.jpg - email: - web: https://zeospec.com - twitter: https://twitter.com/zeospec/ - description: "ZeoSpec - Community Builder" - -abhiram: - name: Abhiram - display_name: Abhiram - logo: /assets/images/authors/sharingan.jpeg - email: abhi.darkness@gmail.com - web: https://abhiramr.com - twitter: https://twitter.com/abhicantdraw/ - description: "Abhiram - Co-Organiser" - -anistark: - name: Kumar Anirudha - display_name: Anirudha - logo: https://i.imgur.com/vVqT7PJ.jpg - email: mail@anirudha.dev - web: https://anirudha.dev - twitter: https://twitter.com/kranirudha/ - description: "Kumar Anirudha - Co-Organiser" - -ritesh: - name: Ritesh Agrawal - display_name: Ritesh - logo: /assets/images/authors/bangpypers.jpg - email: udr.ritesh@gmail.com - twitter: https://twitter.com/agrawalritesh_ - description: "Ritesh Agrawal - Co-Organiser" - -krace: - name: Kracekumar Ramaraju - display_name: Krace - logo: /assets/images/authors/bangpypers.jpg - email: me@kracekumar.com - -rahul: - name: Rahul Kumaresan - display_name: Rahul - logo: https://s.gravatar.com/avatar/199fbad24bc5db74968f668aa16f4e02?s=80 - email: kayrahul@gmail.com - twitter: https://twitter.com/RahulKumaresan/ diff --git a/_includes/featuredbox.html b/_includes/featuredbox.html index c51cd4bc..2e8f3e21 100644 --- a/_includes/featuredbox.html +++ b/_includes/featuredbox.html @@ -1,5 +1,4 @@ -{% assign author = site.data.authors[post.author] %}
@@ -25,13 +24,18 @@

- {% if post.author %} + + {% for author in post.authors %} + {% if forloop.first %} + {% assign primary_author = site.authors | where: 'username', author | first %} - {{ author.display_name }} + {{ primary_author.name }} - {{ author.display_name }}
- {% endif %} + {{ primary_author.name }}
+ {% endif %} + {% endfor %} +
diff --git a/_includes/postbox.html b/_includes/postbox.html index 8952982d..3c07479f 100644 --- a/_includes/postbox.html +++ b/_includes/postbox.html @@ -1,6 +1,4 @@ -{% assign author = site.data.authors[post.author] %} -
@@ -26,16 +24,18 @@