dummy testing for calendar logic
This commit is contained in:
		
							parent
							
								
									a9927edff4
								
							
						
					
					
						commit
						d94203aa15
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		
							
								
								
									
										5
									
								
								build.sh
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								build.sh
									
										
									
									
									
								
							| 
						 | 
					@ -3,6 +3,9 @@
 | 
				
			||||||
hugo $(cat .hugo-params)
 | 
					hugo $(cat .hugo-params)
 | 
				
			||||||
./tools/merge_cals.py
 | 
					./tools/merge_cals.py
 | 
				
			||||||
upcoming="$(tools/gen_upcoming.py static/all.ics 20 5 | tr '\n' ' ')"
 | 
					upcoming="$(tools/gen_upcoming.py static/all.ics 20 5 | tr '\n' ' ')"
 | 
				
			||||||
 | 
					echo $upcoming
 | 
				
			||||||
 | 
					cat public/index.html
 | 
				
			||||||
cp static/all.ics public/all.ics
 | 
					cp static/all.ics public/all.ics
 | 
				
			||||||
sed -i "s#CALENDAR#$upcoming#g" public/index.html
 | 
					sed -i "s#CALENDAR#$upcoming#g" public/index.html
 | 
				
			||||||
 | 
					cat public/index.html
 | 
				
			||||||
 | 
					echo $upcoming
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue