feat(speed): improve loading speed of static resource

This commit is contained in:
Dillon 2020-03-09 21:14:12 +08:00
parent 9f1b06f0a7
commit 836fe1612f
15 changed files with 8 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -8,5 +8,4 @@
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

View file

@ -12,4 +12,5 @@
// src: url('#{$fa-font-path}/ForkAwesome.otf') format('opentype'); // used when developing fonts
font-weight: normal;
font-style: normal;
font-display: swap;
}

View file

@ -5,6 +5,7 @@
url('iconfont.woff?t=1581963134625') format('woff'),
url('iconfont.ttf?t=1581963134625') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('iconfont.svg?t=1581963134625#loveit') format('svg'); /* iOS 4.1- */
font-display: swap;
}
.loveit {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -98,7 +98,7 @@ comment: true
**LoveIt** theme uses the summary of the content to display abstract information in the home page. Hugo can generate summaries of your content.
![Summary Preview](/images/theme-documentation-content/summary.png "Summary Preview")
![Summary Preview](/images/theme-documentation-content/summary.jpg "Summary Preview")
### Automatic Summary Splitting

View file

@ -103,7 +103,7 @@ comment: true
**LoveIt** theme uses the summary of the content to display abstract information in the home page. Hugo can generate summaries of your content.
![Summary Preview](/images/theme-documentation-content/summary.png "Summary Preview")
![Summary Preview](/images/theme-documentation-content/summary.jpg "Summary Preview")
### Automatic Summary Splitting

View file

@ -98,7 +98,7 @@ comment: true
**LoveIt** 主题使用内容摘要在主页中显示大致文章信息。Hugo 支持生成文章的摘要.
![文章摘要预览](/images/theme-documentation-content/summary.png "文章摘要预览")
![文章摘要预览](/images/theme-documentation-content/summary.jpg "文章摘要预览")
### 自动摘要拆分

Binary file not shown.

Before

Width:  |  Height:  |  Size: 921 KiB

After

Width:  |  Height:  |  Size: 474 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 682 KiB

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 738 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 918 KiB

After

Width:  |  Height:  |  Size: 638 KiB