mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 18:15:31 +00:00
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.
This commit is contained in:
1 parent
9991cc1884
commit
f99801d147
2 files changed
+30
-5
No files matched your search
@@ -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×**."
|
||||
> <br/>— **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).
|
||||
|
||||
<p align="center">
|
||||
<sub>Lore™ is a trademark of Lore Labs.</sub>
|
||||
<sub>HugoBlox™ is a trademark of Lore Labs.</sub>
|
||||
</p>
|
||||
@@ -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 }}
|
||||
Reference in new issue
Block a user