davsclaus opened a new issue, #1878:
URL: https://github.com/apache/camel-website/issues/1878
## Description
Several SEO and social-sharing gaps on both the Hugo pages and the Antora
docs. Numbers are from a local build plus the live site.
### Meta description missing on most pages
- `layouts/partials/header.html` only emits `<meta name="description">` when
`.Description` is set.
- 591 blog posts use `preview:` and only one uses `description:`. `preview`
only feeds `og:description`.
- Result: 4,471 of 6,421 built HTML pages have no meta description,
including all blog posts and `/blog/`, `/download/`, `/security/`, `/releases/`.
### Open Graph / Twitter cards
- **Antora** (`antora-ui-camel/src/partials/head-meta.hbs`):
- `og:url` is hard-coded to `https://camel.apache.org` on every docs page.
- `og:description` is one static string.
- `og:image` is `logo-d.svg`; social platforms do not render SVG.
- **Hugo blog posts:**
- `og:type=website` instead of `article`.
- No `article:published_time` or author.
- `og:image` is the original featured image, e.g. a 3.7 MB 1536×1024 PNG
for the Kaoto 2.11.0 post.
- 211 of 263 posts from 2024 to 2026 have no featured image, so they fall
back to the default.
- **Both:** no `twitter:card` anywhere.
### Canonicals and sitemaps for versioned docs
- `components/4.18.x/...`, `components/next/...` and `components/4.22.x/...`
all point their canonical at `/components/4.22.x/...`. The same happens for
Camel Quarkus (`3.33.x`) and Camel K.
- The canonical therefore moves on every LTS release and breaks at EOL.
- `sitemap-components.xml` lists 658 URLs for 4.18.x, 718 for 4.22.x and 722
for next, so most entries are non-canonical duplicates.
### Structured data (JSON-LD)
- `organization-microdata.hbs`: the logo is a relative URL (invalid in
JSON-LD) and an SVG (Google wants a raster logo).
- Its description is the old "Scala DSL" text, while Hugo uses `config.toml`.
- Hugo `BreadcrumbList` item names are URL slugs ("blog", "2025", "01")
instead of titles.
- No `BlogPosting` on posts and no
`SoftwareApplication`/`SoftwareSourceCode` on home/download.
### Minor
- `robots.txt` lists 3 child sitemaps that are already in the `sitemap.xml`
index. Listing only the index is enough.
## Proposal
1. **Meta description fallback:** `.Description` → `.Params.preview` →
`.Summary | plainify | truncate 160`. Add descriptions to the section
`_index.md` files.
2. **Antora head:**
- Use `page.canonicalUrl` for `og:url` and `page.description` for
`og:description`.
- Use a 1200×630 PNG for `og:image`.
- Add `twitter:card=summary_large_image`.
3. **Hugo posts:**
- Set `og:type=article` and `article:published_time`.
- Resize `og:image` with `.Fill "1200x630"`.
- Consider generated per-post OG images for posts without a featured
image.
4. **Versioned docs:**
- Keep only canonical (latest LTS) URLs in the Antora sitemaps; filter in
`gulp sitemap`.
- Consider a stable `/latest/` canonical (today `/components/latest/` is
a 302 to 4.22.x).
- Optionally `noindex` the `next` docs.
5. **JSON-LD:**
- Use an absolute PNG logo and one shared description.
- Use page titles in breadcrumbs.
- Add a `BlogPosting` partial in `layouts/blog/post.html`.
6. **Regression check:** add an html-validate rule (`rules.js`) that
requires a meta description and a non-SVG `og:image`.
## Additional Context
The Hugo and Antora `<head>` templates are maintained separately and have
drifted; see the build/maintenance ticket.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]