Skip to content

Commit a34d2cf

Browse files
author
Rubel Hossain
committed
chore: bump hugo to 0.163.3, migrate to pnpm, switch comments to OpenRemark
1 parent f6bebcd commit a34d2cf

20 files changed

Lines changed: 785 additions & 86 deletions

.gitlab-ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ stages:
33

44
variables:
55
HUGO_ENV: production
6-
HUGO_VERSION: "0.128.0"
7-
GO_VERSION: "1.22.0"
8-
NODE_VERSION: "18.16.1"
6+
HUGO_VERSION: "0.163.3"
7+
GO_VERSION: "1.25.5"
8+
NODE_VERSION: "24.18.0"
99

1010
cache:
1111
paths:
@@ -26,13 +26,15 @@ default:
2626
- export PATH=$PATH:/usr/local/go/bin
2727
- rm go${GO_VERSION}.linux-amd64.tar.gz
2828
- echo "GO ${GO_VERSION} INSTALLED"
29-
- npm install
29+
- corepack enable
30+
- corepack prepare pnpm@latest --activate
31+
- pnpm install
3032

3133
pages:
3234
stage: build
3335
script:
34-
- npm run project-setup
35-
- npm run build
36+
- pnpm run project-setup
37+
- pnpm run build
3638
- echo "SITE BUILT SUCCESSFULLY! LIVE AT https://$GITLAB_USER_LOGIN.gitlab.io/$CI_PROJECT_NAME/"
3739
artifacts:
3840
paths:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55

66
<p align=center>
7-
<a href="https://github.com/gohugoio/hugo/releases/tag/v0.83.1" alt="Contributors">
8-
<img src="https://img.shields.io/static/v1?label=min-HUGO-version&message=0.83.1&color=f00&logo=hugo" />
7+
<a href="https://github.com/gohugoio/hugo/releases/tag/v0.163.3" alt="Contributors">
8+
<img src="https://img.shields.io/static/v1?label=min-HUGO-version&message=0.163.3&color=f00&logo=hugo" />
99
</a>
1010

1111
<a href="https://github.com/gethugothemes/andromeda-light/blob/master/LICENSE">

assets/scss/style.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ $font-icon: '{{.font_icon | default "Font Awesome 5 Free"}}';
3232

3333
@import 'notice';
3434

35-
@import 'tabs';
35+
@import 'tab';
36+
37+
@import 'accordion';
3638

3739
// @import 'image';
3840

39-
@import 'gallery';
41+
@import 'gallery-slider';
4042

4143
@import 'toc';
4244

exampleSite/config/_default/languages.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
################################### English language #####################################
22
[en]
3-
languageName = "En"
4-
languageCode = "en-us"
3+
label = "En"
4+
locale = "en-us"
55
contentDir = "content/english"
66
weight = 1
77
# copyright

exampleSite/config/_default/menus.en.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ weight = 3
2020
[[main]]
2121
weight = 4
2222
name = "Pages"
23-
hasChildren = true
2423

2524
[[main]]
2625
parent = "Pages"

exampleSite/config/_default/module.toml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[hugoVersion]
22
extended = true
3-
min = "0.128.0"
3+
min = "0.163.3"
44

55
[[imports]]
66
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
@@ -24,7 +24,7 @@ path = "github.com/gethugothemes/hugo-modules/components/render-link"
2424
path = "github.com/gethugothemes/hugo-modules/icons/font-awesome"
2525

2626
[[imports]]
27-
path = "github.com/gethugothemes/hugo-modules/components/valine-comment"
27+
path = "github.com/gethugothemes/hugo-modules/components/open-remark"
2828

2929
[[imports]]
3030
path = "github.com/gethugothemes/hugo-modules/components/crisp-chat"
@@ -36,34 +36,28 @@ path = "github.com/gethugothemes/hugo-modules/pwa"
3636
path = "github.com/gethugothemes/hugo-modules/images"
3737

3838
[[imports]]
39-
path = "github.com/gethugothemes/hugo-modules/shortcodes/buttons"
39+
path = "github.com/gethugothemes/hugo-modules/shortcodes/button"
4040

4141
[[imports]]
4242
path = "github.com/gethugothemes/hugo-modules/shortcodes/codepen"
4343

4444
[[imports]]
45-
path = "github.com/gethugothemes/hugo-modules/shortcodes/collapse"
45+
path = "github.com/gethugothemes/hugo-modules/accordion"
4646

4747
[[imports]]
4848
path = "github.com/gethugothemes/hugo-modules/shortcodes/notice"
4949

5050
[[imports]]
51-
path = "github.com/gethugothemes/hugo-modules/shortcodes/video"
51+
path = "github.com/gethugothemes/hugo-modules/videos"
5252

5353
[[imports]]
54-
path = "github.com/gethugothemes/hugo-modules/shortcodes/tabs"
54+
path = "github.com/gethugothemes/hugo-modules/tab"
5555

5656
[[imports]]
57-
path = "github.com/gethugothemes/hugo-modules/shortcodes/gallery"
57+
path = "github.com/gethugothemes/hugo-modules/gallery-slider"
5858

