now only the boxes for mobile remain
This commit is contained in:
parent
c87cdded7b
commit
9e66caa5f7
@ -56,4 +56,5 @@ body {
|
||||
.satrs-img {
|
||||
max-width: 20%;
|
||||
height: auto;
|
||||
margin-bottom: 1.0rem;
|
||||
}
|
||||
|
@ -3,10 +3,12 @@ title = 'FSFW'
|
||||
date = 2023-01-01T08:00:00-07:00
|
||||
draft = false
|
||||
tags = ["fsfw", "framework", "on-board-software", "cpp"]
|
||||
homeSummary = """The Flight Software Framework, a C/C++ framework to develop On-Board Software for
|
||||
summary = """The Flight Software Framework, a C/C++ framework to develop On-Board Software for
|
||||
remote systems like satellites and rovers."""
|
||||
homeLogo = "FSFW_Logo_V3_bw.png"
|
||||
homeLogoCss = "fsfw-img"
|
||||
[[resources]]
|
||||
name = "logo"
|
||||
src = 'FSFW_Logo_V3_bw.png'
|
||||
+++
|
||||
|
||||
<div class="container text-center">
|
||||
|
@ -3,10 +3,12 @@ title = 'sat-rs'
|
||||
date = 2023-01-01T08:00:00-07:00
|
||||
draft = false
|
||||
tags = ["framework", "on-board-software", "rust", "sat-rs"]
|
||||
homeSummary = """A Rust framework to develop On-Board Software for remote systems
|
||||
summary = """A Rust framework to develop On-Board Software for remote systems
|
||||
like satellites and rovers."""
|
||||
homeLogo = "sat-rs_logo.png"
|
||||
homeLogoCss = "satrs-img"
|
||||
[[resources]]
|
||||
name = "logo"
|
||||
src = "sat-rs_logo.png"
|
||||
+++
|
||||
|
||||
<div class="container text-center">
|
||||
|
@ -2,8 +2,8 @@
|
||||
title = 'spacepackets'
|
||||
date = 2023-01-01T08:00:00-07:00
|
||||
tags = ["spacepackets", "ccsds", "ecss", "python"]
|
||||
homeSummary = "A collection of CCSDS and ECSS packet standard implementations."
|
||||
homeSummaryHeader = "<h2>spacepackets</h2>"
|
||||
summary = "A collection of CCSDS and ECSS packet standard implementations."
|
||||
homeSummaryHeader = "spacepackets"
|
||||
draft = false
|
||||
+++
|
||||
|
||||
|
@ -4,85 +4,34 @@
|
||||
<h1 class="display-6">{{ .Content }}</h1>
|
||||
</div>
|
||||
|
||||
<!-- TODO: Find a way that the content of these boxes can be specified in front matter. -->
|
||||
<div class="container py-3 text-center overflow-hidden">
|
||||
<div class="row row-cols-2">
|
||||
{{ range site.RegularPages }}
|
||||
<a
|
||||
href="projects/fsfw"
|
||||
href="{{ .RelPermalink }}"
|
||||
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"
|
||||
>
|
||||
<span>
|
||||
{{ with site.GetPage "projects/fsfw" }}
|
||||
{{ $logo := .Resources.GetMatch "logo"}}
|
||||
{{ with .Params }}
|
||||
{{ if (and .homeLogo .homeLogoCss) }}
|
||||
{{ if (and $logo .homeLogoCss) }}
|
||||
<img
|
||||
src="/projects/fsfw/{{ .homeLogo }}"
|
||||
class={{ .homeLogoCss }}
|
||||
/>
|
||||
<br />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ .Params.homeSummary }}
|
||||
{{ end }}
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<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"
|
||||
>
|
||||
<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 }}
|
||||
<br />
|
||||
{{ with site.GetPage "projects/sat-rs" }}
|
||||
{{ .Params.homeSummary }}
|
||||
{{ end }}
|
||||
</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 }}"
|
||||
src="{{ $logo.RelPermalink }}"
|
||||
class={{ .homeLogoCss }}
|
||||
/>
|
||||
<br />
|
||||
{{ else if .homeSummaryHeader }}
|
||||
{{ .homeSummaryHeader | safeHTML }}
|
||||
<h2>{{ .homeSummaryHeader }}</h2>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ with site.GetPage "projects/spacepackets" }}
|
||||
{{ .Params.homeSummary }}
|
||||
{{ end }}
|
||||
{{ .Summary }}
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -1,8 +1,10 @@
|
||||
{{ define "main" }}
|
||||
<div class="container text-center pb-2">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ range .Pages }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ .Summary }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user