Merge commit '823ce055ed3356da37e9ec4ac70446bdbbaa8de8'

This commit is contained in:
Bjørn Erik Pedersen
2020-07-13 11:01:55 +02:00
9 changed files with 11 additions and 10 deletions

View File

@@ -4828,7 +4828,7 @@ pre {
right: 50%;*/
/*margin-left: -30vw;*/
margin-right: -30vw;
max-width: 48vw;
max-width: 100vw;
}
}
.code-block .line-numbers-rows {

View File

@@ -17,10 +17,9 @@ var trackOutboundLink = function(id, url) {
gtag('event', 'click', {
'event_category': 'outbound',
'event_label': id,
'transport_type': 'beacon',
'event_callback': function(){document.location = url;}
'transport_type': 'beacon'
});
}
</script>
{{ end }}
{{ end }}

View File

@@ -13,7 +13,7 @@
{{ $url := printf "%s?%s" . (querify "utm_source" "homepage" "utm_medium" "banner" "utm_campaign" "hugosponsor") | safeURL }}
{{ if eq (getenv "HUGO_ENV") "production" | or (eq $.cx.Site.Params.env "production") }}
{{ $gtagID := printf "Sponsor %s %s" $banner.name $gtag | title }}
<a href="{{ $url }}" onclick="trackOutboundLink({{ printf "'%s', '%s'" $gtagID $url | safeJS }}); return false;" class="grow">
<a href="{{ $url }}" onclick="trackOutboundLink({{ printf "'%s', '%s'" $gtagID $url | safeJS }});" class="grow">
{{ else }}
<a href="{{ $url }}" class="grow">
{{ end }}

View File

@@ -39,7 +39,7 @@
<p class="dib">The Hugo Gopher is based on an original work by Renée French.</p>
</div>
<img src="/images/gopher-side_color.svg" class="absolute-l bottom-0 dn db-l h4 right-0 z-999"/>
<img src="/images/gopher-side_color.svg" alt="" class="absolute-l bottom-0 dn db-l h4 right-0 z-999"/>
<div class="bg-primary-color-dark bottom-0 left-0 right-0 dn-l fixed pb3 ph3 w-100">
{{- partial "nav-mobile.html" . -}}

View File

@@ -95,7 +95,7 @@ Showcase: {{ .Title }}
</a>
</li>
{{end}}
{{if ge $number_of_entries 20}}
{{if gt $number_of_entries 20}}
<li class="mt3">
<a href="/showcase/page/2/" class="link blue">
See More &raquo;