hugo-coder-fork/layouts/partials/home.html

34 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2018-03-01 01:38:59 +00:00
<section class="container centered">
<div class="about">
{{ with .Site.Params.avatarurl }}
<div class="avatar"><img src="{{ . | relURL }}" alt="avatar"></div>
{{ end }}
2018-03-01 01:38:59 +00:00
<h1>{{ .Site.Params.author }}</h1>
<h2>{{ .Site.Params.info }}</h2>
{{ with .Site.Params.social }}
2020-02-20 16:47:45 +00:00
<ul class="social-links">
{{ range sort .}}
2018-08-22 11:36:14 +00:00
{{ if .icon }}
2018-12-20 16:21:11 +00:00
<li>
2020-02-20 16:47:45 +00:00
<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>
2018-12-20 16:21:11 +00:00
</a>
</li>
2020-02-20 16:47:45 +00:00
{{ 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>
2018-08-22 11:36:14 +00:00
{{ else }}
2018-12-20 16:21:11 +00:00
<li>
2020-02-20 16:47:45 +00:00
<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>
2018-12-20 16:21:11 +00:00
</li>
2018-08-22 11:36:14 +00:00
{{ end }}
2018-03-01 01:38:59 +00:00
{{ end }}
</ul>
{{ end }}
2018-03-01 01:38:59 +00:00
</div>
</section>