Ignore folders with content

This commit is contained in:
Chris Josten 2020-06-25 00:23:02 +02:00
parent 76ea5885dd
commit e73f6e9316
11 changed files with 6 additions and 109 deletions

View file

@ -20,6 +20,7 @@ class Project : Page {
protected string m_icon;
protected string[] m_images;
protected string m_description;
protected string m_sourceCode;
/**
* Creates a project from a file
@ -38,6 +39,7 @@ class Project : Page {
this.m_images = headerNode.getArray!string("images", [])
.map!(x => PROJECT_IMAGE_DIR ~ x).array;
this.m_description = headerNode.getOr!string("description", "<no description>");
this.m_sourceCode = headerNode.getOr!string("sourceCode", null);
}
@property string state() { return m_state; }
@ -46,5 +48,6 @@ class Project : Page {
@property string icon() { return m_icon; }
@property string[] images() { return m_images; }
@property string description() { return m_description; }
@property string sourceCode() { return m_sourceCode; }
}