fix: use /x/{slug} deep links for Lark example links#104
Merged
Conversation
Guide pages linked to the bare lark.calcmark.org root instead of
deep-linking to the specific example via /x/{slug}. Users clicking
"System Sizing example in Lark" landed on the homepage, not the example.
- Add larkURL param to hugo.yaml to centralize the Lark base URL
- Create lark shortcode with optional slug for deep links
- Fix 3 guide pages to deep-link: system-sizing, household-budget, recipe-scaling
- Update unit-conversion guide text (no matching example exists)
- Convert all remaining hardcoded lark.calcmark.org links in content and
layouts to use the centralized param/shortcode
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add lark-color icon to the lark shortcode inline links - Add calcmark_source to embedded-datacenter-cost example page - Fix unit-conversion guide to deep-link to /x/unit-conversion - Add .lark-link and .lark-link-icon CSS styles Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/x/{slug}. Fixed for system-sizing, household-budget, and recipe-scaling guides.larkshortcode ({{< lark "slug" "text" >}}) that centralizes the Lark base URL and supports optional deep-link slugs.larkURLsite param tohugo.yamland migrated all hardcodedlark.calcmark.orgreferences in layouts and content to use it.Changes
site/hugo.yamllarkURLparamsite/layouts/shortcodes/lark.htmlsite/layouts/_default/section.htmlsite.Params.larkURLsite/layouts/_default/home.htmlsite.Params.larkURLsite/layouts/partials/nav.htmlsite.Params.larkURLlarkshortcodeTest plan
task site:buildsucceedstask testpassestask qualitypasses/x/{slug}deep linkslark.calcmark.orgin content or layouts🤖 Generated with Claude Code
Metrics
Opened by
@dvhthomas(agent-assisted) on 2026-03-23 22:57 UTC. Merged 2026-03-24 00:37 UTC.Generated by gh-velocity
How to interpret
Command:
gh velocity pr --postCalcMark/go-calcmark