Simplify header and move intro text to main content
All checks were successful
/ build (pull_request) Successful in 1m14s
/ accessibility (pull_request) Successful in 1m59s

Header changes:
- Remove headline and intro text from header
- Keep only logo and site name (h1) in header
- Remove header__intro section

Home page changes:
- Move intro/tagline text to main content area
- Display at same level as 'News' and other content, not as header
- Style as regular body text with .intro-text class

Submodule update:
- Update hackertours-theme to include intro text styling

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Vincent Mahnke 2026-11-07 18:20:07 +01:00
commit 5c01de9fd4
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
3 changed files with 8 additions and 7 deletions

View file

@ -26,12 +26,9 @@
<img src="{{ with $.Param "logopath" }}{{ . | relURL }}{{ else }}{{ "images/logo.png" | relURL }}{{ end }}"{{ with $.Param "logowidth" }} width="{{ . }}"{{ end }}{{ with $.Param "logoheight" }} height="{{ . }}"{{ end }} alt="{{ i18n "logo_alt" }}" class="header__logo-image"> <img src="{{ with $.Param "logopath" }}{{ . | relURL }}{{ else }}{{ "images/logo.png" | relURL }}{{ end }}"{{ with $.Param "logowidth" }} width="{{ . }}"{{ end }}{{ with $.Param "logoheight" }} height="{{ . }}"{{ end }} alt="{{ i18n "logo_alt" }}" class="header__logo-image">
</a> </a>
{{ end -}} {{ end -}}
<div class="header__intro"> <h1 class="header__site-name">
<h1 class="header__intro_headline">{{ .Param "headline" }}</h1> <a href="{{ site.Home.RelPermalink }}" rel="home" class="header__site-link">{{ site.Title }}</a>
{{ if .Param "intro" }} </h1>
<div class="header__intro_text">{{ .Param "intro" }}</div>
{{ end }}
</div>
<div class="region header__region"> <div class="region header__region">
{{ if hugo.IsMultilingual }}{{ partial "language-selector.html" . }}{{ end -}} {{ if hugo.IsMultilingual }}{{ partial "language-selector.html" . }}{{ end -}}
{{ if $.Param "menuinheader" }}{{ partial "menu.html" . }}{{ end -}} {{ if $.Param "menuinheader" }}{{ partial "menu.html" . }}{{ end -}}

View file

@ -2,6 +2,10 @@
{{ define "main" -}} {{ define "main" -}}
<main class="main layout__main"> <main class="main layout__main">
{{ if .Param "intro" }}
<div class="intro-text">{{ .Param "intro" }}</div>
{{ end }}
{{ .Content }} {{ .Content }}
{{ $pages := .Site.RegularPages.RelatedTo (keyVals "tags" "current-event") -}} {{ $pages := .Site.RegularPages.RelatedTo (keyVals "tags" "current-event") -}}

@ -1 +1 @@
Subproject commit 945820ec5b526065c796ede14dc44a4a4f0a3335 Subproject commit 2fce4ed623319c3dd7c12b9a0e3a59baa14c7dfb