Commit d4fa2cde by PLN (Algolia)

blog: description_<lang> honored from meta.md; devname og card

meta.md may carry description_en/description_fr as shared per-language
descriptions (lang-file description still wins); the devname post gets
its 1200x630 social card.
parent cb8dcd8f
......@@ -2,5 +2,7 @@
title: Devname
date: '2026-11-06'
description: 'Marre de retenir 127.0.0.1:1234? devname réserve un domaine.localhost à chaque projet local.'
description_en: """Tired of memorizing 127.0.0.1:1234?
devname books a domain.localhost for each of your local projects."""
tags: [cli, agent, dx, oss, web, meta, devname, localhost]
---
......@@ -84,7 +84,7 @@ function blogEntry(slug, lang) {
slug,
...meta,
title: localized.title ?? meta.title,
description: localized.description ?? meta.description,
description: localized.description ?? meta[`description_${lang}`] ?? meta.description,
languages,
};
}
......@@ -167,7 +167,7 @@ export async function getBlogPost(slug, lang = DEFAULT_LANG) {
slug,
...meta,
title: data.title ?? meta.title,
description: data.description ?? meta.description,
description: data.description ?? meta[`description_${lang_}`] ?? meta.description,
draft: meta.draft === true,
lang: lang_,
untranslated: lang_ === lang ? null : lang,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment