ds-site/Resources/Private/Templates/Page/BlogPost.html

82 lines
2.8 KiB
HTML
Raw Normal View History

2019-11-13 23:40:26 +01:00
<html xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<f:layout name="Default" />
<f:section name="Content">
2019-11-15 00:27:23 +01:00
<header>
<h1>Blog Post</h1>
</header>
<article class="single-blog-post">
2019-11-15 13:17:22 +01:00
{f:render(partial: 'BlogPostHeader', arguments: {
title: data.title,
blogPost : data,
compatibleWith: compatibleWith,
topics: assignedTopics
2019-11-15 13:17:22 +01:00
})}
2019-11-13 23:40:26 +01:00
2019-11-15 00:27:23 +01:00
<a name="introduction"></a>
<h2>Introduction <small><a href="#introduction"></a></small></h2>
{data.abstract -> f:format.html()}
2019-11-13 23:40:26 +01:00
{introduction -> f:format.raw()}
<f:if condition="{media.0}">
{f:render(partial: 'Image', arguments: {image: media.0})}
</f:if>
2019-11-13 23:40:26 +01:00
{contentMain -> f:format.raw()}
2019-11-15 13:17:22 +01:00
<f:if condition="{acknowledgements}">
<a name="acknowledgements"></a>
<h2>Acknowledgements <small><a href="#acknowledgements"></a></small></h2>
{acknowledgements -> f:format.raw()}
</f:if>
<f:if condition="{furtherReading}">
<a name="furtherReading"></a>
<h2>Further reading <small><a href="#furtherReading"></a></small></h2>
{furtherReading -> f:format.raw()}
</f:if>
2019-11-15 00:27:23 +01:00
</article>
2019-11-13 23:40:26 +01:00
</f:section>
<f:section name="Aside">
2019-11-15 00:27:23 +01:00
{f:render(section: 'TOC', arguments: _all)}
{f:render(partial: 'TopicList', arguments: {
headline: 'Related Topics',
topics: assignedTopics
2019-11-15 13:17:22 +01:00
})}
2019-11-15 00:27:23 +01:00
</f:section>
<f:section name="TOC">
<nav>
<h1>Table of Content</h1>
<ul>
<li>
<a href="#introduction">Introduction</a>
</li>
<f:alias map="{contentSections: pageSections.0.content}">
<f:for each="{contentSections}" as="contentEntry">
<f:if condition="{contentEntry.data.header}">
<li>
<a href="#c{contentEntry.data.uid}">{contentEntry.data.header}</a>
</li>
</f:if>
2019-11-15 00:27:23 +01:00
</f:for>
</f:alias>
2019-11-15 13:17:22 +01:00
<f:if condition="{acknowledgements}">
<li>
<a href="#acknowledgements">Acknowledgements</a>
</li>
</f:if>
<f:if condition="{furtherReading}">
<li>
<a href="#furtherReading">Further reading</a>
</li>
</f:if>
2019-11-15 00:27:23 +01:00
</ul>
</nav>
2019-11-13 23:40:26 +01:00
</f:section>
</html>