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: 4ca43ab1c811ec841f5fbf0f7bb611394c99cf9c (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
28
29
30
31
32
33
34
35
36
<div class="py-2">
  {{ range . }}
    <div class="my-8 flex flex-col items-center md:flex-row">
      <a href="{{ .Permalink }}" class="md:me-4 text-primary-text h-24 w-24">
        {{ $img := partial "utils/get-image" (dict "context" . "url" .Params.avatar "keyword" "*avatar*") }}
        {{ with $img }}
          <img
            src="{{ . }}"
            class="bg-primary-bg w-full rounded-full"
            alt="Avatar"
          />
        {{ else }}
          <i class="fas fa-user-circle fa-6x"></i>
        {{ end }}
      </a>
      <div class="mt-4 w-full md:mt-0 md:w-auto">
        <a
          href="{{ .Permalink }}"
          class="mb-2 block border-b pb-1 text-lg font-bold"
        >
          <h3>{{ .LinkTitle }}</h3>
        </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>