forked from Code52/pretzel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPage.cs
35 lines (32 loc) · 1.03 KB
/
Page.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using DotLiquid;
namespace Pretzel.Logic.Templating.Context
{
public class Page : Drop
{
public Page()
{
Bag = new Dictionary<string, object>();
Categories = new List<string>();
Tags = new List<string>();
}
public string Title { get; set; }
public string Url { get; set; }
public DateTime Date { get; set; }
public string Id { get; set; }
public IEnumerable<string> Categories { get; set; }
public IEnumerable<string> Tags { get; set; }
public string Content { get; set; }
public string Excerpt { get; set; }
public string Filepath { get; set; }
public IDictionary<string, object> Bag { get; set; }
public IEnumerable<Page> DirectoryPages { get; set; }
public string File { get; set; }
public string OutputFile { get; set; }
public string Layout
{
get { return (string)Bag["layout"]; }
}
}
}