protected void wikiProfile() { ext.use(NoTransformer.class).withRole("parse"); ext.use(new DateParser("yyyy-MM-dd HH:mm:ss Z")); ext.use(SyntaxTransformer.class).withRole("syntax"); ext.use(ContentClassifier.class); ext.use(ArchiveIndex.class); ext.use(SiteUpdated.class); ext.use(TemplateContentTransformer.class) .withRole("template") .forContent(not(prop("class", "template"))); ext.use(TemplateContentTransformer.class).forContent(prop("class", "template")); ext.use(TemplateLayoutTransformer.class).withRole("layout"); ext.use(HandlebarsTemplateLanguage.class).withRole("default"); ext.use(PegdownSyntax.class).withRole("md"); ext.use(PegdownSyntax.class).withRole("markdown"); ext.use(SimpleSyntax.class).withRole("html"); ext.use(new HighlightJsHighlighter().withStyle("idea")); }
protected void blogProfile() { ext.use(NoTransformer.class).withRole("parse"); ext.use(new MetadataTransfromer("class", "post")).forContent(path("_posts/.*")); ext.use(new MetadataTransfromer("layout", "post")).forContent(path("_posts/.*")); ext.use(new JekyllDateParser()).forContent(prop("class", "post")); ext.use(new ShortUrlTransformer()).forContent(prop("class", "post")); ext.use(SyntaxTransformer.class).withRole("syntax"); ext.use(ContentClassifier.class); ext.use(ArchiveIndex.class); ext.use(SiteUpdated.class); ext.use(TemplateContentTransformer.class) .withRole("template") .forContent(not(prop("class", "template"))); ext.use(TemplateContentTransformer.class).forContent(prop("class", "template")); ext.use(TemplateLayoutTransformer.class).withRole("layout"); ext.use(HandlebarsTemplateLanguage.class).withRole("default"); ext.use(PegdownSyntax.class).withRole("md"); ext.use(PegdownSyntax.class).withRole("markdown"); ext.use(SimpleSyntax.class).withRole("html"); ext.use(SimpleSyntax.class).withRole("xml"); ext.use(new HighlightJsHighlighter().withStyle("idea")); }