From a16e5d3d50618d36fb41ba01b0dced6c9f2c01ba Mon Sep 17 00:00:00 2001 From: Simone Bortolin Date: Sat, 13 Aug 2022 20:10:31 +0200 Subject: update script for contributors --- _layouts/default.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 718ea9e..3e258d2 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -251,8 +251,8 @@ layout: table_wrappers var authors = commits.flatMap(x => [{...x.commit.author, ...x.author},{...x.commit.committer, ...x.committer}]).map(({date, ...keepAttrs}) => keepAttrs).filter((value, index, self) => index === self.findIndex((t) => ( - t.place === value.place && t.name === value.name - )) + t.login === value.login + )) && value.login !== "web-flow" ); document.getElementById('last-modified').textContent = "Last Modified: " + modified; document.getElementById('contributors').textContent = authors.length + " "+ ( authors.length == 1? "Contributor" : "Contributors"); -- cgit v1.2.3