educaweb2/templates/story.tmpl

55 lines
2.3 KiB
Cheetah

## -*- coding: utf-8 -*-
<%namespace name="helper" file="post_helper.tmpl"/>
<%namespace name="pheader" file="post_header.tmpl"/>
<%namespace name="comments" file="comments_helper.tmpl"/>
<%namespace name="math" file="math_helper.tmpl"/>
## <%namespace name="mastodon" file="mastodon.tmpl"/>
<%inherit file="post.tmpl"/>
<%block name="content">
<article class="post-${post.meta('type')} storypage" itemscope="itemscope" itemtype="http://schema.org/Article">
%if not post.meta('hideimghdr') and post.meta('slug')=='index' and BANNER_URL:
<header style="background-image: url(${BANNER_URL}); height: 75vh; text-align:center;">
%elif not post.meta('hideimghdr') and 'page_page' in pagekind and theme_config.get('imghdr_url'):
<header style="background-image: url(${theme_config.get('imghdr_url')}); height: ${theme_config.get('imghdr_height')};">
%else:
<header>
%endif
<div style="font-size:50px;">
${pheader.html_title()}
${pheader.html_translations(post)}
&nbsp;
%if post.meta('slug')=='index':
%if EMAIL_URL:
<a href="${EMAIL_URL}" class="text-dark mx-2" title="Enviar un correo"><img src="/assets/img/email.svg" width="65" height="65" alt="email" class="d-inline-block align-top"></a>
&nbsp;
%endif
%if XMPP_URL:
<a href="${XMPP_URL}" title="Canal de mensajería XMPP"><img src="/assets/img/xmpp.svg" width="65" height="65" alt="XMPP" class="d-inline-block align-top"></a>
&nbsp;
%endif
%if MASTODON_URL:
<a href="${MASTODON_URL}" title="Mastodon"><img src="/assets/img/mastodon.svg" width="65" height="65" alt="Mastodon" class="d-inline-block align-top"></a>
&nbsp;
%endif
%if PEERTUBE_URL:
<a href="${PEERTUBE_URL}" title="PeerTube"><img src="/assets/img/peertube.svg" width="65" height="65" alt="PeerTube" class="d-inline-block align-top"></a>
&nbsp;
%endif
%endif
</div>
</header>
<div class="e-content entry-content" itemprop="articleBody text">
${post.text()}
</div>
%if site_has_comments and enable_comments and not post.meta('nocomments'):
<section class="comments">
<h2>${messages("Comments")}</h2>
${comments.comment_form(post.permalink(absolute=True), post.title(), post.base_path)}
</section>
%endif
${math.math_scripts_ifpost(post)}
</article>
</%block>