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

about.html « widgets « partials « layouts - github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 42d751aaee63fcf4354a56469319352162d45b96 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<div class="flex flex-col md:flex-row items-center justify-center mb-12">
  {{ $img := partial "utils/get-image" (dict "context" . "url" .Params.avatar "keyword" "*avatar*")}}
  {{ with $img }}
    <div class="flex-none w-48 mx-auto md:ms-0 md:me-8 md:pe-8 md:border-e">
      <img src="{{ . }}" class="rounded-full" alt="Avatar">
    </div>
  {{ end }}
  <div class="flex-grow mt-4 md:mt-0">
    <div class="text-3xl 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"></i>
      {{ end }}
      <div class="flex flex-wrap">
        {{ with .Params.role }}
          <span class="ps-4">{{ . | markdownify }}</span>
        {{ end }}

        {{ with .Params.organization }}
          <a href="{{ .url }}" class="ps-4">{{ .name | markdownify }}</a>
        {{ end }}
      </div>

    </div>

    {{ with .Params.bio }}
      <div class="py-8 text-lg leading-normal">
        {{ . | markdownify }}
      </div>
    {{ end }}
  </div>
  <div class="flex md:flex-col justify-center items-end ms-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. Please 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 pe-4 md:pe-0 pt-4 md:pt-0">
        <a href="{{ .url }}"><i class="{{ print $src }}"></i></a>
      </div>
    {{ end }}
  </div>
</div>
<div class="content">
  {{ .Content }}
</div>