Sha256: a7c4d7d8a41e14afe83e0a13625ec8625fd2b598ff437feda9cf4216515cb809

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 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

3 entries across 3 versions & 1 rubygems

Version Path
minima-rock-0.9.3 _layouts/default.html
minima-rock-0.8.2 _layouts/default.html
minima-rock-0.8.1 _layouts/default.html