Class SitePaths

java.lang.Object
net.jonathangiles.tools.sitebuilder.util.SitePaths

public class SitePaths extends Object
  • Method Details

    • createRelativePath

      public static Path createRelativePath(Path basePath, Path file)
    • createRelativePath

      public static String createRelativePath(Path path)
    • createSlugDirStructure

      public static Consumer<SiteContent> createSlugDirStructure(String prefix, boolean createYearDirs)
      This approach will ignore the directory structure of the input files, instead creating directories based on the slugs contained within each post. It can optionally create directories for each year.