Card tagline: one-line description under every project title
- New `tagline` frontmatter field, separate from `summary` (which stays the dialog text): one phrase, 50-65 characters, derived from the project text. - The card renders it under the title; on desktop every one of the 20 lines fits a single row, on 390 it wraps to two. - Contrast 7.45 light / 10.45 dark at 14px (AA and AAA). - Template documents the field; the router records the card anatomy.
This commit is contained in:
1 parent
3fd8ebcea4
commit
14eb4fb539
26 files changed
+48
-2
No files matched your search
@@ -157,6 +157,7 @@ function loadProjects() {
|
||||
media: String(meta.media || ''), // 'portrait' — скриншоты 9:16: карточка и окно дают бокс выше
|
||||
metrics: (meta.metrics && typeof meta.metrics === 'object') ? meta.metrics : '',
|
||||
summary: coerce(meta.summary),
|
||||
tagline: coerce(meta.tagline), // одна строка под заголовком карточки; summary живёт в окне
|
||||
detail: publicDetail(body),
|
||||
};
|
||||
out.push(p);
|
||||
|
||||
Reference in new issue
Block a user