-
Notifications
You must be signed in to change notification settings - Fork 4
/
Post.fusion
49 lines (44 loc) · 1.87 KB
/
Post.fusion
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
prototype(Breadlesscode.Blog:Document.Post) >
prototype(Breadlesscode.Blog:Document.Post) < prototype(Neos.Neos:Page) {
@context.author = ${ Blog.getUserByIdentifier(q(node).property('author')) }
body >
body = Neos.Fusion:Tag {
content = Neos.Fusion:Array {
article = Neos.Fusion:Tag {
tagName = 'article'
attributes.class = 'blog_post'
content = Neos.Fusion:Array {
heading = Neos.Fusion:Tag {
tagName = 'h1'
content = ${ q(node).property('title') }
attributes.class = 'blog_post__title'
}
content = Neos.Neos:ContentCollection {
nodePath = 'main'
attributes.class = 'blog_post__content'
}
details = Neos.Fusion:Tag {
attributes.class = 'blog_post__details'
content = Neos.Fusion:Array {
createdBy = ${ author.label + ' • ' }
createdAt = Neos.Fusion:Tag {
tagName = 'time'
content = ${Date.format(q(node).property('datePublished'), 'r')}
}
}
content.@process.wrapInParagraph = ${ '<p>' + value + '</p>' }
}
}
}
comments = Neos.Fusion:Tag {
tagName = 'section'
attributes.class = 'blog_comments'
content = Neos.Fusion:Array {
form = Breadlesscode.Blog:Form.BlogComment
comments = Breadlesscode.Commentable:Collection.Comment
}
}
}
@position = 'after bodyTag'
}
}