From 16dba11b21dc77bc4a79b9eca9037c5a4a6f3d7a Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Wed, 25 Mar 2026 20:48:30 -0600 Subject: [PATCH] triforce-strategies: add S&P 500 vs anythingn calculator claude helped with this --- CLAUDE.md | 31 +- content/triforce-strategies/tools/_index.md | 5 + .../tools/snp500_vs_anything.md | 41 ++ static/css/fund-comparison.css | 181 ++++++ static/js/fundComparison.js | 567 ++++++++++++++++++ templates/shortcodes/fund_comparison.html | 146 +++++ 6 files changed, 969 insertions(+), 2 deletions(-) create mode 100644 content/triforce-strategies/tools/_index.md create mode 100644 content/triforce-strategies/tools/snp500_vs_anything.md create mode 100644 static/css/fund-comparison.css create mode 100644 static/js/fundComparison.js create mode 100644 templates/shortcodes/fund_comparison.html diff --git a/CLAUDE.md b/CLAUDE.md index 0c3c3b2..c9d8098 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,9 +10,12 @@ Personal homepage built with Zola. - `content/` — Markdown content - `blog/` — Blog posts - `lib/` — Library/reference articles - - `triforce_strategies/` — Triforce Strategies LLC content + - `triforce-strategies/` — Triforce Strategies LLC content + - `tools/` — Interactive calculators/tools +- `templates/shortcodes/` — Custom shortcodes (override theme) +- `static/js/` — JavaScript files +- `static/css/` — CSS files - `themes/tabi-lean/` — Theme (git subtree, do not edit directly) -- `static/` — Static assets - `config.toml` — Site configuration ## Content Conventions @@ -20,5 +23,29 @@ Personal homepage built with Zola. - Section indices: `_index.md` - Internal links: `@/path/to/file.md` +## Adding Interactive Tools + +To add a new tool under `triforce-strategies/tools/`: + +1. **Create shortcode**: `templates/shortcodes/tool_name.html` + - HTML structure (form, canvas, results container) + - Load JS via `{{ get_url(path='js/toolName.js') | safe }}` + - Include `