1
4
Fork 1
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
643 B
HTML

{% extends "base.html" %}
{% block title %}{{ config.title }} — {{ page.title }}{% endblock title %}
{% block content %}
<main class="recipe">
<h2>{{ page.title | upper }}</h2>
<hr>
{{ macro::recipe_image() }}
<div class="meta">
{{ macro::recipe_meta() }}
</div>
{{ page.content | safe }}
<hr>
{{ macro::recipe_taxonomies() }}
</main>
{% endblock content %}
{% block script %}
<script>
let list_items = document.querySelectorAll('ol li');
for(let i=0; i<list_items.length; i++){
list_items[i].addEventListener('click', function(){ this.classList.toggle("completed"); }, false);
}
</script>
{% endblock script %}