fix: avatar size overrided

Also, updated workspace config in hugo-blox-builder.code-workspace:

Removed disused plugins
Map all HTML/HTM under modules, templates, and test to the hugo language for proper templating support.
Enable Tailwind IntelliSense within Hugo files and Alpine class bindings via tailwindCSS.includeLanguages and tailwindCSS.experimental.classRegex.
Re-enable HTML formatting for non-Hugo files using Prettier while keeping Hugo formatting off.
Recommend the Tailwind CSS VS Code extension alongside existing recommendations.
This commit is contained in:
George Cushen committed 2025-12-11 00:59:52 +00:00
1 parent 56748e571b
commit e46bd3a37a
15 files changed
+45 -97

No files matched your search

@@ -71,14 +71,14 @@
{{/* Avatar */}}
{{ if $avatar }}
<div class="avatar-wrapper {{ if $img }}-mt-24{{else}}mb-4{{end}}">
<div class="avatar-wrapper {{ if $img }}-mt-24{{else}}mb-4{{end}}" style="width: {{$display_size}}px; height: {{$display_size}}px;">
{{ $avatar_image := $avatar.Fill (printf "%sx%s Center" $generation_size $generation_size) }}
<img class="avatar {{$shape_class}} border-4 border-white shadow-2xl"
src="{{ $avatar_image.RelPermalink }}"
alt="{{$profile.title}}"
width="{{$display_size}}"
height="{{$display_size}}"
style="object-fit: cover;">
style="width: {{$display_size}}px; height: {{$display_size}}px; object-fit: cover;">
{{with $profile.status.icon}}<span class="avatar-emoji">{{.|emojify}}</span>{{end}}
</div>
{{ end }}
@@ -58,7 +58,7 @@
{{ with .icon }}
{{ partial "functions/get_icon" (dict "name" . "attributes" "class='w-4 h-4'") }}
{{ end }}
{{ .text | default (i18n "learn_more" | default "Learn more") }}
{{ .text | default "Learn more" }}
</a>
{{ end }}
@@ -104,7 +104,7 @@
{{ with .icon }}
{{ partial "functions/get_icon" (dict "name" . "attributes" "class='w-4 h-4'") }}
{{ end }}
{{ .text | default (i18n "learn_more" | default "Learn more") }}
{{ .text | default "Learn more" }}
</a>
{{ end }}