Ignore folders with content
This commit is contained in:
parent
76ea5885dd
commit
e73f6e9316
11 changed files with 6 additions and 109 deletions
|
@ -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; }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue