some improvements

This commit is contained in:
mivinci 2021-09-11 12:07:03 +08:00
parent a3cb5a359b
commit 9111e6a6b6
3 changed files with 11 additions and 9 deletions

View file

@ -2,13 +2,15 @@
<main> <main>
<h2>{{ .Title }}</h2> <h2>{{ .Title }}</h2>
<nav class="flex flex-col"> <nav class="flex flex-col">
{{ $data := .Data }} {{ $data := .Data }}
{{ range $key, $value := .Data.Terms.ByCount }} {{ range $key, $value := .Data.Terms.ByCount }}
<a class="mb-5 self-start" href="/{{ $data.Plural }}/{{ $value.Name }}"> <div class="mb-5 flex justify-between">
{{ $value.Name }} <a class="self-start" href="/{{ $data.Plural }}/{{ $value.Name }}">
{{ $value.Name }}
</a>
<span class="">{{ $value.Count }}</span> <span class="">{{ $value.Count }}</span>
</a> </div>
{{ end }} {{ end }}
</nav> </nav>
</main> </main>
{{ end }} {{ end }}

View file

@ -1,8 +1,8 @@
<footer class="mt-8 flex sm:flex-col-reverse justify-between items-center"> <footer class="mt-8 flex sm:flex-col-reverse justify-between items-center">
<p class="mt-0 text-sm"> <p class="mt-0 text-sm">
{{ .Site.Copyright }} | {{ .Site.Copyright }} |
<a href="https://github.com/mivinci/hugo-theme-minima" target="_blank" rel="noopener noreferrer">Minima</a> on <a href="https://gohugo.io" target="_blank" rel="noopener noreferrer">Hugo</a> on
<a href="https://gohugo.io" target="_blank" rel="noopener noreferrer">Hugo</a> <a href="https://github.com/mivinci/hugo-theme-minima" target="_blank" rel="noopener noreferrer">Minima</a>
</p> </p>
<p class="flex items-center mt-0"> <p class="flex items-center mt-0">
{{ range $_, $key := .Site.Params.Social }} {{ range $_, $key := .Site.Params.Social }}

View file

@ -8,7 +8,7 @@
<nav class="flex items-center <nav class="flex items-center
whitespace-nowrap overflow-x-auto overflow-y-hidden"> whitespace-nowrap overflow-x-auto overflow-y-hidden">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<a class="ml-3" href="{{ .URL }}">{{ .Name }}</a> <a class="ml-5" href="{{ .URL }}">{{ .Name }}</a>
{{ end }} {{ end }}
</nav> </nav>
</header> </header>