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