improve appearance

This commit is contained in:
2025-06-09 11:45:49 -06:00
parent d4ac24c869
commit 97a31721d0
32 changed files with 8340 additions and 103 deletions

View File

@ -1,26 +1,24 @@
{{ define "main" }}
<div id="page-header">
<h1>{{ .Title }}</h1>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<span class="time">Updated <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></span>
<h1>{{ .Title }}</h1>
{{ if .Params.subtitle }}
<span class="subtitle">{{ .Params.subtitle }}</span>
{{ end }}
{{ with .Params.links }}
<!-- <section id="quick-links"> -->
<!-- <h2>Quick Links</h2> -->
<div id="link-list">
<ul>
{{ range . }}
<li><a href="{{ .url }}" target="_blank" rel="noopener">{{ if .icon }}<i class="{{ .icon }}"></i>&nbsp;&nbsp;{{ end }}{{ .title }}</a></li>
{{ end }}
</ul>
</div>
<!-- </section> -->
{{ end }}
</div>
{{ with .Params.links }}
<section id="quick-links">
<h2>Quick Links</h2>
<div id="link-list">
<ul>
{{ range . }}
<li><a href="{{ .url }}" target="_blank" rel="noopener">{{ .title }}</a></li>
{{ end }}
</ul>
</div>
</section>
{{ end }}
<section id="taxonomies">
<h2>At a Glance</h2>
@ -50,10 +48,12 @@
</table>
</section>
{{ if .Content }}
<section>
<h2>Description</h2>
{{ .Content }}
</section>
{{ end }}
{{ with .Params.publications}}
<section id="publications">
@ -76,9 +76,9 @@
{{ if .pages }} ({{ .pages }}) {{ end }}
{{ if .journal }} | Appears in <em>{{ .journal }}</em> {{ end }}
{{ if .volume }} | Volume {{ .volume }} {{ end }}
{{ if .publisher }} | Published by <em>{{ .publisher }}</em> {{ end }}
{{ if .doi }} <br /><a href="https://doi.org/{{ . }}" target="_blank" rel="noopener">{{ .doi }}</a>
{{ else if .url }} <br /><a href="{{ . }}" target="_blank" rel="noopener">{{ .url }}</a> {{ end }}
{{ if .publisher }} | Published by {{ .publisher }} {{ end }}
{{ if .doi }} | <a href="https://doi.org/{{ .doi }}" target="_blank" rel="noopener">{{ .doi }}</a>
{{ else if .url }} | <a href="{{ . }}" target="_blank" rel="noopener">{{ .url }}</a> {{ end }}
</li>
{{ end }}
{{ end }}
@ -87,4 +87,11 @@
</section>
{{ end }}
{{ if .Date }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<p class="time">Updated <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p>
{{ end }}
{{ end }}

View File

@ -2,56 +2,55 @@
<h1>{{ .Title }}</h1>
{{ .Content }}
<section id="tools-list">
<h2>Tools</h2>
<table id="taxonomy-table">
<thead>
<tr>
<th>Tool</th>
<!-- <th>License</th> -->
<th>Applications</th>
<th>Developers</th>
<th>License</th>
<th>Purposes</th>
</tr>
</thead>
<tbody>
{{ range .Pages }}
<tr>
<tr onclick="window.location='{{ .RelPermalink }}'" style="cursor:pointer;"></tr>
<td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td>
<td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
{{ if (in (slice "developers") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ if (in (slice "applications") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ end }}
{{ end }}
</td>
<td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
{{ if (in (slice "developers") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ end }}
{{ end }}
</td>
<!-- <td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
{{ if (in (slice "licenses") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ end }}
{{ end }}
</td>
<td>
{{ $sep := "" }}
{{ range $key, $vals := .Params }}
{{ if (in (slice "purposes") $key) }}
{{ $sep }}
{{ range $i, $val := $vals }}
{{ partial "term-link.html" (dict "name" $val "taxonomy" $key) }}
{{ end }}
{{ $sep = "; " }}
{{ end }}
{{ end }}
</td>
</td> -->
</tr>
{{ end }}
</tbody>