Sha256: 845d073d7ef70344d805e81c70159888078cf483fe8e6b34ddffb4f0610d1466

Contents?: true

Size: 938 Bytes

Versions: 24

Compression:

Stored size: 938 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 %}
        {{ page.calendar_date_elem | default: "h1" | jsonify }},
    );

    // 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

24 entries across 24 versions & 1 rubygems

Version Path
hematite-0.1.18 _layouts/calendar.html
hematite-0.1.17 _layouts/calendar.html
hematite-0.1.16 _layouts/calendar.html
hematite-0.1.15 _layouts/calendar.html
hematite-0.1.14 _layouts/calendar.html
hematite-0.1.13 _layouts/calendar.html
hematite-0.1.12 _layouts/calendar.html
hematite-0.1.11 _layouts/calendar.html
hematite-0.1.10 _layouts/calendar.html
hematite-0.1.9 _layouts/calendar.html
hematite-0.1.8 _layouts/calendar.html
hematite-0.1.7 _layouts/calendar.html
hematite-0.1.6 _layouts/calendar.html
hematite-0.1.5 _layouts/calendar.html
hematite-0.1.4 _layouts/calendar.html
hematite-0.1.3 _layouts/calendar.html
hematite-0.1.2 _layouts/calendar.html
hematite-0.0.12 _layouts/calendar.html
hematite-0.0.11 _layouts/calendar.html
hematite-0.0.10 _layouts/calendar.html