Tidier
This commit is contained in:
		
							parent
							
								
									3f65f2ef14
								
							
						
					
					
						commit
						0d7dae6267
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -66,9 +66,10 @@ talks: | |||
| <h1>Talks</h1> | ||||
| 
 | ||||
| {% set now = 'now'|date('U') %} | ||||
| {% set talks = page.talks|reverse %} | ||||
| 
 | ||||
| {% set found = false %} | ||||
| {% for talk in page.talks|reverse if talk.date >= now %} | ||||
| {% for talk in talks if talk.date >= now %} | ||||
|   {% if loop.first %} | ||||
|     {% set found = true %} | ||||
|     <h2>Upcoming Talks</h2> | ||||
|  | @ -82,7 +83,7 @@ talks: | |||
| {% endif %} | ||||
| 
 | ||||
| {% set found = false %} | ||||
| {% for talk in page.talks|reverse if talk.date < now %} | ||||
| {% for talk in talks if talk.date < now %} | ||||
|   {% if loop.first %} | ||||
|     {% set found = true %} | ||||
|     <h2>Previous Talks</h2> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Oliver Davies
						Oliver Davies