Bladeren bron

Update hugo version in netlify.toml (#946)

* Update hugo version in netlify.toml

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Rename config.yaml to hugo.yaml

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Use go version 1.21

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Fix link

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

---------

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Emruz Hossain 11 maanden geleden
bovenliggende
commit
8599c634e3
8 gewijzigde bestanden met toevoegingen van 17 en 19 verwijderingen
  1. 3 3
      README.md
  2. 5 5
      exampleSite/go.mod
  3. 2 4
      exampleSite/go.sum
  4. 1 1
      exampleSite/package-lock.json
  5. 1 1
      exampleSite/package.json
  6. 1 1
      go.mod
  7. 1 1
      hugo.yaml
  8. 3 3
      netlify.toml

+ 3 - 3
README.md

@@ -111,7 +111,7 @@ hugo mod init github.com/<your username>/<your repo name>
 
 ##### 2. Add this theme as your module dependency
 
-Now, in your `config.yaml` file, add a `module` section.
+Now, in your `hugo.yaml` file, add a `module` section.
 
 ```yaml
 # Use Hugo modules to add theme
@@ -120,7 +120,7 @@ module:
   - path: github.com/hugo-toha/toha/v4
 ```
 
-Check this sample [config.yaml](https://github.com/hugo-toha/hugo-toha.github.io/blob/main/config.yaml) for further reference.
+Check this sample [hugo.yaml](https://github.com/hugo-toha/hugo-toha.github.io/blob/main/hugo.yaml) for further reference.
 
 ##### 3. Update your module
 
@@ -207,7 +207,7 @@ $ npm install
 $ hugo server -w
 ```
 
-Now, you can make change in the theme and they will be reflected immediately on the running site. If you need to change any configuration, you can do that in the `config.yaml` file inside `exampleSite` folder. If you need to add any content or data, you can create the respective folder inside `exampleSite` directory and add your desired content or data there.
+Now, you can make change in the theme and they will be reflected immediately on the running site. If you need to change any configuration, you can do that in the `hugo.yaml` file inside `exampleSite` folder. If you need to add any content or data, you can create the respective folder inside `exampleSite` directory and add your desired content or data there.
 
 #### Running the forked theme against your own site
 

+ 5 - 5
exampleSite/go.mod

@@ -1,10 +1,10 @@
 module github.com/hugo-toha/toha/exampleSite
 
-go 1.19
+go 1.21
+
+replace github.com/hugo-toha/toha/v4 => ../
 
 require (
-	github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240319164719-d8a7e99b594d // indirect
-	github.com/hugo-toha/toha/v4 v4.4.0 // indirect
+	github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240510202502-b4192719c87f // indirect
+	github.com/hugo-toha/toha/v4 v4.5.0 // indirect
 )
-
-replace github.com/hugo-toha/toha/v4 => ../

+ 2 - 4
exampleSite/go.sum

@@ -1,4 +1,2 @@
-github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240319164719-d8a7e99b594d h1:TWNaAG2e1EZDvtl64fjyriR/qc8m7qaKnN13DgKzkFk=
-github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240319164719-d8a7e99b594d/go.mod h1:BRsZS1LeIc+eSM2OWSOeXDNeZUNRcTlJtw1bL874AfQ=
-github.com/hugo-toha/toha/v4 v4.4.0 h1:RdRpjfsPgE+VXb/m3Rl+1n86pVZTrplsDvtXYK3wNh0=
-github.com/hugo-toha/toha/v4 v4.4.0/go.mod h1:p/K34lqlqmhzfPd4cx66od7sjlROBqhMxG30mJz+aKQ=
+github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240510202502-b4192719c87f h1:EpJlxR6ruHtcBIHLVlmfgpoPGAjpAvopGq8h1wscEwY=
+github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240510202502-b4192719c87f/go.mod h1:0gXAIE/H9B3kwsNvyqXXP0gTLCzi/DKwoIOz8Bb9j9c=

+ 1 - 1
exampleSite/package-lock.json

@@ -32,7 +32,7 @@
         "mermaid": "^9.2.1",
         "plyr": "^3.7.2",
         "popper.js": "^1.16.1",
-        "postcss": "^8.4.21",
+        "postcss": "^8.4.31",
         "postcss-cli": "^8.3.1"
       }
     },

+ 1 - 1
exampleSite/package.json

@@ -56,7 +56,7 @@
     "mermaid": "^9.2.1",
     "plyr": "^3.7.2",
     "popper.js": "^1.16.1",
-    "postcss": "^8.4.21",
+    "postcss": "^8.4.31",
     "postcss-cli": "^8.3.1"
   },
   "name": "exampleSite",

+ 1 - 1
go.mod

@@ -1,3 +1,3 @@
 module github.com/hugo-toha/toha/v4
 
-go 1.19
+go 1.21

+ 1 - 1
config.yaml → hugo.yaml

@@ -1,6 +1,6 @@
 module:
   hugoVersion:
-    min: "0.118.0"
+    min: "0.122.0"
     extended: true
   mounts:
   - source: content

+ 3 - 3
netlify.toml

@@ -5,7 +5,7 @@ publish = "exampleSite/public"
 [context.production.environment]
 HUGO_ENABLEGITINFO = "true"
 HUGO_ENV           = "production"
-HUGO_VERSION       = "0.124.0"
+HUGO_VERSION       = "0.126.2"
 NODE_VERSION       = "v20.11.1"
 NPM_VERSION        = "10.5.0"
 
@@ -22,7 +22,7 @@ command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install &
 command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
 
     [context.deploy-preview.environment]
-    HUGO_VERSION = "0.124.0"
+    HUGO_VERSION = "0.126.2"
     NODE_VERSION = "v20.11.1"
     NPM_VERSION  = "10.5.0"
 
@@ -30,7 +30,7 @@ command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install &
 command = "cd exampleSite && hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify -b $DEPLOY_PRIME_URL"
 
     [context.branch-deploy.environment]
-    HUGO_VERSION = "0.124.0"
+    HUGO_VERSION = "0.126.2"
     NODE_VERSION = "v20.11.1"
     NPM_VERSION  = "10.5.0"