Commit Graph
59 Commits
Author SHA1 Message Date
ahmza f927bc191c Merge pull request 'Fix codebase audit findings: bugs, security, perf, content' (#3) from fix-audit-findings into main
Build Hugo / deploy (push) Successful in 39s
Build Hugo / build (push) Successful in 1m36s
Reviewed-on: #3
2026-07-25 02:38:13 +00:00
ahmza f402556380 Fix audit findings: bugs, security, perf, content
Bugs:
- setup-wsl: fix broken /img/WSL/* image paths (now bundle-relative;
  images were broken on the published post) + better alt text
- pi-docker-swarm: remove broken missing cluster.webp reference
- archetypes/posts.md: fix malformed {{ }} template so 'hugo new' works
- rename arrstack/arrstack.md -> index.md so it's a proper leaf bundle
- static/admin/config.yml: fix 'htpps' -> 'https' site_url typo
- fix silently-dropped <placeholder> text (unsafe=false dropped them):
  wrap <distro>/<username>/<user>/<version>/<ip address> etc in backticks
  across setup-wsl, securing-ssh, pi-docker-swarm, mc-server-on-docker

Security:
- render-link.html: add rel=noopener noreferrer to external target=_blank
- extend-footer.html: fix rel='me' trapped in class attr (broke Mastodon
  verification); add proper rel/target
- static/admin/index.html: pin Sveltia CMS to 0.172.4 via jsDelivr + SRI

Performance:
- hugo.toml: ignoreFiles for *.aseprite/*.bak (stop shipping source art;
  non-page files 23 -> 13)
- video shortcode: preload=metadata; image shortcode: loading=lazy decoding=async
- sws.toml: drop SPA page-fallback so missing paths return real 404 (404.html)

Content/SEO:
- normalize tag casing (HomeLab/RemoteAccess/SSH/HUGO -> lowercase),
  fix 'prodcutivity' typo, arrstack tags:[""] -> [], add welcome description
- delete stray index.md.bak
2026-07-25 03:36:50 +01:00
ahmza e133b01b00 Optimize webm videos and webp images
Re-encode all webm meme clips as VP9 at CRF 38 (audio stripped; they are
muted autoplay loops). Downscale oversized images: background.webp
3394->1920 wide q80, profile.webp 1920->512 q85 (animation preserved).

Results:
- webm: 3.2MB -> 1.37MB (-56%)
- webp: 1.2MB -> 0.70MB (-42%)
- Docker image: 23.1MB -> 18.7MB (~42% smaller than the original nginx image)

All videos verified valid/playable; profile.webp animation (5 frames)
kept intact.
2026-07-25 03:20:57 +01:00
ahmza 0759020677 organised and linted all posts
imported workspace into obsidian
linted files
organized yaml frontmatter
unified yaml value formats
removed yaml front matter no longer needed
2024-11-29 02:26:53 +00:00
Hamza Ahmed fde6e5a9cd updated image section 2024-11-16 18:48:27 +00:00
Hamza Ahmed b4e81c68b3 fixed dirs that images and posts are placed when created 2024-11-16 18:40:29 +00:00
Hamza Ahmed bb9030bc11 added graphql 2024-09-19 12:52:29 +01:00
Hamza Ahmed ac137a6da2 fixed repo name in static/admin/config.yml 2024-09-19 12:45:10 +01:00
Hamza Ahmed f44c9a7040 moved to github acc ahmzaa 2024-09-19 12:31:56 +01:00
Hamza Ahmed 417ef577df attempting to use gitlab oAuth again 2024-09-19 10:22:44 +01:00
Hamza Ahmed caac527b26 attempting to use gitlab oAuth again 2024-09-19 09:58:26 +01:00
ahmza 625069641e trying Auth Code Flow with Netlify 2024-09-18 16:28:51 +01:00
ahmza bfd5ada35c trying Auth Code Flow with Netlify 2024-09-18 16:25:48 +01:00
ahmza b46deeefa9 trying Auth Code Flow with Netlify 2024-09-18 16:12:47 +01:00
ahmza c277653c02 trying Auth Code Flow with Netlify 2024-09-18 15:57:23 +01:00
Hamza Ahmed 2afe4c777c ... 2024-09-18 15:39:29 +01:00
Hamza Ahmed 83fdf09872 removed default tag from decapcms config 2024-09-18 13:33:38 +01:00
Hamza Ahmed 0471cfc4aa fixed tag field. removed weight field in decapcms config 2024-09-18 13:29:54 +01:00
Hamza Ahmed cc6cef33ee added netlify oauth widget to /static/admin/index.html 2024-09-18 12:03:15 +01:00
Hamza Ahmed 371c6c2df9 removed format as it is inferred by extention in static/admin/config.yml 2024-09-18 11:55:38 +01:00
Hamza Ahmed eb84c70a7d removed extra ':' from static/admin/config.yml 2024-09-18 11:46:04 +01:00
Hamza Ahmed 2684d9d4a4 adding decapcms 2024-09-18 11:17:27 +01:00
ahmza 7a19f2b89a Aded FavIcons 2024-07-16 18:21:55 +01:00
ahmza 9fd8f670ed changed to blowfish theme / might change back ... 2024-07-15 00:29:09 +01:00
Hamza Ahmed aeebc54317 Removed remains of the shop, removed Ko-Fi applet 2024-06-08 09:31:10 +01:00
Hamza Ahmed effee51338 Added be-more-productive-by-being-bored post 2024-01-06 18:14:48 +00:00
Hamza Ahmed ea71f4a0c4 update and added 2023-11-24 03:18:34 +00:00
Hamza Ahmed 7e88f4b71e bundle css 2023-11-16 23:59:06 +00:00
Hamza Ahmed 857e677a0b removed admin directory 2023-11-16 19:41:58 +00:00
Hamza Ahmed 867985be61 Updated product page, trying to fix tina vars 2023-11-16 16:36:44 +00:00
Hamza Ahmed d6cbde3e8e added shop page 2023-11-14 00:00:10 +00:00
Hamza Ahmed 23fd594e9a added Tina CMS 2023-11-10 20:52:47 +00:00
Hamza Ahmed f0f64bdf20 created tshirt page 2023-05-18 12:30:21 +01:00
Hamza Ahmed 1662ca585a added Twitch Layoffs post 2023-03-29 13:35:51 +01:00
Hamza Ahmed 7fe6e0ec56 Hugo 2022-12-31 20:59:25 +00:00
Hamza Ahmed 193a5ef37c updated image link to new pathspec 2022-05-24 13:19:43 +01:00
Hamza Ahmed be3344ea01 updated all page features to webp 2022-05-24 13:18:57 +01:00
Hamza Ahmed c71106955a who tf knows whats going on rn 2022-05-24 13:17:41 +01:00
Hamza Ahmed a65adb7889 trying to update repo from main 2022-05-24 13:07:34 +01:00
Hamza Ahmed 01a75ca8c0 image file for mc-docker post 2022-05-24 12:27:10 +01:00
Hamza Ahmed 53bd814589 started new post, added more emojis 😇 2022-05-24 12:08:01 +01:00
AHMZA 84afe2df47 optimised images in posts 2022-02-23 20:56:36 +00:00
AHMZA 314b45143d testing webp over jpg 2022-02-23 19:33:52 +00:00
AHMZA 31e5dbac3b added a new post 2022-02-23 13:28:15 +00:00
ahmza 31b0767c49 updated favicon image 2022-01-19 13:53:21 +00:00
AHMZA 6505083243 moved all images to webm 2021-12-25 01:39:47 +00:00
AHMZA c06c1a1ba7 start moving all gifs to webm 2021-12-25 01:16:45 +00:00
AHMZA b8f87481fc scaled down cluster image to reduce size 2021-12-25 00:57:48 +00:00
Hamza Ahmed c463b03413 Merge branch 'learn-linux' into 'main'
Learn linux

See merge request AHMZA/blog!8
2021-12-25 00:49:50 +00:00
AHMZA 4ed93131d4 finished post, moved images but did so in wrong branch XD 2021-12-25 00:48:09 +00:00