A mirror of my website's source code.

Add redirects

by steve0greatness, Saturday, 20 January 2024, 06:14:22 (1705731262), pushed by steve0greatness, Monday, 6 May 2024, 02:55:35 (1714964135)

Author identity: Steve0Greatness <75220768+Steve0Greatness@users.noreply.github.com>

e1b02edb11fa19ba4b8e35c64a8cce798833d57b

build.py

@@ -209,6 +209,9 @@ if __name__ == "__main__":

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        RenderPage(file, path, False, PostList=PostList)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        continue
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    RenderPage(file, path, PostList=PostList)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            for OldLocation, NewLocation in REDIRECTS:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                RenderPage("redirect.html", OldLocation, False, redirect=NewLocation)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                with open(BUILD_DIRECTORY + "/sitemap.txt", "w") as SitemapFile:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    SitemapFile.write("\n".join(sitemap))