Simplify header and move intro text to main content
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:
parent
9a051b68be
commit
5c01de9fd4
3 changed files with 8 additions and 7 deletions
|
|
@ -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 -}}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in a new issue