Sha256: 22502d9c798dbef0ff54cf0e0d744000c07a7a3ebc4f011c0e2af205a855b0a3

Contents?: true

Size: 742 Bytes

Versions: 7

Compression:

Stored size: 742 Bytes

Contents

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

  {%- include head.html -%}

  <body>

    {%- include header.html -%}

    <main class="page-content" aria-label="Content">
      <div class="wrapper">
        {{ content }}
      </div>
    </main>

    {%- include footer.html -%}

  </body>

  {% if site.data.backgrounds %}
    <script>
      const imgs = [
        {%- for item in site.data.backgrounds -%}
          '{{ item.name }}',
        {%- endfor -%}
      ];
      const date = new Date();
      const index = date.getDay() % imgs.length;
      document.body.style.backgroundImage = `url('{{ site.baseurl }}${imgs[index]}')`;
    </script>
  {% endif %}
</html>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
minima-rock-0.11.0 _layouts/default.html
minima-rock-0.10.0 _layouts/default.html
minima-rock-0.9.5 _layouts/default.html
minima-rock-0.9.4 _layouts/default.html
minima-rock-0.9.2 _layouts/default.html
minima-rock-0.9.1 _layouts/default.html
minima-rock-0.9.0 _layouts/default.html