Skip to content

Commit

Permalink
Added support for PDF links in default index template
Browse files Browse the repository at this point in the history
  • Loading branch information
MartenBE committed Sep 12, 2024
1 parent d49ccbf commit 0c48408
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions assets/templates/index.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@

<ul>
{%+ for s in slideshows %}
<li><a href="{{ s.location }}" target="_blank">{{ s.title }}</a></li>
<li><a href="{{ s.location }}" target="_blank">{{ s.title }}</a> (<a href="{{ s.location }}?print-pdf" target="_blank">PDF version</a>)</li>
{% endfor %}
</ul>

<p>Slides last build at <code>{{ build_datetime.strftime('%Y-%m-%d %H:%M:%S') }}</code>.</p>
<p>
Slides last build at <code>{{ build_datetime.strftime('%Y-%m-%d %H:%M:%S') }}</code>.<br />
The PDF version link generates a single-page document suitable for <a href="https://revealjs.com/pdf-export/" target="_blank">saving as a PDF for printing</a>.
</p>
</body>
</html>

0 comments on commit 0c48408

Please sign in to comment.