update layouts

This commit is contained in:
Kovasky Buezo
2025-08-23 23:04:17 -02:30
parent 97c45e37f6
commit 8218ce4caa
22 changed files with 323 additions and 225 deletions
+9 -10
View File
@@ -1,23 +1,22 @@
<span>
{{ range .Site.Params.hero.socialLinks.fontAwesomeIcons }}
<span class="px-1">
<a href="{{ .url }}"
{{ if not (hasPrefix .url "#") }} target="_blank" {{ end }}
class="btn social-icon"
>
<i class="{{ .icon }}"></i>
<a href="{{ .url }}" target="_blank" class="btn social-icon">
{{/* Extract icon name from Font Awesome class */}}
{{ $iconName := replace .icon "fab fa-" "" }}
{{ $iconName = replace $iconName "fas fa-" "" }}
{{ $iconName = replace $iconName "fa fa-" "" }}
{{ $iconName = replace $iconName "fa-" "" }}
{{ partial "icon" (dict "icon" $iconName "class" "fa-solid fa-comments") }}
</a>
</span>
{{ end }}
{{ range .Site.Params.hero.socialLinks.customIcons }}
<span class="px-1">
<a href="{{ .url }}"
{{ if not (hasPrefix .url "#") }} target="_blank" {{ end }}
class="btn social-icon"
>
<a href="{{ .url }}" target="_blank" class="btn social-icon">
<img src="{{ .icon }}">
</a>
</span>
{{ end }}
</span>
</span>