~jpgleeson/piaine

9c34046bcd7eae1a0985fe6b6c244e24e59a873b — Jack Gleeson 1 year, 5 days ago 9900746
FIX: More robust parsing of post type.

Fixing regression from last commit.
1 files changed, 3 insertions(+), 2 deletions(-)

M Program.cs
M Program.cs => Program.cs +3 -2
@@ 75,10 75,11 @@ namespace piaine
                post.date = pageConsumer.getPageDate();
                post.tags = pageConsumer.getPageTags();

                string thisPageType = pageConsumer.getPageTemplate();

                if (pageConsumer.getPageTemplate() != null)
                if (thisPageType != null)
                {
                    if (post.typeOfPage != pageType.post)
                    if (thisPageType != "post.html")
                    {
                        post.typeOfPage = pageType.staticpage;
                        if (File.Exists(pageConsumer.getPageTemplate()))