diff --git a/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Renderer.fusion b/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Renderer.fusion index 972a32ac..a0680d85 100644 --- a/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Renderer.fusion +++ b/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Renderer.fusion @@ -1,6 +1,4 @@ -prototype(Neos.NeosIo:PostRenderer) < prototype(Neos.Fusion:Template) { - templatePath = 'resource://Neos.NeosIo.Blog/Private/Fusion/Components/Post.Renderer.html' - +prototype(Neos.NeosIo:PostRenderer) < prototype(Neos.Fusion:Component) { node = ${node} datePublished = ${q(node).property('datePublished')} title = ${q(node).property('title')} @@ -15,17 +13,80 @@ prototype(Neos.NeosIo:PostRenderer) < prototype(Neos.Fusion:Template) { nodePath = 'main' } - backToListButton = Neos.NeosIo:Button { - style = 'btn--solidPrimary' - buttonLabel = 'Back to list' - alignment = 'Right' - link = Neos.Neos:NodeUri { + @private { + overviewUri = Neos.Neos:NodeUri { node = ${q(documentNode).parent().get(0)} absolute = true } - @process.contentElementWrapping > + latest = ${q(site).find('[instanceof Neos.NeosIo:Post]').remove(node).slice(0, 6).sort('datePublished', 'DESC').get()} } - latest = ${q(site).find('[instanceof Neos.NeosIo:Post]').remove(node).slice(0, 6).sort('datePublished', 'DESC').get()} -} + renderer = afx` +
+ +
+

+ +

+ +

+ +

+

+ + +  – Written by {author} + +

+
+
+
+ +
+ {props.content} +
+ +
+ ` +} diff --git a/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Renderer.html b/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Renderer.html deleted file mode 100644 index fec32849..00000000 --- a/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Renderer.html +++ /dev/null @@ -1,65 +0,0 @@ -{namespace neos=Neos\Neos\ViewHelpers}{namespace media=Neos\Media\ViewHelpers} -
-
- - - - -

- - - – Written by - - - - - -

- -
- -
-
- -
- {content -> f:format.raw()} -
- - -
diff --git a/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Short.fusion b/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Short.fusion index 32386142..de80405e 100644 --- a/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Short.fusion +++ b/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Short.fusion @@ -1,4 +1,22 @@ prototype(Neos.NeosIo:Post.Short) < prototype(Neos.NeosIo:PostRenderer) { - templatePath = 'resource://Neos.NeosIo.Blog/Private/Fusion/Components/Post.Short.html' content > + + renderer > + renderer = afx` + + +

+ {String.stripTags(props.title)} +

+
+
+

+ {props.summary} +

+
+
+
+ ` } diff --git a/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Short.html b/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Short.html deleted file mode 100644 index a252aeeb..00000000 --- a/DistributionPackages/Neos.NeosIo.Blog/Resources/Private/Fusion/Components/Post.Short.html +++ /dev/null @@ -1,49 +0,0 @@ -{namespace neos=Neos\Neos\ViewHelpers} -{namespace media=Neos\Media\ViewHelpers} - -
{datePublished -> f:format.date(localeFormatType: 'date', forceLocale: true)}
-

{title -> f:format.stripTags()}

- -
- - - - {title -> f:format.stripTags()} - - - {title -> f:format.stripTags()} - - - - -
-

- {summary -> f:format.raw()} -

-
-
-