Font-swap on font-awesome and image compression

This commit is contained in:
Brandon Rozek 2023-09-26 16:30:27 -04:00
parent 1964f176d2
commit e437fcdd1a
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
9 changed files with 26 additions and 19 deletions

View file

@ -8,7 +8,10 @@
<h1 class='title p-name'>{{ .Title }}</h1>
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
<div style="display: none;" rel="author" class="h-card p-author">
<img class="u-photo" src="{{ .Site.BaseURL }}img/avatar.jpg"/>
{{ $profile_image := resources.Get (printf "img/%s" .Site.Params.avatar) }}
{{ $profile_width := 75 }}
{{ $profile_image := $profile_image.Resize (printf "%dx webp q75" $profile_width) }}
<img class="u-photo" width="{{ $profile_width }}" height="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}"/>
<span > {{ .Site.Params.Author }}</span>
</div>
{{ .Scratch.Set "beforeDateString" "Published on "}}

View file

@ -8,7 +8,10 @@
<h1 class='title p-name'>{{ .Title }}</h1>
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
<div style="display: none;" rel="author" class="h-card p-author">
<img class="u-photo" src="{{ .Site.BaseURL }}img/avatar.jpg"/>
{{ $profile_image := resources.Get (printf "img/%s" .Site.Params.avatar) }}
{{ $profile_width := 75 }}
{{ $profile_image := $profile_image.Resize (printf "%dx webp q75" $profile_width) }}
<img class="u-photo" width="{{ $profile_width }}" height="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}"/>
<span > {{ .Site.Params.Author }}</span>
</div>
{{ .Scratch.Set "beforeDateString" "Published on "}}