ds-site/Resources/Private/Partials/BlogPostHeader.html

21 lines
702 B
HTML
Raw Normal View History

2019-11-15 13:17:22 +01:00
<html xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<header>
<h1>{f:if(
condition: link,
then: '<a href="{link}">{title}</a>',
else: title
)}</h1>
<p>
Published: <time>{blogPost.lastUpdated -> f:format.date(format: 'Y-m-d')}</time>,
Updated: <time>{blogPost.SYS_LASTCHANGED -> f:format.date(format: 'Y-m-d')}</time>
</p>
<p>Tested with TYPO3:
<f:for each="{compatibleWith}" as="version" iteration="i">
{version.data.title}{f:if(condition: '!{i.isLast}', then: ',')}
</f:for>
</p>
</header>
</html>