Files
dedinit.ru/layouts/partials/extend_head.html
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

5 lines
454 B
HTML

{{- /* Custom head hook: load site-level typewriter.css (theme fixes + logo typewriter).
Uses resources.Get so Hugo resolves assets/css/extended/typewriter.css
from the SITE root (not the theme), keeping the theme untouched. */ -}}
{{- $tw_css := resources.Get "css/extended/typewriter.css" | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $tw_css.RelPermalink }}" integrity="{{ $tw_css.Data.Integrity }}" crossorigin="anonymous">