Package org.jbake.util
Class HtmlUtil
- java.lang.Object
-
- org.jbake.util.HtmlUtil
-
public class HtmlUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidfixImageSourceUrls(DocumentModel fileContents, JBakeConfiguration configuration)Image paths are specified as w.r.t.
-
-
-
Method Detail
-
fixImageSourceUrls
public static void fixImageSourceUrls(DocumentModel fileContents, JBakeConfiguration configuration)
Image paths are specified as w.r.t. assets folder. This function prefix site host to all img src except the ones that starts with http://, https://.If image path starts with "./", i.e. relative to the source file, then it first replace that with output file directory and the add site host.
- Parameters:
fileContents- Map representing file contentsconfiguration- Configuration object
-
-