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/authors/list.html')
-rw-r--r--layouts/authors/list.html56
1 files changed, 53 insertions, 3 deletions
diff --git a/layouts/authors/list.html b/layouts/authors/list.html
index 7d288ed..90d5fb3 100644
--- a/layouts/authors/list.html
+++ b/layouts/authors/list.html
@@ -1,10 +1,60 @@
{{ define "main" }}
<div class="lg:pt-12">
<div class="bg-secondary-bg rounded primary-text px-6 md:px-16 lg:px-32">
- {{ partial "widgets/about.html" . }}
- {{ partial "widgets/details.html" . }}
+ <div class="flex flex-col lg:flex-row items-center justify-center py-12">
+ {{ $img := partial "utils/get-image" (dict "context" . "url" .Params.avatar "keyword" "*avatar*")}}
+ {{ with $img }}
+ <div class="w-48 mx-auto lg:-my-8 lg:ml-0 lg:mr-8 lg:pr-8 lg:py-8 lg:border-r">
+ <img src="{{ . }}" class="rounded-full" alt="Avatar">
+ </div>
+ {{ end }}
+ <div class="flex-grow mt-4 md:mt-0">
+ <div class="text-3xl leading-tight py-4">{{ .Title }}</div>
+ <div class="w-3/12 xl:w-2/12 border-b"></div>
+
+ <div class="flex items-center pt-4">
+ {{ with or (.Params.role) (.Params.organizations)}}
+ <i class="fas fa-user-tag"></i>
+ {{ end }}
+ <div class="flex flex-wrap">
+ {{ with .Params.role }}
+ <span class="pl-4">{{ . }}</span>
+ {{ end }}
+
+ {{ with .Params.organization }}
+ <a href="{{ .url }}" class="pl-4">{{ .name }}</a>
+ {{ end }}
+ </div>
+
+ </div>
+
+ {{ with .Params.bio }}
+ <div class="py-8 text-lg leading-normal">
+ {{ . }}
+ </div>
+ {{ end }}
+ </div>
+ <div class="flex lg:flex-col justify-center items-end ml-8">
+ {{ $brand := $.Param "social"}}
+ {{ range $brand }}
+ {{/* Deprecation warning(v1.0.0) starts */}}
+ {{ if .icon_pack }}
+ {{ warnf "Param 'icon_pack' in %q is deprecated and will be removed in Eureka v1.0.0. Use 'iconPack' instead." $.File.Path }}
+ {{ end }}
+ {{ $iconPack := .iconPack | default .icon_pack }}
+ {{/* Deprecation warning(v1.0.0) ends */}}
+ {{ $src := print $iconPack " fa-" .icon }}
+ <div class="pb-2 pr-4 lg:pr-0 pt-4 lg:pt-0">
+ <a href="{{ .url }}"><i class="{{ print $src }}"></i></a>
+ </div>
+ {{ end }}
+ </div>
+ </div>
+ <div class="content pb-20">
+ {{ .Content }}
+ </div>
</div>
{{ $pages := .Pages }}
- {{ partial "masonry.html" $pages }}
+ {{ partial "components/masonry" $pages }}
</div>
{{ end }} \ No newline at end of file