From 473bc19d254b5f58f1a3a7e081905ea13d684123 Mon Sep 17 00:00:00 2001 From: Zaine Arch Date: Sat, 9 May 2026 19:18:48 +0100 Subject: [PATCH] fix dash --- assets/scripts/zhd.js | 10 ++- ....sync-conflict-20260509-191208-NE5VEIB.org | 30 --------- ....sync-conflict-20260509-191210-VT6366A.org | 65 ------------------- 3 files changed, 9 insertions(+), 96 deletions(-) delete mode 100644 recently-updated.sync-conflict-20260509-191208-NE5VEIB.org delete mode 100644 sitemap.sync-conflict-20260509-191210-VT6366A.org diff --git a/assets/scripts/zhd.js b/assets/scripts/zhd.js index 2d6ed9a..23378dd 100755 --- a/assets/scripts/zhd.js +++ b/assets/scripts/zhd.js @@ -71,9 +71,15 @@ function normaliseHref(href, prefix) { if (!href || href.startsWith("http") || href.startsWith("#")) return null; + if (href.startsWith("/")) return href; const base = (prefix || "").replace(/\/$/, ""); if (!base || href.startsWith(base + "/")) return href; - return href.startsWith("/") ? base + href : base + "/" + href; + return base + "/" + href; + } + + function isTagLink(a) { + const href = a.getAttribute("href") || ""; + return href.includes("/tags/") || Boolean(a.querySelector(".post-tag")); } function extractLinks(doc, max, prefix) { @@ -82,6 +88,8 @@ const links = doc.querySelectorAll("#content li a[href], .org-ul li a[href], ul li a[href]"); for (const a of links) { + if (isTagLink(a)) continue; + const href = normaliseHref(a.getAttribute("href"), prefix); const title = a.textContent.trim(); if (!href || !title || seen.has(href)) continue; diff --git a/recently-updated.sync-conflict-20260509-191208-NE5VEIB.org b/recently-updated.sync-conflict-20260509-191208-NE5VEIB.org deleted file mode 100644 index 9d52c3a..0000000 --- a/recently-updated.sync-conflict-20260509-191208-NE5VEIB.org +++ /dev/null @@ -1,30 +0,0 @@ -#+TITLE: Recently Updated -#+OPTIONS: toc:nil num:nil - -* Recently Updated (top 26 files) -- [[file:sitemap.sync-conflict-20260509-191148-NE5VEIB.org][Sitemap]] @@html:2026-05-09 19:11@@ -- [[file:home/wird-tracker.org][Wird Tracker]] @@html:2026-05-09 18:19@@ -- [[file:home/status.org][Competency Status Board]] @@html:2026-05-09 18:19@@ -- [[file:home/services.org][Service]] @@html:2026-05-09 18:19@@ -- [[file:home/notes.org][Notes]] @@html:2026-05-09 18:19@@ -- [[file:home/guide/wird-tracker-guide.org][Wird Tracker — Technical Guide]] @@html:2026-05-09 18:19@@ -- [[file:home/guide/setup.org][Setup]] @@html:2026-05-09 18:19@@ -- [[file:home/contact.org][Contact]] @@html:2026-05-09 18:19@@ -- [[file:blogs/2026/05-may/authoring-service-09-05-26.org][Authoring Service]] @@html:2026-05-09 17:49@@ -- [[file:blogs/2026/05-may/ai-datacamp-08-05.org][AI Datacamp]] @@html:2026-05-08 12:49@@ -- [[file:blogs/2026/05-may/using-codex-07-05-26.org][Using Codex]] @@html:2026-05-07 16:12@@ -- [[file:blogs/2026/05-may/03-05-week-review.org][[03-05-2026] - Weekly Review]] @@html:2026-05-03 12:00@@ -- [[file:blogs/2026/05-may/sun-soak-01-05.org][Soaking in the sun]] @@html:2026-05-01 12:27@@ -- [[file:blogs/2026/04-april/wise-words-29-04.org][Wise Words I need to engrain]] @@html:2026-04-29 11:31@@ -- [[file:blogs/2026/04-april/april-almost-over-28-04.org][April is almost over...]] @@html:2026-04-28 15:33@@ -- [[file:blogs/2026/04-april/26-04-week-review.org][[26-04-2026] - Weekly Review]] @@html:2026-04-26 12:00@@ -- [[file:blogs/2026/04-april/adding-more-wird-22-04-26.org][Adding another Wird]] @@html:2026-04-22 16:04@@ -- [[file:blogs/2026/04-april/sitting-outside-in-the-sun-21-04-26.org][Sitting in the sun]] @@html:2026-04-21 13:01@@ -- [[file:blogs/2026/04-april/19-04-week-review.org][[19-04-2026] - Weekly Review]] @@html:2026-04-19 12:00@@ -- [[file:blogs/2026/04-april/ending-the-week-17-04-26.org][End of week thoughts]] @@html:2026-04-17 16:17@@ -- [[file:blogs/2026/04-april/16-04-26.org][Rambles]] @@html:2026-04-16 16:02@@ -- [[file:blogs/2026/04-april/comparison-14-04.org][Comparison is the thief of joy]] @@html:2026-04-14 09:55@@ -- [[file:blogs/2026/04-april/12-04-week-review.org][[12-04-2026] - Weekly Review]] @@html:2026-04-12 12:00@@ -- [[file:blogs/2026/04-april/starting-new-rotation-08-04-26.org][Starting new rotation]] @@html:2026-04-08 16:15@@ -- [[file:blogs/2026/04-april/action-plan-07-04-26.org][Action plan to change teams]] @@html:2026-04-07 10:04@@ -- [[file:blogs/2026/04-april/weekly-target-06-04-26.org][[06-04-2026] - Weekly target]] @@html:2026-04-06 22:53@@ diff --git a/sitemap.sync-conflict-20260509-191210-VT6366A.org b/sitemap.sync-conflict-20260509-191210-VT6366A.org deleted file mode 100644 index f605b7b..0000000 --- a/sitemap.sync-conflict-20260509-191210-VT6366A.org +++ /dev/null @@ -1,65 +0,0 @@ -#+TITLE: Sitemap - -- [[file:index.org][Home]] -- [[file:wip.org][Work in progress]] -- [[file:recently-updated.org][Recently Updated]] -- books - - [[file:books/books-list.org][Books List]] - - clean-code - - [[file:books/clean-code/clean-code-notes.org][Clean Code Notes]] -- blogs - - [[file:blogs/blogs-intro.org][Blogs Introduction]] - - [[file:blogs/publish-pages.org][How to publish pages using Org Publish]] - - [[file:blogs/blogs-list.org][Blogs List]] -- home - - [[file:home/countdown.org][Countdown]] - - [[file:home/backlog.org][Backlog]] - - [[file:home/contact.org][Contact]] - - [[file:home/status.org][Competency Status Board]] - - [[file:home/wird-tracker.org][Wird Tracker]] - - [[file:home/services.org][Service]] - - [[file:home/notes.org][Notes]] - - [[file:home/categories.org][Categories]] - - guide - - [[file:home/guide/setup.org][Setup]] - - [[file:home/guide/wird-tracker-guide.org][Wird Tracker — Technical Guide]] -- lima - - [[file:lima/lima-list.org][Lima]] -- tags - - [[file:tags/life.sync-conflict-20260417-233423-VT6366A.org][Tag: life]] - - [[file:tags/review.sync-conflict-20260328-203248-VT6366A.org][Tag: review]] - - [[file:tags/introduction.org][Tag: introduction]] - - [[file:tags/learning.org][Tag: learning]] - - [[file:tags/notes.org][Tag: notes]] - - [[file:tags/review.org][Tag: review]] - - [[file:tags/website.org][Tag: website]] - - [[file:tags/update.org][Tag: update]] - - [[file:tags/insights.org][Tag: insights]] - - [[file:tags/life.org][Tag: life]] - - [[file:tags/emacs.org][Tag: emacs]] - - [[file:tags/education.org][Tag: education]] - - [[file:tags/reading.org][Tag: reading]] - - [[file:tags/maths.org][Tag: maths]] -- posts - - [[file:posts/posts-intro.org][Posts Introduction]] - - [[file:posts/posts-list.org][Posts List]] - - career - - [[file:posts/career/solid-principles.org][SOLID Principles]] - - [[file:posts/career/owasp.org][OWASP Top Ten]] - - [[file:posts/career/retrospectives.org][Retrospectives]] - - [[file:posts/career/lean.org][Lean]] - - [[file:posts/career/invest-principles.org][Invest Principles]] - - [[file:posts/career/career-intro.org][Career Introduction]] - - [[file:posts/career/management-of-self.org][Management of self training]] - - [[file:posts/career/wireframe-designs.org][Wireframe Designs]] - - [[file:posts/career/requirements-features.org][Requirements, features, user stories, tasks, walking skeletons]] - - [[file:posts/career/normalisation.org][Benefits of Normalisation]] - - [[file:posts/career/airflow.org][Datamarts, Airflow and DAG's]] - - [[file:posts/career/probation-objectives.org][Probation Objectives:]] - - [[file:posts/career/database-permissions.org][Database Permissions, Roles, and Accounts]] - - [[file:posts/career/monitoring-and-logging.org][Monitoring and Logging]] - - [[file:posts/career/pipelines.org][Pipelines and how they work (as well as CI/CD)]] - - [[file:posts/career/restful-api.org][Restful API]] - - [[file:posts/career/javascript.org][Understands the Javascript language]] - - [[file:posts/career/ha-dr.org][High Availability, Disaster Recovery and Business Continuity]] - - [[file:posts/career/career-list.org][Career List]] \ No newline at end of file