Files

39 lines
2.3 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: Series taxonomy, theme toggle right, social icons in menu
## 1. Таксономия series
- [x] 1.1 Добавить `[taxonomies] series = "series"` в `hugo.toml`
- [x] 1.2 Создать `layouts/partials/series_nav.html` — модуль «Серия: N из M» со
ссылками на пред./след. часть (сортировка по `series_order`)
- [x] 1.3 Переопределить `layouts/_default/single.html` (копия из темы) и
подключить `series_nav.html` перед `.post-content`
## 2. Переключатель темы справа
- [x] 2.1 В `layouts/partials/extend_footer.html` добавить JS: перенос
`.logo .logo-switches` в конец `.nav` (под флагом, чтобы не дублировать)
- [x] 2.2 В `assets/css/extended/typewriter.css` закрепить `.logo-switches`
(margin-inline-start) — чтобы встал сразу после `#menu`
## 3. Соцсети в меню
- [x] 3.1 Добавить `[params.socialIcons]` в `hugo.toml` (github, telegram, rss)
- [x] 3.2 В `extend_footer.html` добавить server-rendered блок иконок
(`social_icons` через `svg.html` темы) и JS-перенос в `.nav` рядом с меню
- [x] 3.3 ФИКС: убрать inline `style="display:none"` (перебивал CSS при переносе),
скрытие через `#__social-icons` (CSS), JS снимает id → блок видим
## 4. Теги в логотипе (typewriter)
- [x] 4.1 Слова печати = реальные `site.Taxonomies.tags` (популярные первыми,
топ-24, без служебных) вместо хардкода `[params.typewriter].words`
- [x] 4.2 Удалить устаревший `[params.typewriter]` из `hugo.toml`
## 5. Проверка и деплой
- [x] 5.1 `make build` без ошибок
- [x] 5.2 Локальные проверки: series-nav на странице серии (2 поста — prev/next
работают), таксономия `/series/` собрана, соцсети в шапке (CSS-скрытие +
снятие id), переключатель переносится JS, теги в JS-массиве
- [ ] 5.3 `git commit` + push
- [ ] 5.4 `make deploy`