diff --git a/.lighthouserc.json b/.lighthouserc.json index 91aec325..6183ed60 100644 --- a/.lighthouserc.json +++ b/.lighthouserc.json @@ -18,7 +18,6 @@ "uses-optimized-images": "warn", "uses-rel-preconnect": "warn", "is-crawlable": "off", - "no-unload-listeners": "off", "offscreen-images": "off", "uses-long-cache-ttl": "off", "uses-responsive-images": "off", diff --git a/assets/js/analytics.js b/assets/js/analytics.js index 9f039376..37fda1dc 100644 --- a/assets/js/analytics.js +++ b/assets/js/analytics.js @@ -203,7 +203,10 @@ // } }; - addEventListenerFunc("unload", sendOnLeave, false); + // https://developers.google.com/web/updates/2018/07/page-lifecycle-api#the-unload-event + var terminationEvent = "onpagehide" in self ? "pagehide" : "unload"; + addEventListenerFunc(terminationEvent, sendOnLeave, false); + // addEventListenerFunc("unload", sendOnLeave, false); /** if scroll **/ var body = doc.body || {}; diff --git a/content/notes/cool-bash-tricks-for-your-terminal-dotfiles/index.md b/content/notes/cool-bash-tricks-for-your-terminal-dotfiles/index.md index 6b8aecba..91e227f9 100644 --- a/content/notes/cool-bash-tricks-for-your-terminal-dotfiles/index.md +++ b/content/notes/cool-bash-tricks-for-your-terminal-dotfiles/index.md @@ -15,7 +15,7 @@ image: "images/terminal.png" draft: false --- -{{< image src="images/terminal.png" width="240" alt="Terminal.app on macOS" />}} +{{< image src="images/terminal.png" width="320" alt="Terminal.app on macOS" />}} You may have noticed the recent trend of techies [posting their "dotfiles" on GitHub](https://github.com/topics/dotfiles) for the world to see. These usually contain shortcuts compatible with Bash terminals to automate convoluted commands that, I'll admit, I needed to Google every single time. diff --git a/netlify.toml b/netlify.toml index 84c7441b..0835c2de 100644 --- a/netlify.toml +++ b/netlify.toml @@ -204,11 +204,11 @@ status = 302 [[redirects]] from = "/comp20/*" - to = "https://jakejarvis.github.io/comp20/" + to = "https://jakejarvis.github.io/comp20/:splat" status = 302 [[redirects]] from = "/scrabble/*" - to = "https://jakejarvis.github.io/scrabble/" + to = "https://jakejarvis.github.io/scrabble/:splat" status = 302 # H A C K E R M A N ( ͡° ͜ʖ ͡°) diff --git a/resources/_gen/images/notes/cool-bash-tricks-for-your-terminal-dotfiles/images/terminal_hu1e619eae79e83a4df9cce05c81d8e9fe_339768_480x0_resize_lanczos_2.png b/resources/_gen/images/notes/cool-bash-tricks-for-your-terminal-dotfiles/images/terminal_hu1e619eae79e83a4df9cce05c81d8e9fe_339768_480x0_resize_lanczos_2.png deleted file mode 100644 index 182e5fda..00000000 Binary files a/resources/_gen/images/notes/cool-bash-tricks-for-your-terminal-dotfiles/images/terminal_hu1e619eae79e83a4df9cce05c81d8e9fe_339768_480x0_resize_lanczos_2.png and /dev/null differ diff --git a/resources/_gen/images/notes/cool-bash-tricks-for-your-terminal-dotfiles/images/terminal_hu1e619eae79e83a4df9cce05c81d8e9fe_339768_640x0_resize_lanczos_2.png b/resources/_gen/images/notes/cool-bash-tricks-for-your-terminal-dotfiles/images/terminal_hu1e619eae79e83a4df9cce05c81d8e9fe_339768_640x0_resize_lanczos_2.png new file mode 100644 index 00000000..e43c0f16 Binary files /dev/null and b/resources/_gen/images/notes/cool-bash-tricks-for-your-terminal-dotfiles/images/terminal_hu1e619eae79e83a4df9cce05c81d8e9fe_339768_640x0_resize_lanczos_2.png differ