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

post-author.html « components « partials « layouts - github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c809763fbd3c12e4de468a4942836f80ba653d37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<div class="py-2">
    {{ range . }}
    <div class="flex flex-col md:flex-row items-center my-8">
        <a href="{{ .Permalink }}" class="w-24 h-24 md:me-4">
            {{ $img := partial "utils/get-image" (dict "context" . "url" .Params.avatar "keyword" "*avatar*")}}
            {{ with $img }}
            <img src="{{ . }}" class="w-full bg-primary-bg rounded-full" alt="Avatar">
            {{ else }}
            <i class="fas fa-user-circle fa-6x"></i>
            {{ end }}
        </a>
        <div class="w-full md:w-auto mt-4 md:mt-0">
            <a href="{{ .Permalink }}" class="block font-bold text-lg pb-1 mb-2 border-b">{{ .LinkTitle }}</a>
            <span class="block pb-2">{{ .Params.bio }}</span>
            {{ range .Params.social }}
            {{/*  Deprecation warning(v1.0.0) starts  */}}
            {{ $iconPack := .iconPack | default .icon_pack }}
            {{/*  Deprecation warning(v1.0.0) ends  */}}
            {{ $src :=  print $iconPack " fa-" .icon }}
            <a href="{{ .url }}" class="me-1">
                <i class="{{ print $src }}"></i>
            </a>
            {{ end }}
        </div>
    </div>
    {{ end }}
</div>