Browse Source

make print is turning all md files into pdfs now

master
manetta 4 years ago
parent
commit
6e36789b32
  1. 17
      Makefile
  2. 4
      content/zabala_warning.md
  3. 4
      pelicanconf.py
  4. 8
      themes/basic/templates/base.html
  5. 4
      themes/basic/templates/index.html

17
Makefile

@ -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/)

4
content/zabala_warning.md

@ -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>

4
pelicanconf.py

@ -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'

8
themes/basic/templates/base.html

@ -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">

4
themes/basic/templates/index.html

@ -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 %}

Loading…
Cancel
Save