diff --git a/guides/_layouts/default.html b/guides/_layouts/default.html index fa176168ac..dd012153ff 100644 --- a/guides/_layouts/default.html +++ b/guides/_layouts/default.html @@ -31,12 +31,17 @@ localStorage.setItem("prefersDarkScheme", "true") } } - console.log(toggle, prefersDarkSchemeSetting, prefersDarkScheme) if (prefersDarkScheme) { document.body.classList.add('dark-theme'); + document.querySelectorAll(".graphql-ruby-img").forEach(function(el) { + el.src = "{{ site.baseurl }}/graphql-ruby-dark.png" + }) } else { document.body.classList.remove('dark-theme'); + document.querySelectorAll(".graphql-ruby-img").forEach(function(el) { + el.src = "{{ site.baseurl }}/graphql-ruby.png" + }) } } @@ -46,7 +51,7 @@
+ diff --git a/guides/index.html b/guides/index.html index e4f2467c74..32af37947f 100644 --- a/guides/index.html +++ b/guides/index.html @@ -3,7 +3,7 @@ ---
- GraphQL Ruby Logo + GraphQL Ruby Logo

GraphQL Ruby