diff options
author | tdro <tdro@noreply.example.com> | 2022-05-03 04:25:49 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-03 04:25:49 -0400 |
commit | e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6 (patch) | |
tree | 3667043819ab91065019dfe3b4ff83ad625c2b49 /themes/default/layouts/partials/profile.html | |
download | canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.tar.gz canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.tar.bz2 canory-e92dc018e28ba8d44f1c6cbc9fb0b779dec271e6.zip |
config.yaml: Commission
Diffstat (limited to 'themes/default/layouts/partials/profile.html')
-rw-r--r-- | themes/default/layouts/partials/profile.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/themes/default/layouts/partials/profile.html b/themes/default/layouts/partials/profile.html new file mode 100644 index 0000000..b20159f --- /dev/null +++ b/themes/default/layouts/partials/profile.html @@ -0,0 +1,52 @@ +{{ $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") }} + +<micro-header> + + <micro-header-image> + <picture> + <img alt="{{ .Title }}" src="/{{ partial "author-media-path.html" . }}/profile/header.jpg" /> + </picture> + </micro-header-image> + + <micro-header-picture> + <picture> + <img src="/{{ partial "author-media-path.html" . }}/profile/picture.png"/> + </picture> + </micro-header-picture> + + <section> + <micro-header-title> + <h1>{{ $author.name }}</h1> + <h2>@{{ $author.user }}</h2> + </micro-header-title> + <micro-header-description> + <p> + {{ $author.description | markdownify }} + </p> + </micro-header-description> + </section> + + <footer> + <p> + {{ safeHTML (readFile "static/icons/feather/map-pin.svg") }} + <span>{{- $author.place | markdownify -}}</span> + </p> + <p> + {{ safeHTML (readFile "static/icons/feather/globe.svg") }} + <a href="{{ $author.domain.url }}"> + {{- $author.domain.host | markdownify -}} + </a> + </p> + <p> + {{ safeHTML (readFile "static/icons/feather/clock.svg") }} + <span>{{- $author.epoch | markdownify -}}</span> + </p> + <p> + {{ safeHTML (readFile "static/icons/feather/user.svg") }} + <span><b>{{ with $author.webring.rss }}{{ len . }}{{ else }} 0 {{ end }}</b> Following</span> + </p> + </footer> + +</micro-header> + +{{ partial "profile-tabs.html" . }} |