Reverse the order for upcoming talks
This commit is contained in:
		
							parent
							
								
									7eec6675ee
								
							
						
					
					
						commit
						14ce792f2d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -15,12 +15,12 @@ use: | |||
| {% set found = false %} | ||||
| {% set year = 0 %} | ||||
| {% set now = 'now'|date_modify('-2 days')|date('U') %} | ||||
| {% for talk in data.talks if talk.date >= now %} | ||||
| {% for talk in data.talks|reverse if talk.date >= now %} | ||||
|     {% if loop.first %} | ||||
|         {% set found = true %} | ||||
|         <h2>Upcoming Talks</h2> | ||||
|     {% endif %} | ||||
|      | ||||
| 
 | ||||
|     {% if talk.date|date('Y') != year %} | ||||
|         {% set year = talk.date|date('Y') %} | ||||
|         </ul> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue