Sha256: 560c9ddfcce5f704c5ad5a70dd7695e8ee6e09b9598175f221e7f58f8afd490e

Contents?: true

Size: 802 Bytes

Versions: 1

Compression:

Stored size: 802 Bytes

Contents

---
---
<!DOCTYPE html>
<html lang="{{ site.lang | default: 'en' }}">

  {% include head.html %}

  <body>

    <main class="page-content" aria-label="Content">
      <h1>404 Not Found!</h1>
      <p id="404-content">
        The page couldn't be found :(
      </p>
      {{ content }}
    </main>

    <script>
      function sleep(ms) {
        return new Promise(resolve => setTimeout(resolve, ms));
      }

      async function redirect() {
        console.log(window.location.pathname);
        if (window.location.pathname == '/') {
          $('#404-content').text("You're being redirected to the correct homepage of this site...");
          await sleep(1000);
          window.location.replace({{ '/' | relative_url }});
        }
      }

      redirect();
    </script>
  </body>

</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-docgen-1.1.3 _layouts/404-docgen.html