From bd57c6fbf502e13990c13d2b515253e7e733752a Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Fri, 28 Jul 2023 13:21:57 +0200 Subject: [PATCH] Fix date format below headlines --- Sources/Generator/Generators/PageContentGenerator.swift | 2 +- Sources/Generator/Templates/Filled/LocalizedSiteTemplate.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Generator/Generators/PageContentGenerator.swift b/Sources/Generator/Generators/PageContentGenerator.swift index d536a3d..506b66b 100644 --- a/Sources/Generator/Generators/PageContentGenerator.swift +++ b/Sources/Generator/Generators/PageContentGenerator.swift @@ -99,7 +99,7 @@ struct PageContentGenerator { // For images: ![*large* left_title](file right_title) // For videos: ![option1,option2,...](file) // For svg with custom area: ![x,y,width,height](file.svg) - // For downloads: ![download](file1, text1; file2, text2, ...) + // For downloads: ![download](file1, text1; file2, text2, (download-name); ...) // For a simple boxes: ![box](title;body) // A fancy page link: ![page](page_id) // External pages: ![external](url1, text1; url2, text2, ...) diff --git a/Sources/Generator/Templates/Filled/LocalizedSiteTemplate.swift b/Sources/Generator/Templates/Filled/LocalizedSiteTemplate.swift index 6b98904..61a9318 100644 --- a/Sources/Generator/Templates/Filled/LocalizedSiteTemplate.swift +++ b/Sources/Generator/Templates/Filled/LocalizedSiteTemplate.swift @@ -51,7 +51,7 @@ struct LocalizedSiteTemplate { self.month = df2 let df3 = DateFormatter() - df3.dateFormat = "dd" + df3.dateFormat = "d" df3.locale = Locale(identifier: language) self.day = df3