追光日记

站在巨人的肩上

PDF

设置

next/_config.yml

1
2
3
4
pdf:
enable: true
# Default height
height: 500px

例子

1
{% pdf https://example.com/sample.pdf %}
1
{% pdf /path/to/your/file.pdf 600px %}

后面的600px为设置pdf的高度,单位为像素。