Jekyll PDF thumbnails generator
A Jekyll plugin to generate thumbnails for all PDF files.
Usage
- Add the following to your site's Gemfile:
gem 'jekyll-pdf-thumbnail'
- Add the following to your site's config file:
plugins:
- jekyll-pdf-thumbnail
- Use it in your
.mdfiles and liquid templates. Example markdown file:
---
title: Homepage
layout: null
pdf_file: /assets/sample_1.pdf
---
# {{ page.title }}
{% assign other_pdf = 'sample_2.pdf' %}
- This is a link to [{{page.pdf_file}}]({{page.pdf_file | absolute_url}})
- This is a preview of 
- This is a link to [sample_2.pdf]({{other_pdf | absolute_url }})
- This is a preview of 