summaryrefslogtreecommitdiffstats
path: root/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-02-23 07:52:04 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-02-23 07:52:04 +0100
commit7e539cb398d8fa3cb17eba7b8ab4ba88b8e9c2ef (patch)
tree25017e060b2e840e575e962b6c5964a9b347864e /docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts
parent586fea0de6ea3d389ec6ccc893bdafcf3bc569a0 (diff)
parentcf591b7c0c598d34896709db6d28598da37e3ff6 (diff)
Diffstat (limited to 'docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts')
-rw-r--r--docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/installation.html6
-rw-r--r--docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/sponsors.html27
2 files changed, 15 insertions, 18 deletions
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/installation.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/installation.html
index a23cae11d..cf2989ddb 100644
--- a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/installation.html
+++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/installation.html
@@ -20,13 +20,13 @@
</div>
<p class="f6 mid-gray">Windows</p>
<div class="code f6 bg-black light-green lh-copy pv3 ph3 br2 w-100 w-50-ns center tl">
- $ choco install hugo -confirm <br />
+ $ choco install hugo-extended<br />
</div>
<p class="f6 mid-gray">Linux</p>
<div class="code f6 bg-black light-green lh-copy pv3 ph3 br2 w-100 w-50-ns center tl">
- $ snap install hugo <br />
+ $ sudo snap install hugo<br />
</div>
-
+
<p class="f5 nested-links"><a href="{{ "getting-started/installing/" | absURL }}" class="link">See the Getting Started Guide for other methods. {{ partial "svg/link-ext.svg" (dict "fill" "#333" "size" "14") }}</a></p>
</div>
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/sponsors.html b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/sponsors.html
index e0f6670be..b2915e109 100644
--- a/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/sponsors.html
+++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/home-page-sections/sponsors.html
@@ -2,7 +2,8 @@
{{ $gtag := .gtag | default "unknown" }}
{{ $classes_box := "ba b--dark-gray bg-light-gray br3 flex flex-column flex-wrap items-center justify-center ph3 pv4 mb4 w-100 w-30-l " }}
{{ $gtag := .gtag | default "unknown" }}
-{{ $utmSource := cond (eq $gtag "footer") "hugofooter" "hugohome" }}
+{{ $isFooter := (eq $gtag "footer") }}
+{{ $utmSource := cond $isFooter "hugofooter" "hugohome" }}
{{ with .cx.Site.Data.sponsors }}
<section
class="{{ $.classes_section | default "bg-primary-color-dark b--dark-gray bb bt ph5 pv4 w-100" }}">
@@ -12,26 +13,22 @@
{{ range .banners }}
<div
class="{{ $classes_box }} o-100"
- {{ with .bgcolor }}style="background-color: {{ . }};"{{ end }}>
- {{ $url := printf "%s?%s" .link (querify "utm_source" $utmSource "utm_medium" "banner" "utm_campaign" (.utm_campaign | default "hugosponsor")) | safeURL }}
- {{ if eq (getenv "HUGO_ENV") "production" | or (eq $.cx.Site.Params.env "production") }}
+ style="background-color: {{ .bgcolor }};">
+ {{ $query_params := .query_params | default "" }}
+ {{ $url := printf "%s?%s%s" .link $query_params (querify "utm_source" $utmSource "utm_medium" "banner" "utm_campaign" (.utm_campaign | default "hugosponsor")) | safeURL }}
+ {{ $logo := resources.Get .logo }}
+ {{ if hugo.IsProduction }}
{{ $gtagID := printf "Sponsor %s %s" .name $gtag | title }}
<a
href="{{ $url }}"
onclick="trackOutboundLink({{ printf "'%s', '%s'" $gtagID $url | safeJS }});"
- class="grow">
- <img
- src="{{ .logo }}"
- alt="Logo for {{ .name }}"
- class="img h3 center" />
+ class="w-100 grow pa3">
+ {{ $logo.Content | safeHTML }}
</a>
{{ else }}
- <a href="{{ $url }}" class="grow">
- <img
- src="{{ .logo }}"
- alt="Logo for {{ .name }}"
- class="img h3 center"
- /></a>
+ <a href="{{ $url }}" class="w-100 grow pa3" style="">
+ {{ $logo.Content | safeHTML }}
+ </a>
{{ end }}
</div>
{{ end }}