github.com/rabbouni145/gg@v0.47.1/docs/themes/gohugoioTheme/layouts/partials/home-page-sections/sponsors.html (about) 1 {{$classes_box := "ba b--light-gray bg-light-gray br3 flex flex-column flex-wrap items-center justify-center ph3 pv4 mb4 w-100 w-30-l "}} 2 {{$gtag := .gtag | default "unknown" }} 3 {{ with .cx.Site.Data.sponsors }} 4 <section class="{{ $.classes_section | default "bg-primary-color-dark b--dark-gray bb bt ph5 pv4 w-100"}}"> 5 <div class="center mw9"> 6 <f3 class="b f3 light-gray">Hugo Sponsors</f3> 7 <div class="flex-ns flex-wrap center justify-between pt3"> 8 {{ range .banners }} 9 {{ $banner := . }} 10 {{if .logo}} 11 <div class="{{$classes_box}} o-100"> 12 {{with .link -}} 13 {{ $url := printf "%s?%s" . (querify "utm_source" "homepage" "utm_medium" "banner" "utm_campaign" "hugosponsor") | safeURL }} 14 {{ if eq (getenv "HUGO_ENV") "production" | or (eq $.cx.Site.Params.env "production") }} 15 {{ $gtagID := printf "Sponsor %s %s" $banner.name $gtag | title }} 16 <a href="{{ $url }}" onclick="trackOutboundLink({{ printf "'%s', '%s'" $gtagID $url | safeJS }}); return false;" class="grow"> 17 {{ else }} 18 <a href="{{ $url }}" class="grow"> 19 {{ end }} 20 {{- end}} 21 <img src="{{ .logo }}" alt="Logo for {{ .name }}" class="img h3 center" /> 22 {{with .link}}</a>{{end}} 23 {{with .copy}} 24 <p class="center lh-copy gray mv1 tc {{$.classes_copy | default "f5 w-70-ns"}}"> 25 {{- . -}} 26 </p> 27 {{end}} 28 </div> 29 {{else}} 30 <div class="{{$classes_box}} o-10"> 31 <p class="b black tc">Your Logo Here</p> 32 </div> 33 {{end}} 34 {{end}} 35 </div> 36 </div> 37 </section> 38 {{end}}