Skip to content

Commit

Permalink
committhis
Browse files Browse the repository at this point in the history
  • Loading branch information
chemlord committed May 6, 2024
1 parent 854f246 commit bdb0abd
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions layouts/partials/blocks/about.biography.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,22 @@
{{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}
{{ $avatar_shape := site.Params.features.avatar.shape | default "circle" }}

<style>
.row { align-items: center; }
.col-lg-4 { flex: 0 0 33%; max-width: 33%; padding-right: 30px; }
.avatar { width: 100%; border-radius: 50%; margin-bottom: 10px; }
.portrait-title h2, .portrait-title h3 { margin: 0; padding: 0; line-height: 1.2; }
.col-lg-8 { flex: 0 0 67%; max-width: 67%; }
.article-style { margin-bottom: 20px; }
.ul-interests, .ul-edu { list-style-type: none; padding-left: 0; }
.fa-li { width: 2.5em; }
</style>

<!-- About widget -->
<div class="row">
<div class="col-12 col-lg-4">
<div id="profile">
{{ if site.Params.features.avatar.gravatar }}
<img class="avatar {{if eq $avatar_shape "square"}}avatar-square{{else}}avatar-circle{{end}}" src="https://s.gravatar.com/avatar/{{ md5 $person.email }}?s=270')" alt="{{$person_page.Title}}">
{{ else if $avatar }}
{{ if $avatar }}
{{ $avatar_image := $avatar.Fill "270x270 Center" }}
<img class="avatar {{if eq $avatar_shape "square"}}avatar-square{{else}}avatar-circle{{end}}"
width="{{ $avatar_image.Width }}" height="{{ $avatar_image.Height }}"
Expand Down

0 comments on commit bdb0abd

Please sign in to comment.