From 0f8605636168c615a301ffc2242dae912bdc2c83 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 17:59:15 +0000 Subject: [PATCH 1/5] Initial plan From 8ce016efccd6988d014db932489b0384e8351363 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:07:36 +0000 Subject: [PATCH 2/5] Refactor pewpew.html to use layout instead of duplicating HTML structure Co-authored-by: adrianmg <589285+adrianmg@users.noreply.github.com> --- _includes/pewpew-head.html | 40 ++++++++++++++++++++++++++++++ _layouts/pewpew.html | 7 ++++++ pewpew.html | 51 ++------------------------------------ 3 files changed, 49 insertions(+), 49 deletions(-) create mode 100644 _includes/pewpew-head.html create mode 100644 _layouts/pewpew.html diff --git a/_includes/pewpew-head.html b/_includes/pewpew-head.html new file mode 100644 index 0000000..bf4471d --- /dev/null +++ b/_includes/pewpew-head.html @@ -0,0 +1,40 @@ + + {{page.title}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% if jekyll.environment == 'production' %} + {% include analytics.html %} + {% endif %} + diff --git a/_layouts/pewpew.html b/_layouts/pewpew.html new file mode 100644 index 0000000..67de793 --- /dev/null +++ b/_layouts/pewpew.html @@ -0,0 +1,7 @@ + + +{% include pewpew-head.html %} + + {{ content }} + + diff --git a/pewpew.html b/pewpew.html index f52c3d6..1727f6c 100644 --- a/pewpew.html +++ b/pewpew.html @@ -1,53 +1,9 @@ --- +layout: pewpew title: "github-pewpew: pew pew needless GitHub repos and more!" description: "Clean up your unused repos and more from your terminal. Created by Adrián Mato." --- - - - - - {{page.title}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {% if jekyll.environment == 'production' %} - {% include analytics.html %} - {% endif %} - - - -
+
@@ -225,6 +181,3 @@

- - - From 247e2127b9877314c3122558f2ff223edba8c8f7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:10:00 +0000 Subject: [PATCH 3/5] Remove unused scrollToItem function from s.js Co-authored-by: adrianmg <589285+adrianmg@users.noreply.github.com> --- assets/js/s.js | 62 -------------------------------------------------- 1 file changed, 62 deletions(-) diff --git a/assets/js/s.js b/assets/js/s.js index dbd33f9..a5ed164 100644 --- a/assets/js/s.js +++ b/assets/js/s.js @@ -35,66 +35,4 @@ // initialize scroll hint showScrollHint(3); } - - // HELPERS - - // HELPERS: scrolling function from A -> B (modified from: https://bit.ly/2H3JKMV) - function scrollToItem(destination, duration = 500, extraPadding) { - const start = window.pageYOffset; - const startTime = "now" in window.performance ? performance.now() : new Date().getTime(); - - const documentHeight = Math.max( - document.body.scrollHeight, - document.body.offsetHeight, - document.documentElement.clientHeight, - document.documentElement.scrollHeight, - document.documentElement.offsetHeight - ); - const windowHeight = - window.innerHeight || - document.documentElement.clientHeight || - document.getElementsByTagName("body")[0].clientHeight; - const destinationOffset = - typeof destination === "number" ? destination : destination.offsetTop; - let destinationOffsetToScroll = Math.round( - documentHeight - destinationOffset < windowHeight - ? documentHeight - windowHeight - : destinationOffset - ) - if (start >= destinationOffsetToScroll) { // going up - destinationOffsetToScroll -= extraPadding; - } - - if ("requestAnimationFrame" in window === false) { - window.scroll(0, destinationOffsetToScroll); - return; - } - - function scroll() { - const now = - "now" in window.performance ? performance.now() : new Date().getTime(); - - const time = Math.min(1, (now - startTime) / duration); - const timeFunction = 0.5 * (1 - Math.cos(Math.PI * time)); - window.scroll( - 0, - Math.ceil(timeFunction * (destinationOffsetToScroll - start) + start) - ); - - if (start >= destinationOffsetToScroll) { // going up - if (Math.round(window.pageYOffset) <= Math.ceil(destinationOffsetToScroll)) { - return; - } - } - else { // going down - if (Math.round(window.pageYOffset) >= Math.ceil(destinationOffsetToScroll)) { - return; - } - } - - requestAnimationFrame(scroll); - } - - scroll(); - } })(); \ No newline at end of file From 1d730f948c23480d60573f3b35b20cac353402a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:12:57 +0000 Subject: [PATCH 4/5] Refactor home layout to inherit from default layout Co-authored-by: adrianmg <589285+adrianmg@users.noreply.github.com> --- _layouts/default.html | 2 +- _layouts/home.html | 54 +++++++++++++++++++++---------------------- 2 files changed, 27 insertions(+), 29 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index db3ffd9..b66bd3b 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,7 +1,7 @@ {% include head.html %} - + {{ content }} \ No newline at end of file diff --git a/_layouts/home.html b/_layouts/home.html index aad54ed..47eb9f4 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -1,32 +1,30 @@ - - -{% include head.html %} - -
-
-
-
-

Adrián Mato

-

Design Director at GitHub Copilot & startup investor.

-

- For the last 18+ years, I've designed digital products between Madrid, London and now, from - San Francisco. I also co-founded and later sold my company Erasmusu. -

-

- My career started as a Software Developer, but it soon became clear that my true passion was Design. - I love combining both skillsets to create products that fulfill a clear purpose. -

-
+--- +layout: default +body_class: home +--- +
+
+
+
+

Adrián Mato

+

Design Director at GitHub Copilot & startup investor.

+

+ For the last 18+ years, I've designed digital products between Madrid, London and now, from + San Francisco. I also co-founded and later sold my company Erasmusu. +

+

+ My career started as a Software Developer, but it soon became clear that my true passion was Design. + I love combining both skillsets to create products that fulfill a clear purpose. +

- - -
- {% include home-navigation.html %} - {% include home-work.html %} + + + +
+{% include home-navigation.html %} +{% include home-work.html %} - - - - + + From ce312e93e9a3d9744ab323c9762b315bcb8f6766 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:14:30 +0000 Subject: [PATCH 5/5] Improve body class attribute implementation for better consistency Co-authored-by: adrianmg <589285+adrianmg@users.noreply.github.com> --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index b66bd3b..9bae09a 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,7 +1,7 @@ {% include head.html %} - + {{ content }} \ No newline at end of file