|
36 | 36 | <p> |
37 | 37 | <a href="/">Home</a> |
38 | 38 |
|
39 | | - {% for index, year in years %} |
40 | | - {% if year.participants | length %} |
41 | | - · <a href="{{ index | slugify }}.html">{{ index }}</a> |
| 39 | + {% for edition in editions %} |
| 40 | + {% if edition.participants | length %} |
| 41 | + · <a href="{{ edition.year | slugify }}.html">{{ edition.year }}</a> |
42 | 42 | {% else %} |
43 | | - · {{ index }} |
| 43 | + · {{ edition.year }} |
44 | 44 | {% endif %} |
45 | 45 | {% endfor %} |
46 | 46 | </p> |
47 | 47 |
|
48 | 48 | <h3>Kudos to these websites who got naked in {{ year }}!</h3> |
49 | 49 |
|
50 | 50 | <ol> |
51 | | - {# We use both years and participants as Global Data. #} |
52 | | - {% for index, websites in years[year].participants %} |
53 | | - {% set participant = participants[index] %} |
| 51 | + {# We use both editions and participants as Global Data. #} |
| 52 | + {% for edition in editions %} |
| 53 | + {% if edition.year === year %} |
| 54 | + {% for filename, websites in edition.participants %} |
| 55 | + {% set participant = participants[filename] %} |
54 | 56 |
|
55 | | - <li> |
56 | | - {%- if websites | length === 1 -%} |
57 | | - {% linkNoSpam 'getParticipantDisplayName', websites[0], participant, year %} |
58 | | - {%- else -%} |
59 | | - {{ participant | getParticipantDisplayName }}: |
| 57 | + <li> |
| 58 | + {%- if websites | length === 1 -%} |
| 59 | + {% linkNoSpam 'getParticipantDisplayName', websites[0], participant, year %} |
| 60 | + {%- else -%} |
| 61 | + {{ participant | getParticipantDisplayName }}: |
60 | 62 |
|
61 | | - {% for website in websites -%} |
62 | | - {% linkNoSpam 'getSiteTitle', website, participant, year, loop.index0 %} |
63 | | - {%- endfor %} |
64 | | - {% endif %} |
65 | | - </li> |
| 63 | + {% for website in websites -%} |
| 64 | + {% linkNoSpam 'getSiteTitle', website, participant, year, loop.index0 %} |
| 65 | + {%- endfor %} |
| 66 | + {% endif %} |
| 67 | + </li> |
| 68 | + {% endfor %} |
| 69 | + {% endif %} |
66 | 70 | {% endfor %} |
67 | 71 | </ol> |
68 | 72 |
|
|
0 commit comments