Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<link rel="canonical" href="{{ .Permalink }}" />

{{ $styles := resources.Get "main.scss" | toCSS | minify }}
<link rel="preload" as="font" type="font/woff2" href="/fonts/Inter/Inter-VariableFont_slnt,wght.woff2" crossorigin />
<link rel="stylesheet" type="text/css" href="/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/bootstrap/icons/bootstrap-icons.css" />
<link rel="stylesheet" type="text/css" href="{{ $styles.RelPermalink }}" />
Expand Down Expand Up @@ -40,6 +41,6 @@
{{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }}

<script src="/bootstrap/js/bootstrap.bundle.min.js" defer></script>
<script src="/main.js" defer></script>
<script src="/bootstrap/js/bootstrap.bundle.min.js" async></script>
<script data-goatcounter="https://scverse.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
2 changes: 2 additions & 0 deletions layouts/partials/people/avatar.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
src="https://github.com/{{ $login }}.png?size={{ mul .size 2 }}"
alt=""
loading="lazy"
referrerpolicy="no-referrer"
decoding="async"
width="{{ .size }}"
height="{{ .size }}"
/>
Expand Down
10 changes: 9 additions & 1 deletion layouts/partials/stats-contributor.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
{{ $most := .most }}
<li>
<a href="{{ $person.html_url }}" target="_blank" rel="noopener">
<img src="{{ $person.avatar_url }}&s=96" alt="" loading="lazy" width="40" height="40" />
<img
src="{{ $person.avatar_url }}&s=96"
alt=""
loading="lazy"
referrerpolicy="no-referrer"
decoding="async"
width="40"
height="40"
/>
<span class="stats-contributor-name">{{ $person.name | default $person.login }}</span>
<span class="stats-contributor-bar" aria-hidden="true">
<span style="width: {{ math.Round (div (mul (float $person.contributions) 100.0) (float $most)) }}%"></span>
Expand Down
10 changes: 9 additions & 1 deletion layouts/people/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,15 @@ <h1>{{ .Title }}</h1>
words while the avatars are still loading.
*/}}
<a href="{{ .html_url }}" target="_blank" rel="noopener" title="{{ .name }}" aria-label="{{ .name }}">
<img src="{{ .avatar_url }}&amp;s=64" alt="" loading="lazy" width="32" height="32" />
<img
src="{{ .avatar_url }}&amp;s=64"
alt=""
loading="lazy"
referrerpolicy="no-referrer"
decoding="async"
width="32"
height="32"
/>
</a>
{{ end }}
</div>
Expand Down