1
0
Fork 0
forked from github/pelican

Add PDF to the templates.

This commit is contained in:
Alexis Metaireau 2010-11-06 02:40:10 +00:00
commit d0b034db0a
4 changed files with 12 additions and 3 deletions

View file

@ -89,6 +89,10 @@ ol {
padding:5px;
}
.post-info p{
margin-bottom: 1px;
}
.readmore { float: right }
dl {margin: 0 0 1.5em 0;}

View file

@ -16,7 +16,7 @@
By <a class="url fn" href="#">{{ article.author }}</a>
</address>
{% endif %}
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></p>
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
</footer><!-- /.post-info -->
{{ article.content }}
</div><!-- /.entry-content -->

View file

@ -16,7 +16,8 @@
<address class="vcard author">
By <a class="url fn" href="#">{{ article.author }}</a>
</address>
{% endif %}<p> In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></p>
{% endif %}
<p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p>
</footer><!-- /.post-info -->
{{ article.content }}
</article></aside><!-- /#featured -->
@ -40,7 +41,9 @@
<address class="vcard author">
By <a class="url fn" href="#">{{ article.author }}</a>
</address>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>
</address>
<p> In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></p>
<p>{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">pdf</a>{% endif %}</p>
</footer><!-- /.post-info -->
{{ article.summary }}
<a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>

View file

@ -3,6 +3,8 @@
{% block content %}
<section id="content" class="body">
<h1 class="entry-title">{{ page.title }}</h1>
{% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get
the pdf</a>{% endif %}
{{ page.content }}
</section>
{% endblock %}