~yaroslav/saucesource.cc

ref: 0fc304c732ea17cf50d394e14414afa4a86d8401 saucesource.cc/templates/archive.html -rw-r--r-- 904 bytes
0fc304c7Yaroslav de la Peña Smirnov Updated REAMDE 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% extends "base.html" %}
{% block title %}Recipes archive — {{ config.title }}{% endblock %}
{% block h1title %}
<h1>{{ trans(key="archive_title", lang=lang) }}</h1>
{% endblock %}
{% block body %}
{% if lang != "en" %}
{% set section_path = "recipes/_index." ~ lang ~ ".md" %}
{% else %}
{% set section_path = "recipes/_index.md" %}
{% endif %}
{% set section = get_section(path=section_path) %}
<p>
<i>Tip: If you want to search for some recipe, try using your browsers "Find"
	function. In most browsers you can open it with Ctrl+F or F3.</i>
</p>
<div class="recipe-container">
	{% for year, recipes in section.pages | group_by(attribute="year") %}
	<h2>{{ year }}</h2>
	<ul>
	{% for recipe in recipes %}
	<li>
		<span class="publish-date">{{ recipe.date | date }}</span> - 
		<a href="{{ recipe.permalink }}">{{ recipe.title }}</a>
	</li>
	{% endfor %}
	</ul>
	{% endfor %}
</div>
{% endblock %}