Coder Social home page Coder Social logo

Comments (14)

k-caps avatar k-caps commented on August 29, 2024 1

can you upload the code to a public git repo, so i can take a look at it ?

https://gitlab.com/k-caps/design-noa

from blist-hugo-theme.

nakibrayan3 avatar nakibrayan3 commented on August 29, 2024

can you upload the code to a public git repo, so i can take a look at it ?

from blist-hugo-theme.

nakibrayan3 avatar nakibrayan3 commented on August 29, 2024

can you upload the code to a public git repo, so i can take a look at it ?

https://gitlab.com/k-caps/design-noa

there is no config file in this repo. hugo can't work without a config file.

if this is a issue create a config file and it will be fixed.

from blist-hugo-theme.

k-caps avatar k-caps commented on August 29, 2024

can you upload the code to a public git repo, so i can take a look at it ?

https://gitlab.com/k-caps/design-noa

there is no config file in this repo. hugo can't work without a config file.

if this is a issue create a config file and it will be fixed.

As of hugo v0.110.0, hugo.toml or hugo.yaml (which I am using) is preferred:
https://gohugo.io/getting-started/configuration/#hugotoml-vs-configtoml

The problem here is not simply a missing configuration file. If it were, the project would build neither locally nor as a build, and this is not the case, as explained.

from blist-hugo-theme.

nakibrayan3 avatar nakibrayan3 commented on August 29, 2024

your problem is with css integrity. because blist-hugo-them checks if the css is legit before loading it,
to fix this you have to change the variable baseURL to your domain name and then server the website using that domain name.

so the css won't work in https://lcoalhost:xxxx but it will work if you deploy the website under the same domain as set in baseURL

from blist-hugo-theme.

k-caps avatar k-caps commented on August 29, 2024

your problem is with css integrity. because blist-hugo-them checks if the css is legit before loading it,
to fix this you have to change the variable baseURL to your domain name and then server the website using that domain name.

so the css won't work in https://lcoalhost:xxxx but it will work if you deploy the website under the same domain as set in baseURL

This is not the case. I have tried that, using the dns of cloudflare pages as baseurl, and also my custom domain. It does not work in production either. I can redeploy a broken build if you think that it is necessary.

from blist-hugo-theme.

nakibrayan3 avatar nakibrayan3 commented on August 29, 2024

when you use the command hugo to build the website, the css link is https://design-noa.com/css/styles.min.xxx.css. but when you serve the website locally the css file is not available under the domain design-noa.com. (even if it is, it won't work because the integrity check will fail)

but when you use hugo serve the css is link is /css/styles.min.xxx.css

the solution is to host the website under the domain design-noa.com, so that the file https://design-noa.com/css/styles.min.xxx.css exists.

from blist-hugo-theme.

nakibrayan3 avatar nakibrayan3 commented on August 29, 2024

i successfully deployed your website under the domain https://temp-930.pages.dev after changing baseurl: to "https://temp-930.pages.dev".

i will take it down after you see my messages :)

from blist-hugo-theme.

danaukes avatar danaukes commented on August 29, 2024

I'm having the same issue. I've confirmed my baseURL is fine. Seeing the same difference between generating the static site and serving locally.

hugo OR npm i && HUGO_ENVIRONMENT=production hugo --gc :
image

hugo serve or npm start :
image

I have tried similar strategies as the original poster. Strangely, the background shows up in dark mode!

hugo serve or npm start :
image

hugo OR npm i && HUGO_ENVIRONMENT=production hugo --gc :
image

from blist-hugo-theme.

k-caps avatar k-caps commented on August 29, 2024

i successfully deployed your website under the domain https://temp-930.pages.dev after changing baseurl: to "https://temp-930.pages.dev".

i will take it down after you see my messages :)

Thanks, I hadn't received notifications on this issue for some reason until danaukes posted..
I can try serving the site with no subdomain, but I have tried changing the baseURL a few times, to all sorts of different optioms and I haven't gotten it to work yet - that's what I meant in the very end of OP.

I'm having the same issue. I've confirmed my baseURL is fine. Seeing the same difference between generating the static site and serving locally.

hugo OR npm i && HUGO_ENVIRONMENT=production hugo --gc : image

hugo serve or npm start : image

I have tried similar strategies as the original poster. Strangely, the background shows up in dark mode!

hugo serve or npm start : image

hugo OR npm i && HUGO_ENVIRONMENT=production hugo --gc : image

What is your hosting? Is it perhaps cloudflare pages? Maybe cloudflare has some kind of css protection or stripping in place?

from blist-hugo-theme.

kuhjunge avatar kuhjunge commented on August 29, 2024

@danaukes I have exact the same problem.

It seems like ascentColor = "bg-blue-100" is ignored on css.

If I add a custom css Class with: .bg-blue-100 { --tw-bg-opacity: 1; background-color: rgba(219, 234, 254, var(--tw-bg-opacity)); } it works fine.

I hosted the site locally with xampp.

from blist-hugo-theme.

HuizhiXu avatar HuizhiXu commented on August 29, 2024

Same issue here. The website looks strange in server but perfect on localhost. I got only one styles.min in css folder after running hugo -D.

from blist-hugo-theme.

michaelminter avatar michaelminter commented on August 29, 2024

Something wrong with tailwind.config I think. Will try to debug more if I have time available soon for blog work again.

from blist-hugo-theme.

filippkowalski avatar filippkowalski commented on August 29, 2024

any updates on the issue? observed same thing on my side, works fine locally, it doesn't on the sever, host address is configured properly

from blist-hugo-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.