Skip to content

Commit

Permalink
Use browsers built in pdf previewer so as to avoid preiviewer breakin…
Browse files Browse the repository at this point in the history
…g when using hsts
  • Loading branch information
butlerx committed Nov 23, 2016
1 parent cf9a52c commit a3b5ba8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -20,6 +20,11 @@ $ npm install --save hexo-pdf
{% pdf http://7xov2f.com1.z0.glb.clouddn.com/bash_freshman.pdf %}
```

or
```
{% pdf ./bash_freshman.pdf %}
```

### Google drive
```
{% pdf https://drive.google.com/file/d/0B6qSwdwPxPRdTEliX0dhQ2JfUEU/preview %}
Expand All @@ -38,4 +43,4 @@ $ npm install --save hexo-pdf
![](screenshot/hexo-googledrive-pdf.png)

### Slideshare
![](screenshot/hexo-slideshare-pdf.png)
![](screenshot/hexo-slideshare-pdf.png)
2 changes: 1 addition & 1 deletion reader.ejs
@@ -1,7 +1,7 @@
<% if(type == 'normal') { %>
<div class="row">
<iframe src="http://nagland.github.io/viewer/web/viewer.html?val=<%= src %>" style="width:100%; height:550px"></iframe>
<embed src="<%= src %>" width="100%" height="550" type="application/pdf">
</div>
<% } else if (type == 'googledoc'){ %>
Expand Down

0 comments on commit a3b5ba8

Please sign in to comment.