Fix author not being set

This commit is contained in:
Chris Josten 2020-06-26 11:43:55 +02:00
parent 1e24ed327a
commit ed5ef93be2

View file

@ -50,7 +50,7 @@ class Article : Page {
override protected void loadHeader(Node headerNode) {
super.loadHeader(headerNode);
this.m_author = headerNode.getOr!string("author", "<unknown author>");
this.m_author = headerNode.getOr!string("excerpt", null);
this.excerpt = headerNode.getOr!string("excerpt", null);
SysTime firstPublished;
firstPublished = headerNode.getOr!SysTime("firstPublished", SysTime(DateTime.fromSimpleString("0001-Jan-01 00:00:00")));