diff --git a/src/Pretzel.Logic/Extensions/YamlExtensions.cs b/src/Pretzel.Logic/Extensions/YamlExtensions.cs index 9e1fe3a2b..871fb0f7b 100644 --- a/src/Pretzel.Logic/Extensions/YamlExtensions.cs +++ b/src/Pretzel.Logic/Extensions/YamlExtensions.cs @@ -1,7 +1,9 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.Text.RegularExpressions; using YamlDotNet.RepresentationModel; using System.IO; +using System.Linq; using YamlDotNet.Serialization; namespace Pretzel.Logic.Extensions @@ -107,7 +109,7 @@ public static string ExcludeHeader(this string text) if (m.Count == 0) return text; - return text.Replace(m[0].Groups[0].Value, "").Trim(); + return text.Replace(m[0].Groups[0].Value, "").TrimStart('\r', '\n').TrimEnd(); } } } diff --git a/src/Pretzel.Logic/Pretzel.Logic.csproj b/src/Pretzel.Logic/Pretzel.Logic.csproj index eea2e8c80..cfc7d56dc 100644 --- a/src/Pretzel.Logic/Pretzel.Logic.csproj +++ b/src/Pretzel.Logic/Pretzel.Logic.csproj @@ -37,6 +37,9 @@ False ..\packages\AjaxMin.5.13.5463.15282\lib\net40\AjaxMin.dll + + ..\packages\CommonMark.NET.0.8.0\lib\net40-client\CommonMark.dll + ..\packages\DotlessClientOnly.1.4.1.0\lib\dotless.ClientOnly.dll @@ -46,10 +49,6 @@ ..\packages\HtmlAgilityPack.1.4.9\lib\Net40\HtmlAgilityPack.dll - - False - ..\packages\MarkdownDeep.NET.1.5\lib\.NetFramework 3.5\MarkdownDeep.dll - ..\packages\NDesk.Options.0.2.1\lib\NDesk.Options.dll @@ -134,11 +133,6 @@ True RazorCsProject.resx - - True - True - Resources.resx - @@ -154,6 +148,11 @@ True RazorWiki.resx + + True + True + Resources.resx + @@ -198,7 +197,7 @@ ResXFileCodeGenerator Designer - Resources1.Designer.cs + Resources.Designer.cs ResXFileCodeGenerator @@ -211,6 +210,7 @@ ResXFileCodeGenerator RazorWiki.Designer.cs + Designer diff --git a/src/Pretzel.Logic/Properties/Resources1.Designer.cs b/src/Pretzel.Logic/Properties/Resources.Designer.cs similarity index 89% rename from src/Pretzel.Logic/Properties/Resources1.Designer.cs rename to src/Pretzel.Logic/Properties/Resources.Designer.cs index 7193d5993..d21091627 100644 --- a/src/Pretzel.Logic/Properties/Resources1.Designer.cs +++ b/src/Pretzel.Logic/Properties/Resources.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.17372 +// Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -60,6 +60,9 @@ internal Resources() { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// internal static System.Drawing.Bitmap _25 { get { object obj = ResourceManager.GetObject("_25", resourceCulture); @@ -67,6 +70,9 @@ internal static System.Drawing.Bitmap _25 { } } + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// internal static System.Drawing.Icon faviconico { get { object obj = ResourceManager.GetObject("faviconico", resourceCulture); @@ -74,6 +80,9 @@ internal static System.Drawing.Icon faviconico { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// internal static System.Drawing.Bitmap faviconpng { get { object obj = ResourceManager.GetObject("faviconpng", resourceCulture); @@ -81,6 +90,9 @@ internal static System.Drawing.Bitmap faviconpng { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// internal static System.Drawing.Bitmap logo { get { object obj = ResourceManager.GetObject("logo", resourceCulture); @@ -128,10 +140,7 @@ internal static System.Drawing.Bitmap logo { ///li ///{ /// margin:0; - /// padding:0; - /// list-style-type:none; - ///} - ///.entry [rest of string was truncated]";. + /// padd [rest of string was truncated]";. /// internal static string Style { get { diff --git a/src/Pretzel.Logic/Resources/Liquid/FirstPost.liquid b/src/Pretzel.Logic/Resources/Liquid/FirstPost.liquid index abafcc08e..b8a3d8b87 100644 --- a/src/Pretzel.Logic/Resources/Liquid/FirstPost.liquid +++ b/src/Pretzel.Logic/Resources/Liquid/FirstPost.liquid @@ -7,4 +7,12 @@ comments: true ## Hello world... +```cs +static void Main() +{ + Console.WriteLine("Hello World!"); +} +``` + + This is my first post on the site! \ No newline at end of file diff --git a/src/Pretzel.Logic/Resources/Liquid/Index.liquid b/src/Pretzel.Logic/Resources/Liquid/Index.liquid index 365d0d8a9..6ae94c915 100644 --- a/src/Pretzel.Logic/Resources/Liquid/Index.liquid +++ b/src/Pretzel.Logic/Resources/Liquid/Index.liquid @@ -9,7 +9,6 @@ title : SiteName {% if forloop.first and post.layout == "post" %} {{ post.title }} - {{ post.date | date: "%e %B, %Y" }} {% for tag in post.tags %} @@ -17,7 +16,6 @@ title : SiteName {% endfor %} - {{ post.content }} Comments @@ -31,7 +29,6 @@ title : SiteName {{ post.content }} - Comments {% endif %} diff --git a/src/Pretzel.Logic/Resources/Liquid/Layout.liquid b/src/Pretzel.Logic/Resources/Liquid/Layout.liquid index b35f77f4b..89e8b1dad 100644 --- a/src/Pretzel.Logic/Resources/Liquid/Layout.liquid +++ b/src/Pretzel.Logic/Resources/Liquid/Layout.liquid @@ -5,10 +5,10 @@ - {{ page.title }} + @@ -26,7 +26,8 @@ {{content}} - + +