diff --git a/src/Pretzel.Logic/Templating/JekyllEngineBase.cs b/src/Pretzel.Logic/Templating/JekyllEngineBase.cs index 5e7aa9a41..1878f68a2 100644 --- a/src/Pretzel.Logic/Templating/JekyllEngineBase.cs +++ b/src/Pretzel.Logic/Templating/JekyllEngineBase.cs @@ -39,7 +39,7 @@ public abstract class JekyllEngineBase : ISiteEngine [Import(AllowDefault = true)] private ILightweightMarkupEngine _lightweightMarkupEngine; - + public abstract void Initialize(); protected abstract void PreProcess(); @@ -211,22 +211,6 @@ private void ProcessFile(string outputDirectory, Page page, Page previous, Page continue; } - try - { - context.FullContent = RenderTemplate(context.FullContent, context); - } - catch (Exception ex) - { - if (!skipFileOnError) - { - var message = string.Format("Failed to process {0}, see inner exception for more details", context.OutputPath); - throw new PageProcessingException(message, ex); - } - - Console.WriteLine(@"Failed to process {0}: {1}", context.OutputPath, ex); - continue; - } - CreateOutputDirectory(context.OutputPath); FileSystem.File.WriteAllText(context.OutputPath, context.FullContent); } @@ -242,7 +226,7 @@ private string RenderContent(string file, string contents) html = Path.GetExtension(file).IsMarkdownFile() ? _lightweightMarkupEngine.Convert(contentsWithoutHeader).Trim() : contentsWithoutHeader; - + if (ContentTransformers != null) { html = ContentTransformers.Aggregate(html, (current, contentTransformer) => contentTransformer.Transform(current));