better looking tags

This commit is contained in:
Robin Müller 2023-12-11 10:53:38 +01:00
parent 22c1d31628
commit c87cdded7b
7 changed files with 85 additions and 76 deletions

View File

@ -50,11 +50,10 @@ body {
.fsfw-img {
max-width: 50%;
height: auto;
margin-bottom: 1.0rem;
margin-bottom: 1.5rem;
}
.satrs-img {
max-width: 20%;
height: auto;
margin-bottom: 1.0rem;
}

View File

@ -2,6 +2,7 @@ baseURL = 'https://www.absatsw.irs-uni-stuttgart.de'
languageCode = 'en-us'
title = 'IRS Satellite Division Software Projects'
theme = "minimal-theme"
enableRobotsTXT = true
[menu]
[[menu.main]]

View File

@ -1,12 +1,10 @@
{{ define "main" }}
<main aria-role="main">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
<div class="container">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
<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">
<div class="container py-3 text-center overflow-hidden">
<div class="row row-cols-2">
<a
@ -87,6 +85,4 @@
</a>
</div>
</div>
</div>
</main>
{{ end }}

View File

@ -1,4 +1,6 @@
{{ define "main" }}
<div class="container">
{{ .Content }}
</div>
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}

View File

@ -0,0 +1,3 @@
{{- define "main" }}
<div class="not-found">404</div>
{{- end }}{{/* end main */ -}}

View File

@ -13,11 +13,12 @@ For a given taxonomy, renders a list of terms assigned to the page.
{{- with $page.GetTerms $taxonomy }}
{{- $label := (index . 0).Parent.LinkTitle }}
<div>
<div>{{ $label }}:</div>
<div class="container text-center">
<ul>
{{- range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
<a class="badge px-2 py-2 text-bg-primary" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- end }}
</ul>
</div>
</div>
{{- end }}

View File

@ -0,0 +1,7 @@
User-agent: *
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
Disallow:
{{- else }}
Disallow: /
{{- end }}
Sitemap: {{ "sitemap.xml" | absURL }}