sat-sw-website/layouts/index.html

89 lines
2.9 KiB
HTML
Raw 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-09 02:12:35 +01:00
<!-- TODO: Find a way that the content of these boxes can be specified in 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">
<a
href="projects/fsfw"
class="col d-flex flex-column justify-content-center text-decoration-none"
>
<div
class="bg-body-tertiary rounded d-flex flex-column flex-wrap justify-content-center my-2 px-2 py-3 h-100 border"
2023-12-09 02:12:35 +01:00
>
2023-12-11 10:53:38 +01:00
<span>
{{ with site.GetPage "projects/fsfw" }}
{{ with .Params }}
{{ if (and .homeLogo .homeLogoCss) }}
<img
src="/projects/fsfw/{{ .homeLogo }}"
class={{ .homeLogoCss }}
/>
<br />
{{ end }}
{{ end }}
2023-12-11 10:53:38 +01:00
{{ .Params.homeSummary }}
{{ end }}
</span>
</div>
</a>
2023-12-09 18:37:16 +01:00
2023-12-11 10:53:38 +01:00
<a
href="projects/sat-rs"
class="col d-flex flex-column justify-content-center text-decoration-none"
>
<div
class="bg-body-tertiary rounded d-flex flex-column flex-wrap justify-content-center my-2 py-3 px-2 h-100 border"
2023-12-09 18:37:16 +01:00
>
2023-12-11 10:53:38 +01:00
<span>
{{ with site.GetPage "projects/sat-rs" }}
{{ with .Params }}
{{ if (and .homeLogo .homeLogoCss) }}
<img
src="/projects/sat-rs/{{ .homeLogo }}"
class={{ .homeLogoCss }}
/>
<br />
{{ end }}
{{ end }}
{{ end }}
2023-12-11 10:53:38 +01:00
<br />
{{ with site.GetPage "projects/sat-rs" }}
{{ .Params.homeSummary }}
{{ end }}
2023-12-11 10:53:38 +01:00
</span>
</div>
</a>
<a
href="projects/spacepackets"
class="col d-flex flex-column justify-content-center text-decoration-none"
>
<div
class="bg-body-tertiary rounded d-flex flex-column flex-wrap justify-content-center my-2 py-3 px-2 h-100 border"
>
{{ with site.GetPage "projects/spacepackets" }}
{{ with .Params }}
{{ if (and .homeLogo .homeLogoCss) }}
<img
src="/projects/sat-rs/{{ .homeLogo }}"
class={{ .homeLogoCss }}
/>
<br />
{{ else if .homeSummaryHeader }}
{{ .homeSummaryHeader | safeHTML }}
{{ end }}
{{ end }}
{{ end }}
{{ with site.GetPage "projects/spacepackets" }}
{{ .Params.homeSummary }}
{{ end }}
</div>
</a>
2023-12-09 01:09:58 +01:00
</div>
</div>
2023-12-08 17:53:31 +01:00
{{ end }}