34 lines
1.4 KiB
HTML
34 lines
1.4 KiB
HTML
<section class="container centered">
|
|
<div class="about">
|
|
{{ with .Site.Params.avatarurl }}
|
|
<div class="avatar"><img src="{{ . | relURL }}" alt="avatar"></div>
|
|
{{ end }}
|
|
<h1>{{ .Site.Params.author }}</h1>
|
|
<h2>{{ .Site.Params.info }}</h2>
|
|
{{ with .Site.Params.social }}
|
|
<ul class="social-links">
|
|
{{ range sort .}}
|
|
{{ if .icon }}
|
|
<li>
|
|
<a class="social-link-icon" href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }} {{ if .type }}type="{{ .type }}"{{ end }}>
|
|
<i class="{{ .icon }}" aria-hidden="true"></i>
|
|
</a>
|
|
</li>
|
|
{{ else if .svg }}
|
|
<li>
|
|
<a class="social-link-icon social-link-icon--svg" href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }} {{ if .type }}type="{{ .type }}"{{ end }}>
|
|
{{ $path := printf "svg/%s" .svg }}
|
|
{{ partial $path . }}
|
|
</a>
|
|
</li>
|
|
{{ else }}
|
|
<li>
|
|
<a class="social-link-icon social-link-icon--text" href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }}>{{ .name }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</div>
|
|
</section>
|