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 не подключался. Этот коммит чинит оба бага + курсор.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
{{- /* 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">
|
||||
Reference in New Issue
Block a user