Files
dedinit.ru/openspec/changes/theme-toggle-first-post-card/tasks.md
T
estorozhenko 57840211f0 fix: переключатель темы вправо у меню + карточка первого поста + подключение typewriter.css через extend_head
- assets/css/extended/typewriter.css: flex-order в .nav (logo | menu | toggle), article.first-entry как .post-entry (фон/рамка/скругление/отступ)
- layouts/partials/extend_head.html (новый): resources.Get typewriter.css — Hugo НЕ подхватывает корневой assets/css/extended через resources.Match темы, поэтому прошлый CSS не применялся (JS работал, стили нет)
- openspec: change theme-toggle-first-post-card (proposal/design/specs/tasks)

ВАЖНО: прошлый деплой typewriter-эффекта был неполным — CSS не подключался. Этот коммит чинит оба бага + курсор.
2026-09-19 18:04:15 +00:00

33 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Tasks: Theme toggle position + first post card
## 1. Реализация
- [x] 1.1 Добавить в `assets/css/extended/typewriter.css` flex-order блок:
`.nav{flex-wrap:nowrap}`, `.nav>.logo{order:0;margin-inline-end:auto}`,
`.nav>#menu{order:1;margin-inline-start:auto}`,
`.nav>.logo-switches{order:2;margin-inline-start:8px}`
- [x] 1.2 Добавить `article.first-entry{background:var(--entry);
border-radius:var(--radius);border:1px solid var(--border);
padding:var(--gap)}`
- [x] 1.3 Создать `layouts/partials/extend_head.html` — подключение
`resources.Get "css/extended/typewriter.css" | minify | fingerprint`
(Хуго не подхватывает корневой assets через resources.Match темы)
## 2. Сборка и проверка
- [x] 2.1 `make build` — без ошибок
- [x] 2.2 `grep -o 'typewriter.min.[^"]*\.css' public/index.html` — файл
подключён в head
- [x] 2.3 `grep -o 'order:[012]' public/css/extended/typewriter.min.*.css` —
присутствуют 0, 1, 2
- [x] 2.4 `grep -o 'article.first-entry{[^}]*}' public/css/extended/typewriter.min.*.css`
— правило карточки присутствует
- [x] 2.5 Скрипт typewriter в JS не сломан (`grep -c 'const r=\[' public/index.html` >= 1)
## 3. Git и деплой
- [ ] 3.1 Закоммитить `typewriter.css`, `extend_head.html`, openspec-артефакты
и запушить в gitverse (после согласования)
- [ ] 3.2 `make deploy` (после согласования)
- [ ] 3.3 Проверить на https://dedinit.ru/ — солнышко справа, первый пост
с фоном