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 { .fsfw-img {
max-width: 50%; max-width: 50%;
height: auto; height: auto;
margin-bottom: 1.0rem; margin-bottom: 1.5rem;
} }
.satrs-img { .satrs-img {
max-width: 20%; max-width: 20%;
height: auto; height: auto;
margin-bottom: 1.0rem;
} }

View File

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

View File

@ -1,12 +1,10 @@
{{ define "main" }} {{ 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"> <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> <h1 class="display-6">{{ .Content }}</h1>
</div> </div>
<!-- TODO: Find a way that the content of these boxes can be specified in front matter. --> <!-- 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="container py-3 text-center overflow-hidden">
<div class="row row-cols-2"> <div class="row row-cols-2">
<a <a
@ -87,6 +85,4 @@
</a> </a>
</div> </div>
</div> </div>
</div>
</main>
{{ end }} {{ end }}

View File

@ -1,4 +1,6 @@
{{ define "main" }} {{ define "main" }}
<div class="container">
{{ .Content }} {{ .Content }}
</div>
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }} {{ 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 }} {{- with $page.GetTerms $taxonomy }}
{{- $label := (index . 0).Parent.LinkTitle }} {{- $label := (index . 0).Parent.LinkTitle }}
<div> <div>
<div>{{ $label }}:</div> <div class="container text-center">
<ul> <ul>
{{- range . }} {{- range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li> <a class="badge px-2 py-2 text-bg-primary" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{- end }} {{- end }}
</ul> </ul>
</div> </div>
</div>
{{- end }} {{- 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 }}