make print is turning all md files into pdfs now

This commit is contained in:
manetta 2020-11-19 17:12:44 +01:00
parent fcad06f2b9
commit 6e36789b32
5 changed files with 18 additions and 19 deletions

View File

@ -72,17 +72,14 @@ publish:
.PHONY: html help clean regenerate serve serve-global devserver publish .PHONY: html help clean regenerate serve serve-global devserver publish
# Print
pdfs: md=$(wildcard content/*.md)
pandoc --pdf-engine=weasyprint -c themes/basic/static/css/print.css content/text.md -o print/text.pdf md2pdf=$(md:%.md=%.pdf)
pandoc --pdf-engine=weasyprint -c themes/basic/static/css/print.css content/zabala_warning.md -o print/zabala_warning.pdf
%.pdf: %.md themes/basic/static/css/print.css
pandoc --pdf-engine=weasyprint -c themes/basic/static/css/print.css $< -o $@
print: $(md2pdf)
$(shell mv content/*.pdf content/print/)

View File

@ -1,4 +1,6 @@
Title: The Philosophy of Warnings
Author: Santiago Zabala
Category: Articles
<div id="title_edition">Title of the publication</div> <div id="title_edition">Title of the publication</div>
<div id="amro">AMRO Servus etc</div> <div id="amro">AMRO Servus etc</div>

View File

@ -4,8 +4,8 @@
# Pelican's documentation page on the pelicanconf.py # Pelican's documentation page on the pelicanconf.py
# https://docs.getpelican.com/en/stable/settings.html # https://docs.getpelican.com/en/stable/settings.html
AUTHOR = 'Alice & Manetta' AUTHOR = 'Servus'
SITENAME = 'AMRO 2020 Publication' SITENAME = 'Nourishing Network'
SITEURL = 'https://vvvvvvaria.org/amro/' SITEURL = 'https://vvvvvvaria.org/amro/'
TIMEZONE = 'Europe/Amsterdam' TIMEZONE = 'Europe/Amsterdam'

View File

@ -27,10 +27,10 @@
<h2>Subscribe</h2> <h2>Subscribe</h2>
<p>Subscribe to this feed!</p> <p>Subscribe to this feed!</p>
<ul> <ul>
<li>Full Feed: <a href="{{ SITEURL }}/{{ FEED_RSS }}">RSS</a>, <a href="{{ SITEURL }}/{{ FEED_ATOM }}">ATOM</a></li> <li>Full Feed: <a href="{{ SITEURL }}/{{ FEED_RSS }}">RSS</a>, <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}">ATOM</a></li>
<li>Articles Feed: <a href="{{ SITEURL }}/{{ FEED_RSS }}/category/articles.rss.xml">RSS</a>, <a href="{{ SITEURL }}/{{ FEED_ATOM }}/category/articles.atom.xml">ATOM</a></li> <li>Articles Feed: <a href="{{ SITEURL }}/{{ FEED_RSS }}/category/articles.rss.xml">RSS</a>, <a href="{{ SITEURL }}/ATOM/category/articles.atom.xml">ATOM</a></li>
<li>Projections Feed: <a href="{{ SITEURL }}/{{ FEED_RSS }}/category/projections.rss.xml">RSS</a>, <a href="{{ SITEURL }}/{{ FEED_ATOM }}/category/projections.atom.xml">ATOM</a></li> <li>Projections Feed: <a href="{{ SITEURL }}/{{ FEED_RSS }}/category/projections.rss.xml">RSS</a>, <a href="{{ SITEURL }}/ATOM/category/projections.atom.xml">ATOM</a></li>
<li>mail network</li> <li>mail: <a href="#">subscribe</a>, <a href="#">unsubscribe</a></li>
</ul> </ul>
</div> </div>
<div id="instructions"> <div id="instructions">

View File

@ -3,7 +3,7 @@
{% block content %} {% block content %}
<section> <section>
{% for article in articles_page.object_list|sort(attribute="slug")%} {% for article in articles %}
<article class="post"> <article class="post">
<h2 class="post-title"> <h2 class="post-title">
<a href="{{ SITEURL }}/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a> <a href="{{ SITEURL }}/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
@ -19,7 +19,7 @@
{% endif %} {% endif %}
</div> </div>
<div class="post-summary"> <div class="post-summary">
{{ article.summary }} <!-- {{ article.summary }} -->
</div> </div>
</article> </article>
{% endfor %} {% endfor %}