diff --git a/source/nl/netsoj/chris/blog/model/page.d b/source/nl/netsoj/chris/blog/model/page.d index c3e71e5..833cf46 100644 --- a/source/nl/netsoj/chris/blog/model/page.d +++ b/source/nl/netsoj/chris/blog/model/page.d @@ -55,7 +55,7 @@ class Page { this.m_name = file; this.m_contentSource = readText(file); // Find the seperator and split the string in two - const uint seperatorIndex = cast(uint) lastIndexOf(m_contentSource, "---\n"); + const uint seperatorIndex = cast(uint) lastIndexOf(m_contentSource, "\n---\n"); enforce!ArticleParseException(seperatorIndex >= 0); string header = m_contentSource[0..seperatorIndex];