forked from github/pelican
As it is done when reading the file, we need to remove html tags for the permalink and the slug (this is done here for the notmyidea and simple themes). While modifying the themes I also replaced the `pagename` template tag with `article.url` (`pagename` was an empty variable, no more used ?).
23 lines
752 B
HTML
23 lines
752 B
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
<section id="content" class="body">
|
|
<header>
|
|
<h2 class="entry-title">
|
|
<a href="{{ article.url }}" rel="bookmark"
|
|
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
|
|
</header>
|
|
<footer class="post-info">
|
|
<abbr class="published" title="{{ article.date.isoformat() }}">
|
|
{{ article.locale_date }}
|
|
</abbr>
|
|
{% if article.author %}
|
|
<address class="vcard author">
|
|
By <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
|
|
</address>
|
|
{% endif %}
|
|
</footer><!-- /.post-info -->
|
|
<div class="entry-content">
|
|
{{ article.content }}
|
|
</div><!-- /.entry-content -->
|
|
</section>
|
|
{% endblock %}
|