hugo-theme-tui

TUI
Log | Files | Refs | README | LICENSE

socials.html (726B)


      1 {{- /*
      2   Socials grid for the home page. Driven by site.Params.socialLinks.
      3   Each entry uses:
      4     key   — label shown in the tile's small caps line (e.g., "email")
      5     value — value shown below the key (e.g., "hello@example.com")
      6     url   — href
      7     icon  — name passed to partials/icon.html (see that partial for keys)
      8 */ -}}
      9 {{- with site.Params.socialLinks -}}
     10 <div class="socials">
     11   {{- range . }}
     12   <a href="{{ .url }}"{{ if hasPrefix .url "http" }} rel="me"{{ end }} aria-label="{{ .key }}" title="{{ .key }}">
     13     <span class="ico">{{ partial "icon.html" .icon }}</span>
     14     <span class="lbl"><span class="k">{{ .key }}</span><span class="v">{{ .value }}</span></span>
     15   </a>
     16   {{- end }}
     17 </div>
     18 {{- end -}}