module Web.Site.Routes (dropExtensions) where
import Hakyll
import System.FilePath qualified as FilePath
dropExtensions :: Routes
dropExtensions :: Routes
dropExtensions = (Identifier -> FilePath) -> Routes
customRoute ((Identifier -> FilePath) -> Routes)
-> (Identifier -> FilePath) -> Routes
forall a b. (a -> b) -> a -> b
$ FilePath -> FilePath
FilePath.dropExtensions (FilePath -> FilePath)
-> (Identifier -> FilePath) -> Identifier -> FilePath
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Identifier -> FilePath
toFilePath