sat-sw-website/layouts/index.html

40 lines
1.3 KiB
HTML
Raw Permalink Normal View History

2023-12-08 17:53:31 +01:00
{{ define "main" }}
2023-12-09 01:09:58 +01:00
<div class="container">
2023-12-11 10:53:38 +01:00
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
2023-12-09 02:12:35 +01:00
<h1 class="display-6">{{ .Content }}</h1>
</div>
2023-12-08 20:03:46 +01:00
2023-12-11 14:02:31 +01:00
<!-- Display all regular pages as beatiful boxes. Information like logos/headers/summary is
pulled from front matter-->
2023-12-11 10:53:38 +01:00
<div class="container py-3 text-center overflow-hidden">
<div class="row row-cols-2">
2023-12-11 12:22:12 +01:00
{{ range site.RegularPages }}
<a
href="{{ .RelPermalink }}"
class="col d-flex flex-column justify-content-center text-decoration-none"
2023-12-09 02:12:35 +01:00
>
2023-12-11 12:22:12 +01:00
<div
class="bg-body-tertiary rounded d-flex flex-column flex-wrap justify-content-center my-2 px-2 py-3 h-100 border"
>
<span>
{{ $logo := .Resources.GetMatch "logo"}}
2023-12-11 10:53:38 +01:00
{{ with .Params }}
2023-12-11 12:22:12 +01:00
{{ if (and $logo .homeLogoCss) }}
2023-12-11 10:53:38 +01:00
<img
2023-12-11 12:22:12 +01:00
src="{{ $logo.RelPermalink }}"
2023-12-11 10:53:38 +01:00
class={{ .homeLogoCss }}
/>
<br />
2023-12-11 12:22:12 +01:00
{{ else if .homeSummaryHeader }}
<h2>{{ .homeSummaryHeader }}</h2>
2023-12-11 10:53:38 +01:00
{{ end }}
{{ end }}
2023-12-11 12:22:12 +01:00
{{ .Summary }}
</span>
</div>
</a>
{{ end }}
2023-12-09 01:09:58 +01:00
</div>
</div>
2023-12-08 17:53:31 +01:00
{{ end }}