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 0000000..557e2bd Binary files /dev/null and b/static/img/reefsol.png differ 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\"}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@