Comments (19)
I am suspecting you did not update the dependencies properly. Please, execute these commands:
# update to latest version of all modules
hugo mod get -u
# update the npm dependencies
hugo mod npm pack
# cleanup go.sum file
hugo mod tidy
# install npm depnedencies
npm install
from toha.
Hi @hossainemruz,
Same issue here. However, I always update the dependencies as you indicate in my pipeline. No errors in my build job. The icon does not appear on my smartphone.
from toha.
I just updated the modules and dependencies locally, but it still doesn't work. Personally, I have it deployed on GitHub with actions, and it doesn't give any errors.
from toha.
@niltied , @javierasping can you please point me to your repository? I am suspecting you are still using bootstrap 4.x. We have updated to bootstrap 5.x.
from toha.
Yes, mine is https://github.com/javierasping/sentinel.
from toha.
@javierasping why did you duplicated the layout files? Those files have changed. Since, you have duplicated them, hugo is using your version instead of theme version.
https://github.com/javierasping/sentinel/tree/main/layouts
from toha.
I tried deleting my layouts folder locally and copying the one from the latest version of the theme, but I only have one language configured, it fails to run
javiercruces@HPOMEN15:~/Documentos/sentinel$ hugo server --disableFastRender --logLevel info
Watching for changes in /home/javiercruces/Documentos/sentinel/{archetypes,assets,content,data,layouts,node_modules,package.hugo.json,package.json,static}
Watching for config changes in /home/javiercruces/Documentos/sentinel/config.yaml, /home/javiercruces/Documentos/sentinel/go.mod
Start building sites …
hugo v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa+extended linux/amd64 BuildDate=2024-01-26T15:54:24Z VendorInfo=gohugoio
INFO copy static: syncing static files to /
INFO build: running step process duration 60.831208ms
INFO build: running step assemble duration 4.949826ms
ERROR render of "page" failed: "/home/javiercruces/Documentos/sentinel/layouts/notes/single.html:7:8": execute of template failed: template: notes/single.html:7:8: executing "sidebar" at <hugo>: can't evaluate field IsMultilingual in type interface {}
INFO build: running step render duration 747.673214ms
INFO build: running step postProcess duration 170.442µs
Built in 813 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/home/javiercruces/Documentos/sentinel/layouts/notes/single.html:7:8": execute of template failed: template: notes/single.html:7:8: executing "sidebar" at <hugo>: can't evaluate field IsMultilingual in type interface {}
I've been using the theme for about 2 years, so it's likely that some updates to the theme have caused duplications. I have the pipeline configured to update the theme automatically.
from toha.
Update Hugo version to latest
from toha.
Thank you very much!!! By replacing the layouts folder with the latest one from the theme and updating Hugo, the issue has been resolved.
One last thing !! On your example page, the text below the institution where you studied appears in white, but for me, it appears in black.
from toha.
It's not possible for to share with you my repo. It's in my private self-hosted Gitlab. I build my website in Docker image with the last hugo version (0.126.2) and Toha 4.5.0. npm, tidy, every dependance is upgraded.
from toha.
Thank you very much!!! By replacing the layouts folder with the latest one from the theme and updating Hugo, the issue has been resolved.
One last thing !! On your example page, the text below the institution where you studied appears in white, but for me, it appears in black.
The fix for the text issue is already in the main branch. I will release soon.
from toha.
@niltied Can you share the link to your site. Also, sharing packages.json
may help to identify the issue.
from toha.
Perfect, thank you very much!! As for me, you can close the issue; I'll keep an eye on the repository for the update. Do you know if the pipeline that updates the theme will add the change for me, or should I keep an eye out to do it manually?
My website --> www.javiercd.es
Link to package.json https://github.com/javierasping/sentinel/blob/main/package.json
{
"comments": {
"dependencies": {},
"devDependencies": {
"@fontsource/mulish": "github.com/hugo-toha/toha/v4",
"@fortawesome/fontawesome-free": "github.com/hugo-toha/toha/v4",
"autoprefixer": "github.com/hugo-toha/toha/v4",
"bootstrap": "github.com/hugo-toha/toha/v4",
"eslint": "github.com/hugo-toha/toha/v4",
"eslint-config-prettier": "github.com/hugo-toha/toha/v4",
"eslint-config-standard": "github.com/hugo-toha/toha/v4",
"eslint-plugin-import": "github.com/hugo-toha/toha/v4",
"eslint-plugin-n": "github.com/hugo-toha/toha/v4",
"eslint-plugin-no-jquery": "github.com/hugo-toha/toha/v4",
"eslint-plugin-promise": "github.com/hugo-toha/toha/v4",
"feather-icons": "github.com/hugo-toha/toha/v4",
"filterizr": "github.com/hugo-toha/toha/v4",
"flag-icon-css": "github.com/hugo-toha/toha/v4",
"fuse.js": "github.com/hugo-toha/toha/v4",
"highlight.js": "github.com/hugo-toha/toha/v4",
"imagesloaded": "github.com/hugo-toha/toha/v4",
"include-media": "github.com/hugo-toha/toha/v4",
"ityped": "github.com/hugo-toha/toha/v4",
"katex": "github.com/hugo-toha/toha/v4",
"mark.js": "github.com/hugo-toha/toha/v4",
"mermaid": "github.com/hugo-toha/toha/v4",
"plyr": "github.com/hugo-toha/toha/v4",
"popper.js": "github.com/hugo-toha/toha/v4",
"postcss": "github.com/hugo-toha/toha/v4",
"postcss-cli": "github.com/hugo-toha/toha/v4"
}
},
"dependencies": {},
"devDependencies": {
"@fontsource/mulish": "4.5.13",
"@fortawesome/fontawesome-free": "^6.2.0",
"autoprefixer": "^10.4.13",
"bootstrap": "^5.3.3",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.6.0",
"eslint-plugin-no-jquery": "^2.7.0",
"eslint-plugin-promise": "^6.1.1",
"feather-icons": "^4.29.1",
"filterizr": "^2.2.4",
"flag-icon-css": "^4.1.7",
"fuse.js": "^6.6.2",
"highlight.js": "^11.6.0",
"imagesloaded": "^5.0.0",
"include-media": "^1.4.10",
"ityped": "^1.0.3",
"katex": "^0.16.10",
"mark.js": "^8.11.1",
"mermaid": "^9.2.1",
"plyr": "^3.7.2",
"popper.js": "^1.16.1",
"postcss": "^8.4.31",
"postcss-cli": "^8.3.1"
},
"name": "hugo-toha.github.io",
"version": "0.1.0"
}
from toha.
Perfect, thank you very much!! As for me, you can close the issue; I'll keep an eye on the repository for the update. Do you know if the pipeline that updates the theme will add the change for me, or should I keep an eye out to do it manually?
My website --> www.javiercd.es
Link to package.json https://github.com/javierasping/sentinel/blob/main/package.json
{ "comments": { "dependencies": {}, "devDependencies": { "@fontsource/mulish": "github.com/hugo-toha/toha/v4", "@fortawesome/fontawesome-free": "github.com/hugo-toha/toha/v4", "autoprefixer": "github.com/hugo-toha/toha/v4", "bootstrap": "github.com/hugo-toha/toha/v4", "eslint": "github.com/hugo-toha/toha/v4", "eslint-config-prettier": "github.com/hugo-toha/toha/v4", "eslint-config-standard": "github.com/hugo-toha/toha/v4", "eslint-plugin-import": "github.com/hugo-toha/toha/v4", "eslint-plugin-n": "github.com/hugo-toha/toha/v4", "eslint-plugin-no-jquery": "github.com/hugo-toha/toha/v4", "eslint-plugin-promise": "github.com/hugo-toha/toha/v4", "feather-icons": "github.com/hugo-toha/toha/v4", "filterizr": "github.com/hugo-toha/toha/v4", "flag-icon-css": "github.com/hugo-toha/toha/v4", "fuse.js": "github.com/hugo-toha/toha/v4", "highlight.js": "github.com/hugo-toha/toha/v4", "imagesloaded": "github.com/hugo-toha/toha/v4", "include-media": "github.com/hugo-toha/toha/v4", "ityped": "github.com/hugo-toha/toha/v4", "katex": "github.com/hugo-toha/toha/v4", "mark.js": "github.com/hugo-toha/toha/v4", "mermaid": "github.com/hugo-toha/toha/v4", "plyr": "github.com/hugo-toha/toha/v4", "popper.js": "github.com/hugo-toha/toha/v4", "postcss": "github.com/hugo-toha/toha/v4", "postcss-cli": "github.com/hugo-toha/toha/v4" } }, "dependencies": {}, "devDependencies": { "@fontsource/mulish": "4.5.13", "@fortawesome/fontawesome-free": "^6.2.0", "autoprefixer": "^10.4.13", "bootstrap": "^5.3.3", "eslint": "^8.31.0", "eslint-config-prettier": "^8.6.0", "eslint-config-standard": "^17.0.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-n": "^15.6.0", "eslint-plugin-no-jquery": "^2.7.0", "eslint-plugin-promise": "^6.1.1", "feather-icons": "^4.29.1", "filterizr": "^2.2.4", "flag-icon-css": "^4.1.7", "fuse.js": "^6.6.2", "highlight.js": "^11.6.0", "imagesloaded": "^5.0.0", "include-media": "^1.4.10", "ityped": "^1.0.3", "katex": "^0.16.10", "mark.js": "^8.11.1", "mermaid": "^9.2.1", "plyr": "^3.7.2", "popper.js": "^1.16.1", "postcss": "^8.4.31", "postcss-cli": "^8.3.1" }, "name": "hugo-toha.github.io", "version": "0.1.0" }
I asked package.json from @niltied. Your one is already good.
from toha.
Hi @hossainemruz,
Finally, It was always OK. My pipeline works fine. My website is clean.
My website (testing environment) : http://hugo.dietlin.eu/en/
from toha.
@niltied I can't reach http://hugo.dietlin.eu/en/.
from toha.
@hossainemruz, try again, it work fine now.
from toha.
@niltied What exactly your issue right now? I can see your site is working fine. The theme selector and language selector seems to be working properly.
from toha.
Related Issues (20)
- navbar-brand text should be customizable (not always site.Title)
- Huge amount of whitelines in generated html files HOT 1
- Oversized application.js HOT 3
- Day of week missing in Finnish HOT 2
- JSBUILD failed when init from scratch HOT 2
- How to disable "light" theme? HOT 1
- Site always shows English language independent of browser settings/weights HOT 2
- Default color-schema seems to be "system", not "light" HOT 3
- Dark to Light Mode Switcher HOT 2
- Degree name not changing color with dark mode
- Errors after upgrade from V3 to V4 HOT 2
- Feature Request: Option to hide the left sidebar (toggle) HOT 1
- Feature Request: Do not allow image width that is lesser than page width to fill/fit the remaining page width HOT 1
- Imprt user stars and repos (See my implementation) HOT 3
- Feature Request: support custom domains HOT 1
- Feature Request - Add Copy Button to Code Blocks
- bug Google Analytics has stopped working HOT 8
- Receiving errors when starting the server (can't evaluate field IsMultilingual in type interface {}) HOT 8
- .Sites.First was deprecated in Hugo v0.127.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toha.