0fbc0f93a4
- hugo.toml: [taxonomies] series = "series"; [params.socialIcons] (github, telegram, rss) - layouts/partials/series_nav.html: модуль «Серия: N из M» с навигацией prev/next (сортировка по series_order), поддержка кириллических названий серий - layouts/_default/single.html: override темы — подключение series_nav перед контентом - layouts/partials/extend_footer.html: JS переносит .logo-switches из .logo в конец .nav (переключатель темы — справа после меню); server-rendered блок соцсетей переносится к меню; иконки — через штатный svg.html темы (github/telegram/rss) - assets/css/extended/typewriter.css: стили .social-icons-inline, .series-nav; .logo-switches после переноса попадает под .nav > .logo-switches (order:2) Closes openspec change series-taxonomy-and-header
1.6 KiB
1.6 KiB
Series and Menu Capability
ADDED Requirements
Requirement: Series taxonomy
Таксономия series позволяет группировать посты в серии и показывает на
странице поста модуль навигации по серии.
Scenario: Taxonomy enabled
- Given hugo.toml has
[taxonomies] series = "series" - When site is built
- Then
/series/term page exists and posts can be marked withseries
Scenario: Series module on a post
- Given a post with
series: ["Test"]andseries_order: 2in front-matter - When that post is rendered
- Then a "Серия" block is visible at the top of the content
- And it shows the series name, position («2 из N»)
- And it links to the previous article (if any) and next article (if any)
Requirement: Theme toggle on the right
Переключатель темы (солнце/луна) отображается в правой части шапки, сразу после пунктов меню.
Scenario: Toggle next to the menu
- Given the header markup with
.logo-switchesinside.logo - When the page is rendered
- Then the theme toggle button is displayed at the right end of
.nav, after#menu
Requirement: Social icons in the header
Иконки соцсетей из [params.socialIcons] отображаются в верхнем меню рядом
с переключателем темы.
Scenario: Icons rendered from params
- Given
[params.socialIcons]with github and telegram entries - When the page is rendered
- Then links with SVG icons appear in the header nav, next to the menu