datahorror

Research Data Management Escape Room
git clone https://git.ce9e.org/datahorror.git

commit
b49a1dcd73642d58348cb6e5e07d2eb3bcde827a
parent
d3f01d0a048e8b742f10dfac1c8f3aab5fff0736
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-08-07 12:29
style paths

Diffstat

M assets/style.css 21 +++++++++++++++++++++
M layouts/_default/baseof.html 8 +++++---

2 files changed, 26 insertions, 3 deletions


diff --git a/assets/style.css b/assets/style.css

@@ -100,3 +100,24 @@ figcaption {
  100   100     background-color: rgba(67,67,64,0.8);
  101   101     color: #fff;
  102   102 }
   -1   103 
   -1   104 .paths {
   -1   105     display: grid;
   -1   106     grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
   -1   107     gap: 1em;
   -1   108     margin-block: 2em;
   -1   109     padding: 0;
   -1   110     list-style: none;
   -1   111 }
   -1   112 
   -1   113 .paths a {
   -1   114     display: block;
   -1   115     background-color: #434340;
   -1   116     padding-inline: 1em;
   -1   117     padding-block: 0.5em;
   -1   118     text-decoration: none;
   -1   119 }
   -1   120 
   -1   121 .paths a:hover {
   -1   122     background-color: #3f3f3f;
   -1   123 }

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html

@@ -35,9 +35,11 @@
   35    35         <div class="container">
   36    36             {{- block "main" . -}}{{- end -}}
   37    37 
   38    -1             {{ range .Params.Paths -}}
   39    -1                 <p><a href="{{ .url | relURL }}">{{ .label }}</a></p>
   40    -1             {{- end }}
   -1    38             <ul class="paths">
   -1    39                 {{ range .Params.Paths -}}
   -1    40                     <li><a href="{{ .url | relURL }}">{{ .label }}</a></li>
   -1    41                 {{- end }}
   -1    42             </ul>
   41    43         </div>
   42    44     </main>
   43    45     <footer>