5959
[[imports]]
60-
path = "github.com/gethugothemes/hugo-modules/shortcodes/table-of-contents"
61-
62-
[[imports]]
63-
path = "github.com/gethugothemes/hugo-modules/shortcodes/youtube-lite"
64-
65-
[[imports]]
66-
path = "github.com/gethugothemes/hugo-modules/shortcodes/vimeo-lite"
60+
path = "github.com/gethugothemes/hugo-modules/table-of-contents"
6761

6862
[[imports]]
6963
path = "github.com/gethugothemes/hugo-modules/seo-tools/baidu-analytics"

exampleSite/config/_default/params.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,10 @@ title = "Helping teams in the world with focus"
107107
content = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi egestas <br> Werat viverra id et aliquet. vulputate egestas sollicitudin."
108108
button = "Buy Premium"
109109
button_link = "https://gethugothemes.com/products/andromeda/"
110+
111+
# open remark comment
112+
# module: https://github.com/gethugothemes/hugo-modules/tree/master/components/open-remark
113+
[open_remark]
114+
enable = true
115+
site_key = "cmqnb3wd5000104kww7862ku4" # your site key from the OpenRemark dashboard
116+
embed_url = "https://open-remark.zeon.studio/embed.js"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[node]
2+
[node.permissions]
3+
allowAddons = ["postcss"]
4+
allowChildProcess = ["postcss"]
5+
allowRead = [".", "..", "/"]
6+
allowWorker = ["postcss"]

exampleSite/go.mod

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,32 @@ module gethugothemes.com
33
go 1.20
44

