Commit Graph
100 Commits
Author SHA1 Message Date
jake 6b756a54c1 fix unused components still loading on posts 2022-01-06 09:10:25 -05:00
jake b29a2b8756 switch back to lazy react-player 2022-01-05 15:16:12 -05:00
jake 2d44b58242 directly (and still dynamically) assign a few of the mdx components 2022-01-05 15:07:54 -05:00
jake fb491d7337 use next-compose-plugins for simpler config 2022-01-05 08:50:49 -05:00
jake b1687df25b some repo clean-up 2022-01-04 22:19:28 -05:00
jake 32262b0041 add hover styles to footer 2022-01-04 19:42:44 -05:00
jake c890a8aae0 use react-innertext 2022-01-04 18:44:49 -05:00
jake 20d8b13bb1 separate theme restoration script and add meta[name="theme-color"] tag to _document.tsx 2022-01-04 18:04:33 -05:00
jake 72899ced57 also dynamically load components passed to mdx 2022-01-04 15:00:22 -05:00
jake b1bcdeb84b allow markdown in mdx page titles (carefully)
mainly for `code` but also bold and italic text
2022-01-04 13:49:07 -05:00
jake 6cde2944fc dynamically load react-player 2022-01-04 13:43:51 -05:00
jake 70778db89d ThemeToggle.module.scss -> inline style
removes an unnecessary call to a very small CSS file since the toggle is loaded dynamically
2022-01-04 10:18:12 -05:00
jake 206bbd278f don't let search engines index branch/deploy previews 2022-01-03 21:17:33 -05:00
jakeandGitHub a5a602d385 publish sitemap.xml with getServerSideProps instead of next-sitemap (#720)
very VERY hacky right now but I still prefer this
2022-01-03 20:53:17 -05:00
jake 78d17c6337 lint all the things 2022-01-03 20:13:27 -05:00
jake 3864a57d1a consolidate mdx file parsing 2022-01-03 17:53:47 -05:00
jake d2b71887b4 generate permalinks when parsing note 2022-01-03 16:26:20 -05:00
jake 6d81939b8b get overall stats for /api/hits/ without circular parsing of the RSS feed 2022-01-03 15:29:35 -05:00
jake 4fe47de9ae fix query parameters being included in canonical URLs 2022-01-03 14:43:36 -05:00
jake ebbb98bf09 don't generate robots.txt from next-sitemap 2022-01-03 12:22:51 -05:00
jake 13605d2ab5 alt attributes aren't valid on inline SVGs 2022-01-03 12:12:23 -05:00
jake aa40d3384c update function cache headers 2022-01-03 11:52:32 -05:00
jake 55d9207753 dynamic site.webmanifest 2022-01-03 11:42:03 -05:00
jake 36e3cfa18e test config changes before messing everything up too much 2022-01-03 09:59:42 -05:00
jake 49fb053649 simplify note parsing logic 2022-01-02 23:05:51 -05:00
jake ca614e1a1a consistent use of arrow functions/default exports 2022-01-02 15:16:07 -05:00
jake cd5a1b191a tidy up public directory 2022-01-02 09:30:46 -05:00
jake 5c1d1dbc58 clean up styles 2022-01-02 07:56:45 -05:00
jake ddb48ef2ab octicons weren't being tree-shaken -- import SVGs manually for now 2022-01-01 18:14:04 -05:00
jake c47f5f917d home component -> index.tsx where it's supposed to be 2022-01-01 13:56:33 -05:00
jake 3ee8ab4423 clean up styled JSX of colorful homepage links 2022-01-01 13:00:26 -05:00
jake c420967b4c set <meta name="theme-color" ...> dynamically 2022-01-01 12:11:15 -05:00
jake b5d039b9d6 icons weren't being tree-shaken 2022-01-01 09:31:42 -05:00
jake e8bbcb1eb1 fix scroll offsets (again) 2022-01-01 09:03:20 -05:00
jake 76d494cd32 couple more adjustments 2021-12-31 20:24:05 -05:00
jake 854b9da5e2 not messing with the base font size sure fixes a ton of problems.... 2021-12-31 19:51:29 -05:00
jake a6499fd5bb separate repository grid styles/logic from the card component 2021-12-31 15:28:28 -05:00
jake d0e00b197c responsive style adjustments 2021-12-31 12:46:39 -05:00
jake 1bbee816c2 add scroll-margin-top property to content sub-headings (fixes #717) 2021-12-31 10:27:59 -05:00
jake 04145189e8 fix the fixes.... 2021-12-31 09:59:19 -05:00
jake 11d245ad66 some very minor refactoring/fixing 2021-12-31 08:48:56 -05:00
jakeandGitHub 70a7053afb Update css-waving-hand-emoji.mdx 2021-12-30 19:22:54 -05:00
jake f18277b940 generate /projects page with ISR instead of calling the API on every single request (closes #715)
https://nextjs.org/docs/basic-features/data-fetching#incremental-static-regeneration
2021-12-30 18:58:26 -05:00
jakeandGitHub 8a44d1994c Update README.md 2021-12-30 17:47:14 -05:00
jake d96d5df214 restore .env.example 2021-12-30 13:31:14 -05:00
jake cd75ce92b7 Create lib/migrations/hits-db.js 2021-12-30 13:25:25 -05:00
jake 5df05a2002 redirect /stats to public fathom dashboard 2021-12-30 13:11:34 -05:00
jake 8bbc7e3cf2 custom fathom domain 2021-12-30 11:00:15 -05:00
jake ff4bf9cc5d update /privacy page to mention fathom/vercel analytics 2021-12-30 10:56:16 -05:00
jake bf778e6d12 re-add fathom
couldn't sleep at night even with a few days of google analytics...
2021-12-30 10:31:39 -05:00
jake 14ecfff55f remove inline svg favicon 2021-12-30 09:12:32 -05:00
jakeandGitHub 9979e1bf3f v5: Revenge of the JavaScript 🦸 (#711)
Hugo ➡️ Next.js
2021-12-30 08:18:41 -05:00
jake 917e648142 Update _index.md 2021-12-18 20:45:28 -05:00
jake 5ee595807d manually cherry-pick (most of) the rules/settings from eslint-config-preact 2021-12-18 20:08:07 -05:00
jake dd5deabb90 add assets/jsconfig.json to .prettierignore 2021-12-18 10:39:06 -05:00
jake 76cceb0001 minor hugo template refactoring before updating 2021-12-18 10:36:18 -05:00
jake 0bac7577a6 add default color-scheme: light inline style in case JS is disabled 2021-12-17 15:39:54 -05:00
jake 12164dabb9 favicon stuff 2021-12-17 15:34:49 -05:00
jake 6bfbc363d7 set the color-scheme CSS property to either light or dark onChange
https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
2021-12-16 19:53:13 -05:00
jake 7fbdf16573 fix component effects 2021-12-16 12:14:37 -05:00
jake 65d413ca8c wait did I actually fix the OS dark mode event listener...?! 2021-12-16 11:35:22 -05:00
jake fe1a10d437 restore live theme switching when system setting changes
TODO: removing the event listener is infuriatingly not cooperating
2021-12-16 09:25:47 -05:00
jake 2377fbfdf2 fix header layout shifting 2021-12-16 01:32:02 -05:00
jake e8c2dcab29 use date-fns for relative time 2021-12-15 20:28:56 -05:00
jake 11e2a00de5 fix mobile header spacing 2021-12-15 20:05:41 -05:00
jake 48e46a27b0 fix CSP 2021-12-15 14:04:43 -05:00
jake 766362a9da move light/dark class from <body> to <html> and inline restoration script to (hopefully) improve the white flashes 2021-12-15 13:49:56 -05:00
jake c2789e24d4 some component cleanup 2021-12-15 10:12:33 -05:00
jakeandGitHub d119a98a0d major refactoring of preact components 🧩 (#689) 2021-12-15 08:35:18 -05:00
jake cda7d538a6 clean up shortcodes 2021-12-13 20:46:28 -05:00
jake 964c4ef543 fix arrow function inconsistency 2021-12-13 07:07:09 -05:00
jake 0bc30f87d8 move to official hcaptcha react component 2021-12-12 06:47:38 -05:00
jake b82be240a7 fix weird character encoding (no clue how non-breaking spaces ended up everywhere) 2021-12-11 11:08:30 -05:00
jake 8fe68b009b more sensical twemoji-in-js w/ svgr 2021-12-11 08:47:13 -05:00
jake daffcb924b bump Hugo to 0.90.1 2021-12-10 13:12:05 -05:00
jake 43592b5997 Update _themes.scss 2021-12-07 10:14:28 -05:00
jake 57ad6c1fd2 update octicons on /contact 2021-12-07 08:40:36 -05:00
jake 6d64ea647e okay preact is actually pretty cool tbh. (now using it for copy to clipboard buttons) 2021-12-07 08:11:38 -05:00
jake b4cd9eea59 contact form cleanup 2021-12-05 18:28:33 -05:00
jake aebc982dc3 build shouldn't fail because process.env.HCAPTCHA_SITE_KEY is missing 2021-12-05 11:37:10 -05:00
jake a338a05ce8 preact-ify contact form 2021-12-05 11:26:56 -05:00
jake 9a247ddb8d improved touchscreen detection 2021-12-04 16:22:41 -05:00
jake cb6d1daef6 move imagemin stuff back to optionalDependencies 2021-12-04 09:25:55 -05:00
jake 6d0836bbe3 bump eslint 2021-12-04 09:06:29 -05:00
jake 89645e5448 add webpack-bundle-analyzer to the pipeline 2021-12-03 11:18:43 -05:00
jake fd1393b223 clean up self-hosted emoji code 2021-12-03 10:03:19 -05:00
jake cf9a8f742a clean up typography styles 2021-12-02 10:52:42 -05:00
jake ce1a24170a fix missing anchor link aria-label 2021-12-01 16:05:38 -05:00
jake f7632e0071 use much, much simpler logic for adding anchors to h[2-4] elements 2021-12-01 15:54:15 -05:00
jake 6f6de426da move dark mode code from module back to here for now 2021-12-01 14:43:22 -05:00
jake a3c2bbcab0 remove unnecessary dayjs plugins (prefer native Intl.DateTimeFormat) 2021-11-30 13:56:41 -05:00
jake 5f3b9b7a04 honor webpack --mode instead of NODE_ENV 2021-11-30 09:02:09 -05:00
jake 9165c59c61 Update clipboard.js 2021-11-26 22:02:57 -05:00
jake 298211eace move babel config from webpack config to separate file 2021-11-26 20:40:22 -05:00
jake 037fff0841 fix window !== undefined checks 2021-11-24 18:02:58 -05:00
jake 3d445c5c8d dayjs timezone detection & link to stars/forks on GitHub from /projects 2021-11-24 17:30:23 -05:00
jake 74519b9266 cross-fetch -> unfetch (browser only) 2021-11-24 14:27:00 -05:00
jakeandGitHub b755b66d19 use preact for common components across site (#663)
* convert GitHub cards grid from lit-html to preact

* give hit counter the preact treatment

* extract loading spinner component to a shared location

* move *some* loading spinner styles to its JSX

* Update .percy.yml

* pick up images in JS w/ webpack

* pull star/fork icons straight from @primer/octicons

* a bit of cleanup

* check `typeof window !== "undefined"` before rendering

* bump misc. deps

* silence missing license warnings for preact-hooks and preact-compat

* add source-map-loader

* Update loading.js
2021-11-24 13:51:29 -05:00
jake 9b3ae0f62a convert config.toml -> config.yml 2021-11-23 12:18:01 -05:00
jake be7b2a4bba bump some deps and fix some lints 2021-11-22 10:52:02 -05:00