Files

33 lines
1.7 KiB
Markdown
Raw Permalink 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/ — солнышко справа, первый пост
с фоном