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

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html9
-rw-r--r--layouts/authors/list.html6
-rw-r--r--layouts/partials/widgets/about.html33
-rw-r--r--layouts/partials/widgets/details.html3
4 files changed, 46 insertions, 5 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index a8890bb..b920bf4 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -7,14 +7,13 @@
</div>
{{ end }}
</article>
-<ul class="bg-secondary-bg px-6 py-8">
+<div class="bg-secondary-bg px-6 py-8">
{{ range .Pages }}
- <li class="text-lg text-primary-text my-2">
+ <h2 class="text-lg text-primary-text my-2">
<a href="{{ .Permalink }}" class="text-eureka hover:underline">
{{ .Title }}
</a>
- </li>
+ </h2>
{{ end }}
-</ul>
-
+</div>
{{ end }} \ No newline at end of file
diff --git a/layouts/authors/list.html b/layouts/authors/list.html
new file mode 100644
index 0000000..628f731
--- /dev/null
+++ b/layouts/authors/list.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+<div class="bg-secondary">
+ {{ partial "widgets/about.html" . }}
+ {{ partial "widgets/details.html" . }}
+</div>
+{{ end }} \ No newline at end of file
diff --git a/layouts/partials/widgets/about.html b/layouts/partials/widgets/about.html
new file mode 100644
index 0000000..eda58f1
--- /dev/null
+++ b/layouts/partials/widgets/about.html
@@ -0,0 +1,33 @@
+<div class="grid grid-cols-12 gap-4 flex content-center justify-center pt-12 pb-12 pl-32 pr-32">
+ <div
+ class="col-span-12 lg:col-span-4 flex content-center justify-center lg:justify-start lg:border-r border-gray-300">
+ {{ with .Resources.ByType "image" }}
+ {{ range . }}
+ <img src='{{ .RelPermalink }}' class="h-auto w-6/12 sm:w-4/12 lg:w-10/12 object-contain" />
+ {{ end }}
+ {{ end }}
+ </div>
+
+ <div class="col-span-12 lg:col-span-7 pl-5">
+ <div>
+ <div class="text-xs font-medium pb-4 pt-4">ABOUT ME</div>
+ <div class="text-6xl font-medium pb-2">{{ .Title }}</div>
+ <div class="w-3/12 xl:w-2/12 border-b border-gray-400"></div>
+ {{ with $.Param "shortContent" }}
+ <div class="pt-8 text-lg leading-normal font-medium">
+ {{ . }}
+ </div>
+ {{ end }}
+ </div>
+ </div>
+
+ <div class="col-span-12 lg:col-span-1 flex lg:flex-col justify-center items-end ">
+ {{ $brand := $.Param "social"}}
+ {{ range $brand }}
+ {{ $src := print .icon_pack " fa-" .icon }}
+ <div class="pb-2 pr-4 lg:pr-0">
+ <i class="{{ print $src }}"></i>
+ </div>
+ {{ end }}
+ </div>
+</div> \ No newline at end of file
diff --git a/layouts/partials/widgets/details.html b/layouts/partials/widgets/details.html
new file mode 100644
index 0000000..3415967
--- /dev/null
+++ b/layouts/partials/widgets/details.html
@@ -0,0 +1,3 @@
+<div class="content pl-32 pr-32 pb-20">
+ {{ .Content }}
+</div> \ No newline at end of file