| 
									
										
										
										
											2020-06-12 15:03:43 -05:00
										 |  |  | <%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later | 
					
						
							|  |  |  | # Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%> | 
					
						
							| 
									
										
										
										
											2019-08-19 12:55:38 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | <% schema = { | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  |   "@context": "http://schema.org", | 
					
						
							|  |  |  |   "@type": "Event", | 
					
						
							| 
									
										
										
										
											2019-08-19 12:55:38 -05:00
										 |  |  |   "name": @campaign.name , | 
					
						
							|  |  |  |   "description": @campaign.summary.present? ? @campaign.summary : @campaign.name , | 
					
						
							|  |  |  |   "url": url , | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  |   "location": { | 
					
						
							|  |  |  |     "@type": "Place", | 
					
						
							| 
									
										
										
										
											2019-08-19 12:55:38 -05:00
										 |  |  |     "name": @campaign.name , | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  |     "address": { | 
					
						
							|  |  |  |       "@type": "PostalAddress", | 
					
						
							| 
									
										
										
										
											2019-08-19 12:55:38 -05:00
										 |  |  |       "addressLocality": @nonprofit.city, | 
					
						
							|  |  |  |       "addressRegion": @nonprofit.state_code, | 
					
						
							|  |  |  |       "postalCode": @nonprofit.zip_code , | 
					
						
							|  |  |  |       "streetAddress":  @nonprofit.address | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  |     } | 
					
						
							|  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2019-08-19 12:55:38 -05:00
										 |  |  |   "startDate": @campaign.created_at | 
					
						
							|  |  |  | }  | 
					
						
							|  |  |  | %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script type="application/ld+json"> | 
					
						
							|  |  |  |   <%= raw(JSON::generate(schema)) %> | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  | </script> | 
					
						
							|  |  |  | 
 |