Evaluation of the ical data uses the local time when formating the output string as the input data uses UTC.
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			527 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			527 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{- index .Site.Data "calendar.json" }}
 | |
| <table>
 | |
|   <thead>
 | |
|     <tr>
 | |
|       <td>Datum</td>
 | |
|       <td>Titel</td>
 | |
|       <td>Ort</td>
 | |
|     </tr>
 | |
|   </thead>
 | |
|   <tbody>
 | |
|   {{- range first 7 (sort $.Site.Data.calendar "dtstart" ) }}
 | |
|     {{- if eq ._type "vevent"}}
 | |
|     <tr>
 | |
|       {{- $start := time .dtstart }}
 | |
|       <td style="font-variant-numeric: tabular-nums;">{{ $start.Local.Format "Mon, 2006-01-02 15:04" }}</td>
 | |
|       <td>{{ .summary }}</td>
 | |
|       <td>{{ .location }}</td>
 | |
|     </tr>
 | |
|     {{- end }}
 | |
|   {{- end }}
 | |
|   </tbody>
 | |
| </table>
 |