Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/heyeshuang/hugo-theme-tokiwa.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Yeshuang <yeshuanghe@gmail.com>2020-05-05 14:04:09 +0300
committerHe Yeshuang <yeshuanghe@gmail.com>2020-05-18 15:15:49 +0300
commit183992603422952cda424745c7d857f9f390ee9b (patch)
tree26261019e7096786c6122532deed647defdc876a /layouts
parentcd4a30371c715a4fa2e1e5523a02cf99554b2b1b (diff)
playing w/ terms
Diffstat (limited to 'layouts')
-rwxr-xr-xlayouts/_default/baseof.html2
-rwxr-xr-xlayouts/_default/list.html21
-rw-r--r--layouts/_default/terms.html32
3 files changed, 35 insertions, 20 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 00f8fa9..68a067d 100755
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -40,7 +40,7 @@
<body class="bg-gray-100 text-gray-700">
<div class="p-6 sm:p-10 md:p-16 flex flex-wrap">
<header class="w-full md:w-2/5 xl:w-1/2 md:pr-12 lg:pr-20 xl:pr-24 order-1 md:order-1 max-w-2xl">
- <div class="z-50 bg-gray-100 max-w-xl md:float-right md:text-right leading-loose tracking-tight md:sticky md:top-0 pt-2">
+ <div class="z-50 bg-gray-100 lg:min-w-0.7 max-w-xl md:float-right md:text-right leading-loose tracking-tight md:sticky md:top-0 pt-2">
{{ block "header" . }}{{ partial "site-header.html" .}}{{ end }}
</div>
</header>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 06a293e..4afa8d0 100755
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -5,22 +5,23 @@
</section>
<section>
{{ range (.Paginator 25).Pages.GroupByDate "2006" }}
- <!-- <hr class="pt-4" /> -->
- <section class="flex flex-col md:flex-row items-start justify-between">
- <div class="pl-4 pb-2 md:sticky top-0 order-1 md:order-2">
- <h2 class="">{{ .Key }}</h2>
+ <hr class="p-0 m-0" />
+ <section class="flex flex-col md:flex-row items-start items-baseline">
+ <div class="pl-4 pb-2 md:sticky top-0 order-1 pr-6">
+ <h2 class=" text-eucalyptus-600">{{ .Key }}</h2>
</div>
- <ul class="order-2 md:order-1">
+ <ul class="order-2 flex-grow">
{{ range .Pages }}
- <div>
- <div>
+ <div class="py-1 flex">
+ <span class="font-serif pr-4">{{.Date.Format "01-02"}}</span>
+ <div class="font-serif font-medium">
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
+ {{ with .Description }}
+ <div class="pl-4 font-serif font-light italic">{{.}}</div>
+ {{ end }}
</div>
- {{ with .Description }}
- <div>{{.}}</div>
- {{ end }}
</div>
{{ end }}
</ul>
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index 4b2c2d4..23592db 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -1,4 +1,5 @@
{{ define "main" }}
+{{ $pageCount := 8 }}
{{ $data := .Data }}
<article>
<div>
@@ -6,16 +7,29 @@
</div>
</article>
<div>
- <section>
+ <section class="flex flex-wrap">
{{ range $key, $value := .Data.Terms }}
- <h2>
- <a href="{{ "/" | relLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">
- {{ $.Data.Singular | humanize }}: {{ $key }}
- </a>
- </h2>
- {{ range $value.Pages }}
- {{ partial "summary.html" . }}
- {{ end }}
+ <section class="w-full xl:w-1/2 xl:pr-4">
+ <hr class="p-0 my-4" />
+ <div class="clearfix">
+ <span class="float-left text-3xl pr-6 font-serif pt-1">
+ <a href="{{ "/" | relLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">
+ {{ $key }}
+ </a>
+ </span>
+ {{$count:=len ( first $pageCount $value.Pages ) }}
+ {{ range $k,$v:=( first $pageCount $value.Pages ) }}
+ <a class="leading-relaxed text-gray-600 hover:text-gray-700 focus:text-gray-700 font-light "
+ href="{{ .Permalink }}">
+ {{ $v.Title }}
+ </a>
+ <span class="text-gray-600">{{ if lt $k (sub $count 1) }}&nbsp;&#47;&nbsp;{{ end }}</span>
+ {{ end }}
+ {{ if gt (len $value.Pages) $pageCount }}
+ <span class="text-gray-600">&nbsp;&#47;&nbsp;&hellip;</span>
+ {{ end }}
+ </div>
+ </section>
{{ end }}
</section>
</div>