This repository was archived by the owner on Feb 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +29
-23
lines changed
layouts/partials/home-page-sections Expand file tree Collapse file tree 2 files changed +29
-23
lines changed Original file line number Diff line number Diff line change 66 bgcolor = " #ffffff"
77
88[[banners ]]
9- name = " Your Company?"
10- link = " https://bep.is/en/hugo-sponsor-2023-01/"
11- utm_campaign = " hugosponsor"
12- show_on_hover = true
13- bgcolor = " #4e4f4f"
9+ name = " Route4Me"
10+ link = " https://route4me.com"
11+ title = " Route Planning & Route Optimization Software"
12+ utm_campaign = " hugosponsor"
13+ bgcolor = " #334799"
14+ link_attr = " style='color: #ffffff; font-weight: bold; text-decoration: none; text-align: center'"
1415
1516[[banners ]]
1617 name = " Your Company?"
1718 link = " https://bep.is/en/hugo-sponsor-2023-01/"
1819 utm_campaign = " hugosponsor"
1920 show_on_hover = true
2021 bgcolor = " #4e4f4f"
22+ link_attr = " style='color: #ffffff; font-weight: bold; text-decoration: none; text-align: center'"
Original file line number Diff line number Diff line change @@ -25,26 +25,30 @@ <h3 class="b f3 mv0 light-gray">Hugo Sponsors</h3>
2525 {{ $query_params := .query_params | default "" }}
2626 {{ $url := printf "%s?%s%s" .link $query_params (querify "utm_source" (.utm_source | default $utmSource ) "utm_medium" "banner" "utm_campaign" (.utm_campaign | default "hugosponsor") "utm_content" (.utm_content | default "gohugoio")) | safeURL }}
2727 {{ $logo := resources.Get .logo }}
28- {{ if hugo.IsProduction }}
29- {{ $gtagID := printf "Sponsor %s %s" .name $gtag | title }}
30- < a
31- href ="{{ $url }} "
32- onclick ="trackOutboundLink({{ printf "'%s', '%s'" $gtagID $url | safeJS }});"
33- class="w-100 grow pa3{{ if .show_on_hover }}
34- show-on-hover
35- {{ end }}"
36- style="">
37- {{ with $logo }}{{ .Content | safeHTML }}{{ end }}
38- </ a >
28+ {{ $gtagID := printf "Sponsor %s %s" .name $gtag | title }}
29+ {{ $classes := "" }}
30+ {{ if .show_on_hover }}
31+ {{ $classes = printf "%s show-on-hover" $classes }}
32+ {{ end }}
33+ {{ if $isFooter }}
34+ {{ $classes = printf "%s f3" $classes }}
3935 {{ else }}
40- < a
41- href ="{{ $url }} "
42- class ="w-100 grow pa3{{ if .show_on_hover }}
43- show-on-hover
44- {{ end }} ">
45- {{ with $logo }}{{ .Content | safeHTML }}{{ end }}
46- </ a >
36+ {{ $classes = printf "%s f1" $classes }}
4737 {{ end }}
38+ < a
39+ href ="{{ $url }} "
40+ title ="{{ .title | default .name }} "
41+ {{ if hugo.IsProduction }}
42+ onclick ="trackOutboundLink({{ printf "'%s', '%s'" $gtagID $url | safeJS }});"
43+ {{ end }}
44+ class="w-100 grow pa3 {{ $classes }}"
45+ {{ with .link_attr }}{{ . | safeHTMLAttr }}{{ end }}>
46+ {{ with $logo }}
47+ {{ .Content | safeHTML }}
48+ {{ else }}
49+ {{ .name }}
50+ {{ end }}
51+ </ a >
4852 </ div >
4953 {{ end }}
5054 </ div >
You can’t perform that action at this time.
0 commit comments