Skip to content

Commit 137ad00

Browse files
committed
Add the common module
1 parent 61d5345 commit 137ad00

5 files changed

Lines changed: 68 additions & 57 deletions

File tree

config/_default/module.yml

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,2 @@
1-
private: github.com/hbstack/anti-adblock
21
imports:
3-
- path: github.com/hbstack/anti-adblock
4-
- path: github.com/hbstack/google-fonts
5-
- path: github.com/hbstack/header/themes/pills
6-
- path: github.com/hbstack/header/modules/news
7-
- path: github.com/hbstack/blog/modules/sidebar/posts
8-
- path: github.com/hbstack/blog/modules/sidebar/profile
9-
- path: github.com/hbstack/blog/modules/sidebar/taxonomies
10-
- path: github.com/hbstack/github-releases
11-
- path: github.com/hugomods/aos
12-
13-
- path: github.com/hbstack/header/modules/banner
14-
15-
- path: github.com/hbstack/contact
16-
17-
- path: github.com/razonyang/hb-mod-thanks
18-
19-
- path: github.com/hbstack/preferred-language
20-
21-
# - path: github.com/hbstack/announcement-bar
22-
23-
- path: github.com/hbstack/iframe
24-
25-
- path: github.com/hbstack/header/modules/docsearch
26-
27-
- path: github.com/hugomods/microsoft-clarity
28-
- path: github.com/hugomods/google-analytics
29-
- path: github.com/hugomods/google-adsense
30-
31-
# icons modules.
32-
- path: github.com/hugomods/icons/vendors/font-awesome
33-
34-
# blog comments engine.
35-
- path: github.com/hbstack/blog/modules/giscus
36-
# - path: github.com/hbstack/blog/modules/disqus
37-
# - path: github.com/hbstack/blog/modules/utterances
38-
# - path: github.com/hbstack/blog/modules/twikoo
39-
40-
- path: github.com/hbstack/blog/modules/content-panel
41-
- path: github.com/hbstack/blog/modules/toc-scrollspy
42-
43-
# docs comments engine.
44-
- path: github.com/hbstack/docs/modules/giscus
45-
# - path: github.com/hbstack/docs/modules/utterances
46-
# - path: github.com/hbstack/docs/modules/disqus
47-
# - path: github.com/hbstack/docs/modules/twikoo
48-
49-
- path: github.com/hbstack/docs/modules/content-panel
50-
- path: github.com/hbstack/docs/modules/toc-scrollspy
51-
52-
# others.
53-
# - path: github.com/hbstack/background-image
54-
# - path: github.com/hbstack/cloudflare-rocket-loader
55-
56-
# recommended modules.
57-
- path: github.com/hbstack/meta/recommended
2+
- path: github.com/hbstack/site/modules/common

config/production/module.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
imports:
2+
- path: github.com/hbstack/anti-adblock
3+
- path: github.com/hbstack/site/modules/common

go.mod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/hbstack/site
22

3-
go 1.18
3+
go 1.21.3
4+
5+
replace github.com/hbstack/site/modules/common => ./modules/common
46

57
require (
68
github.com/GoogleChrome/workbox v7.0.0+incompatible // indirect
@@ -65,6 +67,7 @@ require (
6567
github.com/hbstack/pwa v0.1.2 // indirect
6668
github.com/hbstack/scrollbar v0.1.0 // indirect
6769
github.com/hbstack/search v0.1.7 // indirect
70+
github.com/hbstack/site/modules/common v0.0.0-00010101000000-000000000000 // indirect
6871
github.com/hbstack/slide v0.3.0 // indirect
6972
github.com/hbstack/snackbar v0.1.2 // indirect
7073
github.com/hbstack/socials v0.9.0 // indirect

modules/common/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/hbstack/site/modules/common
2+
3+
go 1.21.3

modules/common/hugo.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
module:
2+
private: github.com/hbstack/anti-adblock
3+
imports:
4+
- path: github.com/hbstack/google-fonts
5+
- path: github.com/hbstack/header/themes/pills
6+
- path: github.com/hbstack/header/modules/news
7+
- path: github.com/hbstack/blog/modules/sidebar/posts
8+
- path: github.com/hbstack/blog/modules/sidebar/profile
9+
- path: github.com/hbstack/blog/modules/sidebar/taxonomies
10+
- path: github.com/hbstack/github-releases
11+
- path: github.com/hugomods/aos
12+
13+
- path: github.com/hbstack/header/modules/banner
14+
15+
- path: github.com/hbstack/contact
16+
17+
- path: github.com/razonyang/hb-mod-thanks
18+
19+
- path: github.com/hbstack/preferred-language
20+
21+
# - path: github.com/hbstack/announcement-bar
22+
23+
- path: github.com/hbstack/iframe
24+
25+
- path: github.com/hbstack/header/modules/docsearch
26+
27+
- path: github.com/hugomods/microsoft-clarity
28+
- path: github.com/hugomods/google-analytics
29+
- path: github.com/hugomods/google-adsense
30+
31+
# icons modules.
32+
- path: github.com/hugomods/icons/vendors/font-awesome
33+
34+
# blog comments engine.
35+
- path: github.com/hbstack/blog/modules/giscus
36+
# - path: github.com/hbstack/blog/modules/disqus
37+
# - path: github.com/hbstack/blog/modules/utterances
38+
# - path: github.com/hbstack/blog/modules/twikoo
39+
40+
- path: github.com/hbstack/blog/modules/content-panel
41+
- path: github.com/hbstack/blog/modules/toc-scrollspy
42+
43+
# docs comments engine.
44+
- path: github.com/hbstack/docs/modules/giscus
45+
# - path: github.com/hbstack/docs/modules/utterances
46+
# - path: github.com/hbstack/docs/modules/disqus
47+
# - path: github.com/hbstack/docs/modules/twikoo
48+
49+
- path: github.com/hbstack/docs/modules/content-panel
50+
- path: github.com/hbstack/docs/modules/toc-scrollspy
51+
52+
# others.
53+
# - path: github.com/hbstack/background-image
54+
# - path: github.com/hbstack/cloudflare-rocket-loader
55+
56+
# recommended modules.
57+
- path: github.com/hbstack/meta/recommended

0 commit comments

Comments
 (0)