55
require (
6-
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20240925042433-d2b5d05977e8 // indirect
7-
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20240925042433-d2b5d05977e8 // indirect
8-
github.com/gethugothemes/hugo-modules/components/crisp-chat v0.0.0-20240925042433-d2b5d05977e8 // indirect
9-
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20240925042433-d2b5d05977e8 // indirect
10-
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20240925042433-d2b5d05977e8 // indirect
11-
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20240925042433-d2b5d05977e8 // indirect
12-
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20240925042433-d2b5d05977e8 // indirect
13-
github.com/gethugothemes/hugo-modules/components/valine-comment v0.0.0-20240925042433-d2b5d05977e8 // indirect
14-
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20240925042433-d2b5d05977e8 // indirect
15-
github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20240925042433-d2b5d05977e8 // indirect
16-
github.com/gethugothemes/hugo-modules/images v0.0.0-20240925042433-d2b5d05977e8 // indirect
17-
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20240925042433-d2b5d05977e8 // indirect
18-
github.com/gethugothemes/hugo-modules/seo-tools/baidu-analytics v0.0.0-20240925042433-d2b5d05977e8 // indirect
19-
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20240925042433-d2b5d05977e8 // indirect
20-
github.com/gethugothemes/hugo-modules/seo-tools/counter-analytics v0.0.0-20240925042433-d2b5d05977e8 // indirect
21-
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20240925042433-d2b5d05977e8 // indirect
22-
github.com/gethugothemes/hugo-modules/seo-tools/matomo-analytics v0.0.0-20240925042433-d2b5d05977e8 // indirect
23-
github.com/gethugothemes/hugo-modules/seo-tools/plausible-analytics v0.0.0-20240925042433-d2b5d05977e8 // indirect
24-
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20240925042433-d2b5d05977e8 // indirect
25-
github.com/gethugothemes/hugo-modules/shortcodes/buttons v0.0.0-20240925042433-d2b5d05977e8 // indirect
26-
github.com/gethugothemes/hugo-modules/shortcodes/codepen v0.0.0-20240925042433-d2b5d05977e8 // indirect
27-
github.com/gethugothemes/hugo-modules/shortcodes/collapse v0.0.0-20240925042433-d2b5d05977e8 // indirect
28-
github.com/gethugothemes/hugo-modules/shortcodes/gallery v0.0.0-20240925042433-d2b5d05977e8 // indirect
29-
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20240925042433-d2b5d05977e8 // indirect
30-
github.com/gethugothemes/hugo-modules/shortcodes/table-of-contents v0.0.0-20240925042433-d2b5d05977e8 // indirect
31-
github.com/gethugothemes/hugo-modules/shortcodes/tabs v0.0.0-20240925042433-d2b5d05977e8 // indirect
32-
github.com/gethugothemes/hugo-modules/shortcodes/video v0.0.0-20240925042433-d2b5d05977e8 // indirect
33-
github.com/gethugothemes/hugo-modules/shortcodes/vimeo-lite v0.0.0-20240925042433-d2b5d05977e8 // indirect
34-
github.com/gethugothemes/hugo-modules/shortcodes/youtube-lite v0.0.0-20240925042433-d2b5d05977e8 // indirect
35-
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20200 // indirect
6+
github.com/gethugothemes/hugo-modules/accordion v0.0.0-20260701054856-10b1d2cdc11a // indirect
7+
github.com/gethugothemes/hugo-modules/adsense v0.0.0-20260701054856-10b1d2cdc11a // indirect
8+
github.com/gethugothemes/hugo-modules/components/cookie-consent v0.0.0-20260701054856-10b1d2cdc11a // indirect
9+
github.com/gethugothemes/hugo-modules/components/crisp-chat v0.0.0-20260701054856-10b1d2cdc11a // indirect
10+
github.com/gethugothemes/hugo-modules/components/custom-script v0.0.0-20260701054856-10b1d2cdc11a // indirect
11+
github.com/gethugothemes/hugo-modules/components/open-remark v0.0.0-20260701054856-10b1d2cdc11a // indirect
12+
github.com/gethugothemes/hugo-modules/components/preloader v0.0.0-20260701054856-10b1d2cdc11a // indirect
13+
github.com/gethugothemes/hugo-modules/components/render-link v0.0.0-20260701054856-10b1d2cdc11a // indirect
14+
github.com/gethugothemes/hugo-modules/components/social-share v0.0.0-20260701054856-10b1d2cdc11a // indirect
15+
github.com/gethugothemes/hugo-modules/gallery-slider v0.0.0-20260701054856-10b1d2cdc11a // indirect
16+
github.com/gethugothemes/hugo-modules/gzip-caching v0.0.0-20260701054856-10b1d2cdc11a // indirect
17+
github.com/gethugothemes/hugo-modules/icons/font-awesome v0.0.0-20260701054856-10b1d2cdc11a // indirect
18+
github.com/gethugothemes/hugo-modules/images v0.0.0-20260701054856-10b1d2cdc11a // indirect
19+
github.com/gethugothemes/hugo-modules/pwa v0.0.0-20260701054856-10b1d2cdc11a // indirect
20+
github.com/gethugothemes/hugo-modules/seo-tools/baidu-analytics v0.0.0-20260701054856-10b1d2cdc11a // indirect
21+
github.com/gethugothemes/hugo-modules/seo-tools/basic-seo v0.0.0-20260701054856-10b1d2cdc11a // indirect
22+
github.com/gethugothemes/hugo-modules/seo-tools/counter-analytics v0.0.0-20260701054856-10b1d2cdc11a // indirect
23+
github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager v0.0.0-20260701054856-10b1d2cdc11a // indirect
24+
github.com/gethugothemes/hugo-modules/seo-tools/matomo-analytics v0.0.0-20260701054856-10b1d2cdc11a // indirect
25+
github.com/gethugothemes/hugo-modules/seo-tools/plausible-analytics v0.0.0-20260701054856-10b1d2cdc11a // indirect
26+
github.com/gethugothemes/hugo-modules/seo-tools/site-verifications v0.0.0-20260701054856-10b1d2cdc11a // indirect
27+
github.com/gethugothemes/hugo-modules/shortcodes/button v0.0.0-20260701054856-10b1d2cdc11a // indirect
28+
github.com/gethugothemes/hugo-modules/shortcodes/codepen v0.0.0-20260701054856-10b1d2cdc11a // indirect
29+
github.com/gethugothemes/hugo-modules/shortcodes/notice v0.0.0-20260701054856-10b1d2cdc11a // indirect
30+
github.com/gethugothemes/hugo-modules/tab v0.0.0-20260701054856-10b1d2cdc11a // indirect
31+
github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20260701054856-10b1d2cdc11a // indirect
32+
github.com/gethugothemes/hugo-modules/videos v0.0.0-20260701054856-10b1d2cdc11a // indirect
33+
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20800 // indirect
3634
)

exampleSite/hugo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ disableLanguages = [] # example: ["fr"] for disable french language. see https:/
2121
[services.googleAnalytics]
2222
ID = 'UA-123456-78' # see https://gohugo.io/templates/internal/#configure-google-analytics
2323

24-
[services.disqus]
25-
shortname = 'themefisher-template' # we use disqus to show comments in blog posts . To install disqus please follow this tutorial https://portfolio.peter-baumgartner.net/2017/09/10/how-to-install-disqus-on-hugo/
26-
2724

2825
############################# Modules ############################
2926
[module]
@@ -65,7 +62,7 @@ home = ["HTML", "RSS", "WebAppManifest"]
6562
# See https://github.com/disintegration/imaging
6663
# Default JPEG or WebP quality setting. Default is 75.
6764
quality = 90
68-
resampleFilter = "lanczos"
65+
resampleFilter = "Lanczos"
6966

7067
############################# Caches ###############################
7168
[caches]
@@ -156,4 +153,8 @@ link = "plugins/cookie/cookie.js"
156153
[[params.plugins.js]]
157154
link = "plugins/webfont-loader/webfont-loader-2.min.js"
158155
[[params.plugins.js]]
159-
link = "plugins/glightbox.js"
156+
link = "plugins/gallery/glightbox.js"
157+
[[params.plugins.js]]
158+
link = "js/tab.js"
159+
[[params.plugins.js]]
160+
link = "js/accordion.js"

0 commit comments

Comments
 (0)