Skip to content

上传本地文件 #179

Answered by stevenjoezhang
lipcaty asked this question in Q&A
Discussion options

You must be logged in to vote

有两种实现方式:

  • 如果要在网页中预览 pdf,可以使用 pdf 标签,文档见 https://theme-next.js.org/docs/tag-plugins/pdf.html
  • 如果要点击一个链接后,在新窗口中打开或下载 pdf 文件,可以将文件放置在 Hexo 博客的 source 目录下,generate and deploy 后就会上传到网站对应的目录中

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stevenjoezhang
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #171 on January 16, 2021 04:04.