From f99801d147fde606fe185b63ca46af9acc3a85e6 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 24 Jan 2026 02:52:05 +0000 Subject: [PATCH] tpl(startup): add content adapter to solve author profile 404s Introduces a Hugo Content Adapter ([content/authors/_content.gotmpl](templates/startup-landing-page/content/authors/_content.gotmpl:0:0-0:0)) to the Startup template. This automatically generates author pages for every entry in `data/authors/*.yaml`, ensuring that team members without published content effectively possess a profile page instead of returning a 404 error. This is critical for Organization/Team sites where all members are displayed in the Team block. --- README.md | 10 ++++---- .../content/authors/_content.gotmpl | 25 +++++++++++++++++++ 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 templates/startup-landing-page/content/authors/_content.gotmpl diff --git a/README.md b/README.md index 44f6a025..77c30d7c 100644 --- a/README.md +++ b/README.md @@ -178,9 +178,9 @@ The Free Kit includes: - **Notebook + LaTeX support** for technical publishing - **Community support** via docs, GitHub issues, and Discord -### πŸ€– Researcher Plan (Automation) +### πŸ€– Pro (Automation) -Upgrade to the **Researcher Plan** for [HugoBlox Studio](https://marketplace.visualstudio.com/items?itemName=hugoblox.hugoblox-studio) (requires extension login) when you want automation and lower maintenance overhead: +Upgrade to **Pro** for [HugoBlox Studio](https://marketplace.visualstudio.com/items?itemName=hugoblox.hugoblox-studio) (requires extension login) when you want automation and lower maintenance overhead: - **Less time debugging YAML** (Fix-it Bot + safer config editing) - **Less time formatting citations** (Magic Import + publication automation) @@ -188,7 +188,7 @@ Upgrade to the **Researcher Plan** for [HugoBlox Studio](https://marketplace.vis - **More velocity** (visual editing + previews in VS Code) -| Feature | **Free Kit** (Open Source) | **Researcher Plan** (Automation) | +| Feature | **Free Kit** (Open Source) | **Pro** (Automation) | | :--- | :---: | :---: | | **Site Ownership** | βœ… 100% Yours | βœ… 100% Yours | | **Visual Page Editor** | ❌ | **βœ… Included** | @@ -200,7 +200,7 @@ Upgrade to the **Researcher Plan** for [HugoBlox Studio](https://marketplace.vis | **Private Discord** | ❌ | βœ… | | **Support Open Research** | πŸ’œ | **πŸ† Hero Status** | -πŸ‘‰ [**View Full Feature Matrix**](https://hugoblox.com/pricing?utm_source=github&utm_medium=readme&utm_content=pricing_matrix)  β€’  [**Upgrade to Researcher Plan**](https://hugoblox.com/pricing?utm_source=github&utm_medium=readme&utm_content=cta_pro) +πŸ‘‰ [**View Full Feature Matrix**](https://hugoblox.com/pricing?utm_source=github&utm_medium=readme&utm_content=pricing_matrix)  β€’  [**Get Pro**](https://hugoblox.com/pricing?utm_source=github&utm_medium=readme&utm_content=cta_pro) > "HugoBlox Studio saved me **40+ hours** on my lab site. Visual edits + BibTeX auto-updates = **citations up 3Γ—**." >
β€” **Dr. Sarah Yang**, AI Researcher @@ -254,5 +254,5 @@ Copyright Β© 2016-Present [**Lore Labs**](https://lore.tech/?utm_source=github&u Released under the [MIT License](./LICENSE.md).

- Loreβ„’ is a trademark of Lore Labs. + HugoBloxβ„’ is a trademark of Lore Labs.

diff --git a/templates/startup-landing-page/content/authors/_content.gotmpl b/templates/startup-landing-page/content/authors/_content.gotmpl new file mode 100644 index 00000000..c7800439 --- /dev/null +++ b/templates/startup-landing-page/content/authors/_content.gotmpl @@ -0,0 +1,25 @@ +{{/* Get the author data from site.Data */}} +{{ $authorData := site.Data.authors }} + +{{/* Iterate over each author key-value pair */}} +{{ range $slug, $profile := $authorData }} + + {{/* Prepare the page parameters */}} + {{/* We merge the profile data directly into params so they are available as .Params */}} + {{ $params := $profile }} + + {{/* Ensure the title is set correctly */}} + {{ $title := $profile.title | default ($profile.name.display) | default $slug }} + + {{/* Define the page properties */}} + {{ $page := dict + "kind" "term" + "path" $slug + "title" $title + "params" $params + }} + + {{/* Add the page to Hugo's build */}} + {{ $.AddPage $page }} + +{{ end }}