Skip to content

Commit 9dbe3bc

Browse files
committed
chore: update
Signed-off-by: Charles Chin <eallion.s+github@gmail.com>
1 parent f425c7d commit 9dbe3bc

9 files changed

+64
-5
lines changed

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
baseURL = 'https://www.kexima.com'
2-
paginate = 6
2+
pagination.pagerSize = 6
33
theme= "coHub"
44
title = '利川市科西码电子商务有限公司'
55
defaultContentLanguage = "zh-cn"

layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<button id="back-to-top" title="返回顶部"><i class="iconfont icon-up"></i></button>
6363

6464
{{ "<!-- Non Critical CSS -->" | safeHTML }}
65-
{{$style := resources.Get "scss/non-critical.scss" | resources.ToCSS | resources.Minify }}
65+
{{$style := resources.Get "scss/non-critical.scss" | css.Sass | resources.Minify }}
6666
<link href="{{ $style.Permalink }}" rel="stylesheet" />
6767

6868
<script src="https://map.qq.com/api/js?v=2.exp&key=YDYBZ-UIVWI-JHZGR-ULFIV-ZG7BE-UXBKO&libraries=convertor,marker,geometry"></script>

layouts/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/>
1414
{{hugo.Generator}}
1515
{{ "<!-- Critical CSS -->" | safeHTML }}
16-
{{$style := resources.Get "scss/critical.scss" | resources.ToCSS | resources.Minify }}
16+
{{$style := resources.Get "scss/critical.scss" | css.Sass | resources.Minify }}
1717
<link href="{{ $style.Permalink }}" rel="stylesheet" />
1818

1919

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "v1.0.0",
44
"description": "kexima.com official website",
55
"private": true,
6+
"hugo-bin": {
7+
"buildTags": "extended"
8+
},
69
"scripts": {
710
"build": "hugo --cleanDestinationDir --forceSyncStatic --gc --ignoreCache --minify --enableGitInfo",
811
"server": "start http://127.0.0.1:1313 && hugo server -w -D -p 1313 --bind 0.0.0.0 --contentDir content --forceSyncStatic --ignoreCache --noHTTPCache --disableFastRender -e production --enableGitInfo",
@@ -11,7 +14,8 @@
1114
"preview": "start http://127.0.0.1:1313 && hugo server -w -D -p 1313 --bind 0.0.0.0 --contentDir content --forceSyncStatic --ignoreCache --noHTTPCache --disableFastRender -e production --enableGitInfo",
1215
"start": "start http://127.0.0.1:1313 && hugo server -w -D -p 1313 --bind 0.0.0.0 --contentDir example --forceSyncStatic --ignoreCache --noHTTPCache --disableFastRender -e production --enableGitInfo",
1316
"update": "git submodule update --remote --merge",
14-
"vercel": "node scripts/hugo_version.js && hugo --cleanDestinationDir --forceSyncStatic --gc --ignoreCache --minify --enableGitInfo"
17+
"vercel": "node scripts/hugo_version.js && hugo --cleanDestinationDir --forceSyncStatic --gc --ignoreCache --minify --enableGitInfo",
18+
"hugo": "hugo --minify --enableGitInfo"
1519
},
1620
"repository": {
1721
"type": "git",
@@ -30,6 +34,8 @@
3034
},
3135
"homepage": "https://github.com/kexima/kexima.com#readme",
3236
"dependencies": {
33-
"generate-changelog": "^1.8.0"
37+
"generate-changelog": "^1.8.0",
38+
"@types/node": "^20.19.0",
39+
"hugo-bin": "^0.144.8"
3440
}
3541
}

pnpm-lock.yaml

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/_gen/assets/scss/critical.scss_8eb8c3e1c83e81a3be17b8e96be1a8e3.content

Lines changed: 4 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"Target":"/scss/critical.min.css","MediaType":"text/css","Data":{}}

resources/_gen/assets/scss/non-critical.scss_8eb8c3e1c83e81a3be17b8e96be1a8e3.content

Lines changed: 5 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"Target":"/scss/non-critical.min.css","MediaType":"text/css","Data":{}}

0 commit comments

Comments
 (0)