optimize pdf in posts

This commit is contained in:
JamesFlare1212
2024-11-19 08:01:10 -05:00
parent 323c90005b
commit e1e1e305bc
5 changed files with 8 additions and 3 deletions

3
.gitmodules vendored
View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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 在电路中的应用