optimize pdf in posts
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -5,3 +5,6 @@
|
||||
[submodule "themes/component-projects"]
|
||||
path = themes/component-projects
|
||||
url = https://github.com/hugo-fixit/component-projects.git
|
||||
[submodule "themes/hugo-embed-pdf-shortcode"]
|
||||
path = themes/hugo-embed-pdf-shortcode
|
||||
url = https://github.com/anvithks/hugo-embed-pdf-shortcode.git
|
||||
|
||||
@@ -15,7 +15,8 @@ title = "FlareBlog"
|
||||
# Hostname (and path) to the root
|
||||
baseURL = "https://www.jamesflare.com/"
|
||||
# theme list
|
||||
theme = ["FixIt", "component-projects"]
|
||||
theme = ["FixIt", "component-projects", "hugo-embed-pdf-shortcode"]
|
||||
enableInlineShortcodes = true
|
||||
defaultContentLanguage = "en"
|
||||
# language code ["en", "zh-CN", "fr", "pl", ...]
|
||||
languageCode = "en"
|
||||
|
||||
@@ -50,7 +50,7 @@ repost:
|
||||
|
||||
## Lab Document
|
||||
|
||||
<embed src= "Lab01.pdf" type="application/pdf" width= "600px" height= "500px" style="display: block; margin: 0 auto;">
|
||||
{{< link href="Lab01.pdf" content="Lab01.pdf" title="Download Lab01.pdf" download="Lab01.pdf" card=true >}}
|
||||
|
||||
## 1. Prove Ohm's Law, KCL, and KVL in a Circuit
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ repost:
|
||||
|
||||
## Lab Document
|
||||
|
||||
<embed src= "Lab01.pdf" type="application/pdf" width= "600px" height= "500px" style="display: block; margin: 0 auto;">
|
||||
{{< link href="Lab01.pdf" content="Lab01.pdf" title="Download Lab01.pdf" download="Lab01.pdf" card=true >}}
|
||||
|
||||
## 1. 验证欧姆定律、KCL 和 KVL 在电路中的应用
|
||||
|
||||
|
||||
1
themes/hugo-embed-pdf-shortcode
Submodule
1
themes/hugo-embed-pdf-shortcode
Submodule
Submodule themes/hugo-embed-pdf-shortcode added at de797b1a64
Reference in New Issue
Block a user