mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-09 21:08:04 -04:00
Update theme
This commit is contained in:
parent
f90fb1bf52
commit
1e50f0583d
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
@ -12,13 +12,9 @@
|
|||||||
bgcolor = "#131A3E"
|
bgcolor = "#131A3E"
|
||||||
|
|
||||||
[[banners]]
|
[[banners]]
|
||||||
name = "Gravity Kit"
|
name = "Your Company?"
|
||||||
link = "https://www.gravitykit.com/"
|
link = "https://bep.is/en/hugo-sponsor-2023-01/"
|
||||||
logo = "images/sponsors/graitykit-dark.svg"
|
logo = "/images/sponsors/your-company.svg"
|
||||||
query_params = "ref=532&campaign=hugo&"
|
utm_campaign = "hugosponsor"
|
||||||
utm_campaign = "hugosponsor"
|
show_on_hover = true
|
||||||
bgcolor = "#e0ecf3"
|
bgcolor = "#004887"
|
||||||
|
|
||||||
#hugohome
|
|
||||||
#hugofooter
|
|
||||||
#hugogithub
|
|
||||||
|
@ -5,6 +5,14 @@
|
|||||||
{{ $isFooter := (eq $gtag "footer") }}
|
{{ $isFooter := (eq $gtag "footer") }}
|
||||||
{{ $utmSource := cond $isFooter "hugofooter" "hugohome" }}
|
{{ $utmSource := cond $isFooter "hugofooter" "hugohome" }}
|
||||||
{{ with .cx.Site.Data.sponsors }}
|
{{ with .cx.Site.Data.sponsors }}
|
||||||
|
<style>
|
||||||
|
a.show-on-hover {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
a.show-on-hover:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<section
|
<section
|
||||||
class="{{ $.classes_section | default "bg-primary-color-dark b--dark-gray bb bt ph5 pv4 w-100" }}">
|
class="{{ $.classes_section | default "bg-primary-color-dark b--dark-gray bb bt ph5 pv4 w-100" }}">
|
||||||
<div class="center mw9">
|
<div class="center mw9">
|
||||||
@ -22,11 +30,18 @@
|
|||||||
<a
|
<a
|
||||||
href="{{ $url }}"
|
href="{{ $url }}"
|
||||||
onclick="trackOutboundLink({{ printf "'%s', '%s'" $gtagID $url | safeJS }});"
|
onclick="trackOutboundLink({{ printf "'%s', '%s'" $gtagID $url | safeJS }});"
|
||||||
class="w-100 grow pa3">
|
class="w-100 grow pa3{{ if .show_on_hover }}
|
||||||
|
show-on-hover
|
||||||
|
{{ end }}"
|
||||||
|
style="">
|
||||||
{{ $logo.Content | safeHTML }}
|
{{ $logo.Content | safeHTML }}
|
||||||
</a>
|
</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ $url }}" class="w-100 grow pa3" style="">
|
<a
|
||||||
|
href="{{ $url }}"
|
||||||
|
class="w-100 grow pa3{{ if .show_on_hover }}
|
||||||
|
show-on-hover
|
||||||
|
{{ end }}">
|
||||||
{{ $logo.Content | safeHTML }}
|
{{ $logo.Content | safeHTML }}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1 +1 @@
|
|||||||
# github.com/gohugoio/gohugoioTheme v0.0.0-20230124135550-462d5fe4a87f
|
# github.com/gohugoio/gohugoioTheme v0.0.0-20230330081257-7a8c9614432c
|
||||||
|
2
go.mod
2
go.mod
@ -2,4 +2,4 @@ module github.com/gohugoio/hugoDocs
|
|||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
require github.com/gohugoio/gohugoioTheme v0.0.0-20230124135550-462d5fe4a87f // indirect
|
require github.com/gohugoio/gohugoioTheme v0.0.0-20230330081257-7a8c9614432c // indirect
|
||||||
|
2
go.sum
2
go.sum
@ -59,3 +59,5 @@ github.com/gohugoio/gohugoioTheme v0.0.0-20230120185049-2c3c4d0ba232 h1:bEojKgKI
|
|||||||
github.com/gohugoio/gohugoioTheme v0.0.0-20230120185049-2c3c4d0ba232/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
|
github.com/gohugoio/gohugoioTheme v0.0.0-20230120185049-2c3c4d0ba232/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
|
||||||
github.com/gohugoio/gohugoioTheme v0.0.0-20230124135550-462d5fe4a87f h1:8wI3zOTWQG15aKkbAZQaoGnUQff46hO95opQndBHRE4=
|
github.com/gohugoio/gohugoioTheme v0.0.0-20230124135550-462d5fe4a87f h1:8wI3zOTWQG15aKkbAZQaoGnUQff46hO95opQndBHRE4=
|
||||||
github.com/gohugoio/gohugoioTheme v0.0.0-20230124135550-462d5fe4a87f/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
|
github.com/gohugoio/gohugoioTheme v0.0.0-20230124135550-462d5fe4a87f/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
|
||||||
|
github.com/gohugoio/gohugoioTheme v0.0.0-20230330081257-7a8c9614432c h1:TyHgmowfiMyxKrqTdRxm/yWIFeN7XRh7Hm6/dOG6yDA=
|
||||||
|
github.com/gohugoio/gohugoioTheme v0.0.0-20230330081257-7a8c9614432c/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user