make print is turning all md files into pdfs now
This commit is contained in:
parent
fcad06f2b9
commit
6e36789b32
17
Makefile
17
Makefile
@ -72,17 +72,14 @@ publish:
|
||||
|
||||
.PHONY: html help clean regenerate serve serve-global devserver publish
|
||||
|
||||
# Print
|
||||
|
||||
pdfs:
|
||||
pandoc --pdf-engine=weasyprint -c themes/basic/static/css/print.css content/text.md -o print/text.pdf
|
||||
pandoc --pdf-engine=weasyprint -c themes/basic/static/css/print.css content/zabala_warning.md -o print/zabala_warning.pdf
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
md=$(wildcard content/*.md)
|
||||
md2pdf=$(md:%.md=%.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/)
|
||||
|
||||
|
@ -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="amro">AMRO Servus etc</div>
|
||||
|
@ -4,8 +4,8 @@
|
||||
# Pelican's documentation page on the pelicanconf.py
|
||||
# https://docs.getpelican.com/en/stable/settings.html
|
||||
|
||||
AUTHOR = 'Alice & Manetta'
|
||||
SITENAME = 'AMRO 2020 Publication'
|
||||
AUTHOR = 'Servus'
|
||||
SITENAME = 'Nourishing Network'
|
||||
SITEURL = 'https://vvvvvvaria.org/amro/'
|
||||
|
||||
TIMEZONE = 'Europe/Amsterdam'
|
||||
|
@ -27,10 +27,10 @@
|
||||
<h2>Subscribe</h2>
|
||||
<p>Subscribe to this feed!</p>
|
||||
<ul>
|
||||
<li>Full Feed: <a href="{{ SITEURL }}/{{ FEED_RSS }}">RSS</a>, <a href="{{ SITEURL }}/{{ FEED_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>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>mail network</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 }}/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 }}/ATOM/category/projections.atom.xml">ATOM</a></li>
|
||||
<li>mail: <a href="#">subscribe</a>, <a href="#">unsubscribe</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="instructions">
|
||||
|
@ -3,7 +3,7 @@
|
||||
{% block content %}
|
||||
<section>
|
||||
|
||||
{% for article in articles_page.object_list|sort(attribute="slug")%}
|
||||
{% for article in articles %}
|
||||
<article class="post">
|
||||
<h2 class="post-title">
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
|
||||
@ -19,7 +19,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="post-summary">
|
||||
{{ article.summary }}
|
||||
<!-- {{ article.summary }} -->
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user