From 69de7ca9540a856569070bd4878ab04665f3c500 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 29 Jan 2024 17:20:04 +0100 Subject: [PATCH] Clean up sponsor listing --- content/_index.md | 1 + content/security.md | 1 + script/sponsors/sponsors.go | 35 +++++++--- static/img/reefsol-dark.svg | 62 ------------------ static/img/reefsol-light.svg | 62 ------------------ static/img/reefsol.png | Bin 0 -> 7534 bytes .../layouts/partials/github-sponsors.html | 29 +++++++- .../layouts/partials/static-sponsors.html | 6 -- .../default/layouts/shortcodes/sponsors.html | 1 - 9 files changed, 55 insertions(+), 142 deletions(-) delete mode 100644 static/img/reefsol-dark.svg delete mode 100644 static/img/reefsol-light.svg create mode 100644 static/img/reefsol.png delete mode 100644 themes/default/layouts/partials/static-sponsors.html diff --git a/content/_index.md b/content/_index.md index a16d2e5..e8b6d3b 100644 --- a/content/_index.md +++ b/content/_index.md @@ -84,3 +84,4 @@ along the way. {{% /row %}} {{% support %}} +{{% sponsors %}} diff --git a/content/security.md b/content/security.md index aa23fb1..1f1b941 100644 --- a/content/security.md +++ b/content/security.md @@ -66,3 +66,4 @@ gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. ``` +{{% sponsors %}} diff --git a/script/sponsors/sponsors.go b/script/sponsors/sponsors.go index b2ff35f..8691c70 100644 --- a/script/sponsors/sponsors.go +++ b/script/sponsors/sponsors.go @@ -21,6 +21,30 @@ const sponsorsOutput = `{{range .}} var sponsorsOutputTpl = template.Must(template.New("sponsorsOutputTpl").Parse(sponsorsOutput)) +// Static sponsors (predate Github Sponsors) +var staticSponsors = []sponsor{ + { + Amount: 1000 * 100, + Name: "Kastelo", + AvatarURL: "https://cdn.kastelo.net/prm/civ3ci-shield-blue-padded-white-512.png", + LinkURL: "https://kastelo.net/", + }, + { + Amount: 100 * 100, + Name: "REEF Solutions", + AvatarURL: "/img/reefsol.png", + LinkURL: "https://reefsolutions.com/", + }, +} + +type sponsor struct { + Amount int + Name string + Login string + AvatarURL string + LinkURL string +} + func main() { src := oauth2.StaticTokenSource( &oauth2.Token{AccessToken: os.Getenv("GITHUB_TOKEN")}, @@ -70,16 +94,7 @@ func main() { "cursor": (*githubv4.String)(nil), } - type sponsor struct { - Amount int - Name string - Login string - AvatarURL string - LinkURL string - } - - var sponsors []sponsor - + sponsors := staticSponsors for { if err := client.Query(context.Background(), &query, vars); err != nil { fmt.Println(err) diff --git a/static/img/reefsol-dark.svg b/static/img/reefsol-dark.svg deleted file mode 100644 index 0f4a5b7..0000000 --- a/static/img/reefsol-dark.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/static/img/reefsol-light.svg b/static/img/reefsol-light.svg deleted file mode 100644 index ca94a35..0000000 --- a/static/img/reefsol-light.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/static/img/reefsol.png b/static/img/reefsol.png new file mode 100644 index 0000000000000000000000000000000000000000..557e2bded5ebd7aed79dce821056cd9fa52c749e GIT binary patch literal 7534 zcmaKRcQ~9+_qR^;5)uTfmxN{Y9;~uhWeFlWt9OgldkYexmk^z35iM#&jozbo(YxsF z-8{eN`~2QN-sioq>%M31xz72VGc#w-oHG-pp{7WLPlJz!hDHQY0>e} zG5t%!gLH64aigJ0NF$w1&F$a_fEnD%#!-^#u<1J!z{Wz7Nmmfc3w4%*TiYmkyTY}+ z)wIpM?aW0jn53lu5=b!=fCC(13P3v8JGzM>C7J$(D~787Z3Z#{{zZbYlVtiIrSza0 z068aDI6#z#kK3G=mk%I}stE{zL_|e}g@s=LK)fJ+Ag>S*B*+co7ZVf~;}Zb<`(Z*! zbhWS)gMk(PEf4i4$z+W{IEw*+o}QjOp8Pycu2w)kQBhGKF9-+%aib`>-MkzTrbuo_ zH|Bp3z;HKnR~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u({3BZy`7!ya=@cEoBL|TFN>+R=8u4~;(7E* zymM_ySu^Lm2=O`bjmr8Cea)$=@SGY`f#p{_M|pzv>;-`L$G95!Sn zi#9%XHHyScrpLc>1H{rWs=q9gT|($3yZcN^iqjK1G7)j=PF)oM~^|N7WYLZ#vzQmJmWX=~Bt#<^M%(EYx6w`1j3M!9h# z2>{tF zAx}7A9EM7xvt17UeD0~f*cuGoAL+CzrVq>+x8=&FZz<7M&b|1p=+wHg3uSn6JCIXR z`)b2napKp4oZ(8g4~aXrBmMpQ=8Bx5=jJ#Dx|L#4(M?c*#h*cjo$FsiI#fN_y1Jii zh~Qm~nR}b>2)aX#9&dkJ4ju96(vay!XYp$EAeN#%KA8WUezCpO$#{x-?t~<{(YO$a<=<`^%Sk&JtWksCcy3Q4Jbrj4O}5> H68wJv{#_8# literal 0 HcmV?d00001 diff --git a/themes/default/layouts/partials/github-sponsors.html b/themes/default/layouts/partials/github-sponsors.html index a24ebeb..e59c32d 100644 --- a/themes/default/layouts/partials/github-sponsors.html +++ b/themes/default/layouts/partials/github-sponsors.html @@ -1 +1,28 @@ -non-200 OK status code: 401 Unauthorized body: "{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/graphql\"}" + + + Kastelo + + + + Jono + + + + 11sync.net + + + + Hireworks + + + + Möbius Sync for iOS + + + + REEF Solutions + + + + funnel-io + diff --git a/themes/default/layouts/partials/static-sponsors.html b/themes/default/layouts/partials/static-sponsors.html deleted file mode 100644 index fc78ef3..0000000 --- a/themes/default/layouts/partials/static-sponsors.html +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/themes/default/layouts/shortcodes/sponsors.html b/themes/default/layouts/shortcodes/sponsors.html index 2ada799..8300868 100644 --- a/themes/default/layouts/shortcodes/sponsors.html +++ b/themes/default/layouts/shortcodes/sponsors.html @@ -3,6 +3,5 @@
Sponsors
- {{ partial "static-sponsors.html" }} {{ partial "github-sponsors.html" }}