By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

Fix date parsing

roundabout,
created on Friday, 27 December 2024, 09:24:01 (1735291441), received on Friday, 27 December 2024, 09:24:15 (1735291455)
Author identity: vlad <vlad.muntoiu@gmail.com>

e652f82d19410648c223d3ca8db2481acb3f7d13

ampoule_ssg/__init__.py

@@ -53,7 +53,7 @@ class Document:

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                print(self.front_matter, type(self.front_matter))
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                if "DATE" in self.front_matter:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                                self.date = parse_date_string(self.front_matter["DATE"])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                                self.date = _parse_date_string(self.front_matter["DATE"])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                            elif front_matter_enabled:   # put it back
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                                self.content = initial_line