Correctie voor ICS-ondersteuning bij events
This commit is contained in:
		
							parent
							
								
									f1d33cf834
								
							
						
					
					
						commit
						7a3ad83071
					
				
					 4 changed files with 33 additions and 3 deletions
				
			
		| 
						 | 
					@ -3,7 +3,7 @@
 | 
				
			||||||
# Voor de home-page maken we een HTML, RSS en JSON Feed
 | 
					# Voor de home-page maken we een HTML, RSS en JSON Feed
 | 
				
			||||||
# Secties alleen in HTML en voor pagina's in zowel HTML als CalendarEvent (iCAL) waar het van toepassing is
 | 
					# Secties alleen in HTML en voor pagina's in zowel HTML als CalendarEvent (iCAL) waar het van toepassing is
 | 
				
			||||||
home = ["HTML", "RSS", "JSON", "IndexNow", "SearchIndex"]
 | 
					home = ["HTML", "RSS", "JSON", "IndexNow", "SearchIndex"]
 | 
				
			||||||
section = ["HTML"]
 | 
					page = ["HTML"]
 | 
				
			||||||
page = ["HTML", "CalendarEvent"]
 | 
					section = ["HTML", "CalendarEvent"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# EOF
 | 
					# EOF
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										0
									
								
								themes/nluug/layouts/_default/section.ics
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								themes/nluug/layouts/_default/section.ics
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -64,7 +64,7 @@
 | 
				
			||||||
      <h2>Kalender</h2>
 | 
					      <h2>Kalender</h2>
 | 
				
			||||||
      <p>Zet het event alvast in je agenda met onderstaande opties!</p>
 | 
					      <p>Zet het event alvast in je agenda met onderstaande opties!</p>
 | 
				
			||||||
      <ul>
 | 
					      <ul>
 | 
				
			||||||
      {{ with .OutputFormats.Get "calendarevent" }}
 | 
					      {{ with .OutputFormats.Get "CalendarEvent" }}
 | 
				
			||||||
        <li><a href="{{ .RelPermalink }}">Importeren via iCal-bestand</a></li>
 | 
					        <li><a href="{{ .RelPermalink }}">Importeren via iCal-bestand</a></li>
 | 
				
			||||||
      {{ end }}
 | 
					      {{ end }}
 | 
				
			||||||
      <li><a href="https://www.google.com/calendar/render?action=TEMPLATE&text={{ .Params.event_title | urlquery }}&details=Locatie:%20{{ .Params.event_location | urlquery }}&location={{ .Params.event_address.street_address }}%2c%20{{ .Params.event_address.postal_code }}%2c%20{{ .Params.event_address.city }}%2c%20{{ .Params.event_address.country_name }}&dates={{ time.Format "20060102T150405" .Params.event_start }}/{{ time.Format "20060102T150405" .Params.event_end }}&ctz={{ .Params.event_timezone }}">Importeren naar Google-kalender</a></li>
 | 
					      <li><a href="https://www.google.com/calendar/render?action=TEMPLATE&text={{ .Params.event_title | urlquery }}&details=Locatie:%20{{ .Params.event_location | urlquery }}&location={{ .Params.event_address.street_address }}%2c%20{{ .Params.event_address.postal_code }}%2c%20{{ .Params.event_address.city }}%2c%20{{ .Params.event_address.country_name }}&dates={{ time.Format "20060102T150405" .Params.event_start }}/{{ time.Format "20060102T150405" .Params.event_end }}&ctz={{ .Params.event_timezone }}">Importeren naar Google-kalender</a></li>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										30
									
								
								themes/nluug/layouts/evenementen/schedule-event.ics
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								themes/nluug/layouts/evenementen/schedule-event.ics
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,30 @@
 | 
				
			||||||
 | 
					{{ if not (isset .Params "no-ics-file") }}{{ if (isset .Params "event_start") }}BEGIN:VCALENDAR
 | 
				
			||||||
 | 
					VERSION:2.0
 | 
				
			||||||
 | 
					CALSCALE:GREGORIAN
 | 
				
			||||||
 | 
					METHOD:PUBLISH
 | 
				
			||||||
 | 
					BEGIN:VTIMEZONE
 | 
				
			||||||
 | 
					TZID:Europe/Amsterdam
 | 
				
			||||||
 | 
					X-LIC-LOCATION:Europe/Amsterdam
 | 
				
			||||||
 | 
					BEGIN:DAYLIGHT
 | 
				
			||||||
 | 
					TZOFFSETFROM:+0100
 | 
				
			||||||
 | 
					TZOFFSETTO:+0200
 | 
				
			||||||
 | 
					TZNAME:CEST
 | 
				
			||||||
 | 
					DTSTART:19700329T020000
 | 
				
			||||||
 | 
					RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
 | 
				
			||||||
 | 
					END:DAYLIGHT
 | 
				
			||||||
 | 
					BEGIN:STANDARD
 | 
				
			||||||
 | 
					TZOFFSETFROM:+0200
 | 
				
			||||||
 | 
					TZOFFSETTO:+0100
 | 
				
			||||||
 | 
					TZNAME:CET
 | 
				
			||||||
 | 
					DTSTART:19701025T030000
 | 
				
			||||||
 | 
					RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
 | 
				
			||||||
 | 
					END:STANDARD
 | 
				
			||||||
 | 
					END:VTIMEZONE
 | 
				
			||||||
 | 
					BEGIN:VEVENT
 | 
				
			||||||
 | 
					SUMMARY:{{ .Params.event_title | default .Title }}
 | 
				
			||||||
 | 
					DESCRIPTION:Voor meer informatie zie {{ .Permalink }}
 | 
				
			||||||
 | 
					DTSTART;TZID=Europe/Amsterdam:{{ dateFormat "20060102T150405" .Params.event_start }}
 | 
				
			||||||
 | 
					DTEND;TZID=Europe/Amsterdam:{{ dateFormat "20060102T150405" .Params.event_end }}
 | 
				
			||||||
 | 
					{{ if .Params.event_address }}LOCATION:{{ .Params.event_address.street_address }}, {{ .Params.event_address.city }}, {{ .Params.event_address.country_name }}{{ end }}
 | 
				
			||||||
 | 
					END:VEVENT
 | 
				
			||||||
 | 
					END:VCALENDAR{{ end }}{{ end }}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue