Commit Graph
16 Commits
Author SHA1 Message Date
Nuno CoraçãoandClaude Fable 5 b05eff3b30 🐛 Fix i18n apostrophes in JS, schema author image, avatar crops
JSON-encode i18n strings injected into appearance.js (#3040), resolve
and publish the original author image for the JSON-LD schema (#3037),
and anchor avatar crops to Center so small and zoomed framings match
(#3016).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-17 20:19:02 +01:00
Friday 345f806d80 feat: add landing layout and harden rendering 2026-08-17 20:19:02 +01:00
Nuno Coração b67cdadb27 fixed warn and bump version 2026-07-02 13:14:47 +01:00
Nuno C. 4b3ff374a1 Merge pull request #2972 from chandlertee/fix/schema-mainentityofpage
🐛 fix(schema): use page URL for mainEntityOfPage
2026-07-02 12:36:42 +01:00
Chandler ThompsonandClaude Opus 4.8 4feebf8acd fix(schema): use page URL for mainEntityOfPage instead of "true"
The Article JSON-LD set "mainEntityOfPage": "true" on every non-home page.
schema.org/mainEntityOfPage expects a CreativeWork or a URL — a boolean
string is invalid. Emit the page's canonical URL, mirroring the adjacent
"url" : {{ .Permalink }}.

Fixes #2971

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 21:22:53 -05:00
Chandler ThompsonandClaude Opus 4.8 f8cedfbcd8 fix(schema): resolve article author from data/authors
schema.html always read the author from .Site.Params.Author, so the
structured-data author was the site-level author (or empty) regardless of a
post's `authors` front matter — even though the theme supports multiple
authors via data/authors/.

Resolve the first `authors` key against data/authors/ and emit that author's
name, image and sameAs (from their social/links), falling back to the
site-level author. Single-author output is unchanged apart from the additive
image and sameAs fields.

Fixes #2943

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 20:58:27 -05:00
Eric Gusmao 7c127074f9 fix: migrate deprecated Hugo v0.158.0 language API
Replace deprecated config keys and template methods per Hugo v0.158.0:

Config (10 files):
- languageCode → locale
- languageName → label

Templates:
- site.LanguageCode → site.Language.Locale (baseof.html, head.html, schema.html x2)
- site.Language.Lang → site.Language.Name (single.html)
- .Lang → .Language.Name (likes.html, views.html)

Ref: https://discourse.gohugo.io/t/deprecations-in-v0-158-0/56869
2026-03-25 11:15:20 -03:00
ZhenShuo Leo f3e91168d9 fix(schema): remove abstract field
- Search engines do not consume the abstract property
- Platforms (Docusaurus, Vitepress, WordPress, Medium) do not use it
- .Summary method does not match the definition of abstract in schema.org

redo 0d21750932 due to incorrect merge manipulate
2025-12-23 01:42:44 +08:00
ZhenShuo Leo 81f2423d71 Merge branch 'dev' into feature/callout-tailwind 2025-12-23 01:21:40 +08:00
ZhenShuo Leo 0d21750932 fix(schema): remove abstract field
- Search engines do not consume the abstract property
- Platforms (Docusaurus, Vitepress, WordPress, Medium) do not use it
- .Summary method does not match the definition of abstract in schema.org
2025-12-23 01:16:01 +08:00
ZhenShuo Leo 8b362f58d3 perf(schema): loop fusion 2025-12-23 01:13:56 +08:00
rxchi1d 775d5b1bbf feat: add admonitions 2025-12-22 09:53:58 +08:00
ZhenShuo Leo 652462e326 fix: add JSON-LD to section page 2025-11-21 02:16:48 +08:00
ZhenShuo Leo 8ab2d8b68a feat: add BreadcrumbList (enableStructuredBreadcrumbs option)
also fix escape character in url of schema
2025-11-21 02:16:43 +08:00
unacro d6873cf1b1 chore: Move .Site.Author to .Site.Params.Author 2024-08-11 20:45:05 +08:00
Nuno Coração 8fbdecb6e7 initial commit 2022-09-10 20:05:37 +01:00