`feed.tmpl.xml` should be RSS2.0-conforming. Ideally each news item would have a date of publication, but RSS doesn't require it. I found it easier to copy `genblog.go` to `genfeed.go` than to shoehorn in feed logic to the blog generator. As such, `genfeed.go` might have some unnecessary stuff in it (though the go compiler didn't complain, so who knows?!). I also added the necessary machinery in `generate_homepage`. Of course, I did very minimal testing.
		
			
				
	
	
		
			12 lines
		
	
	
		
			406 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			406 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| #/town/src/townstats/townstats | /usr/local/bin/mustache /town/src/tildetown-scripts/tildetown/templates/frontpage.html > /var/www/tilde.town/index.html
 | |
| 
 | |
| cd /town/src/tilde.town
 | |
| /usr/bin/go run genblog.go > blog.html
 | |
| /usr/bin/go run genfeed.go > blog.xml
 | |
| /usr/bin/go run genusers.go > users.html
 | |
| /bin/cp index.html blog.html blog.xml users.html blog.css style.css /var/www/tilde.town/
 |