Sha256: 51b3114623d54e7a93fa29afe7fb228eff8c2878e061ddba32b4309759feae6f

Contents?: true

Size: 871 Bytes

Versions: 5

Compression:

Stored size: 871 Bytes

Contents

---
layout: default
---

<h1>{{ page.title }}</h1>
<h2 id="calendar_title"></h2>
<div id="calendar_display" class='visual-calendar'></div>

<main>
{{ content }}
</main>

<script type="module">
    import calendarSetup from "{{ 'assets/js/layout/calendar.mjs' | relative_url }}";
    calendarSetup(
        document.querySelector("main"),
        document.querySelector("#calendar_display"),
        {% if page.show_calendar_title %}
        document.querySelector("#calendar_title"),
        {% else %}
        null,
        {% endif %}
        {% if page.include_posts %}
        true
        {% else %}
        false
        {% endif %}
    );

    // Remove the title if we're not using it — it can mess with
    // screen readers
    {% if page.show_calendar_title %}
    {% else %}
    document.querySelector("#calendar_title").remove();
    {% endif %}
</script>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hematite-0.0.5 _layouts/calendar.html
hematite-0.0.4 _layouts/calendar.html
hematite-0.0.3 _layouts/calendar.html
hematite-0.0.2 _layouts/calendar.html
hematite-0.0.1 _layouts/calendar.html