Files
zhaw_website/layouts/index.html
T
JirR02 bd519140e5
Build and Deploy Hugo Site / build-and-deploy (push) Failing after 24s
ZHAW Website V. 2.0.0
2026-10-26 08:15:46 +01:00

30 lines
1.3 KiB
HTML

{{ define "main" }}
<section class="intro">
<p class="intro__eyebrow">visitor@{{ .Site.Params.prompt.host | default "blog" }} $ cat about.txt<span class="cursor">&nbsp;</span></p>
<h1>{{ .Site.Params.tagline | default .Site.Title }}</h1>
{{ with .Site.Params.description }}<p>{{ . }}</p>{{ end }}
{{ with .Site.Params.social }}
<p class="intro__links">
{{ with .discord }}<a href="{{ . }}" target="_blank" rel="noopener">Discord</a>{{ end }}
{{ with .whatsapp }}<a href="{{ . }}" target="_blank" rel="noopener">WhatsApp</a>{{ end }}
{{ with .mail }}<a href="{{ . }}" target="_blank" rel="noopener me">Mail</a>{{ end }}
</p>
{{ end }}
</section>
{{ $sectionPages := where .Site.RegularPages "Type" "hs26" }}
{{ if eq (len $sectionPages) 0 }}{{ $sectionPages = .Site.RegularPages }}{{ end }}
{{ $paginator := .Paginate $sectionPages }}
<p class="section-label">Jetziges Semester</p>
<ul class="post-list">
{{ range $i, $p := $paginator.Pages }}
{{ partial "post-card.html" (dict "page" $p "index" $i) }}
{{ else }}
<li style="color: var(--overlay1); font-family: 'IBM Plex Mono', monospace;">No posts yet — create one with <code>hugo new posts/my-first-post.md</code>.</li>
{{ end }}
</ul>
{{ partial "pagination.html" $paginator }}
{{ end }}