Git Product home page Git Product logo

Comments (4)

momargoh avatar momargoh commented on July 21, 2024 1

Thank you so much Mark, I can't believe how quickly you've fixed that up. I just merged your PR and fixed up the baseURL and everything is deployed already! Enjoy your coffees :)

from hinode.

momargoh avatar momargoh commented on July 21, 2024

Hi Mark, I'm trying to use your theme on a blog deployed on netlify, but none of the styles are loading. Checking the console log, there seems to be an issue with content security policy for script-src but I can't see any more detail than just Content Security Policy: The page's settings blocked the loading of a resource at inline ("script-src").

My blog is www.barefootbushwalk.blog and the repo is at https://github.com/momargoh/barefootbushwalk . Are you able to help me out with this because I think your theme looks great and would love to be able to use it!

from hinode.

markdumay avatar markdumay commented on July 21, 2024

Hi Momar, great to hear you like the theme! I was able to recreate the problem and to provide a solution. I submitted two additional bug reports (#105 and #106) too. I created a fork of your repo here. These are my observations and recommendations:

  1. I reverted back to the original netlify.toml file, as your configuration seemed to have different indentation. I'm not sure how strict toml processing is, but I changed back to the original indentation anyways.
  2. I added the required CSP items for script-src, frame-src, and img-src, some of them were not in sync with your server.toml (which contains the CSP configuration for local development).
  3. I added the command npm run prod to the package.json file to start a local production server to reproduce the CSS errors.
  4. I added a new file layouts/partials/head/stylesheet.html to provide a fix for the incorrect CSS purge in production.
  5. The site has been deployed to Netlify on bush.markdumay.org.

I'll submit a PR to your repo so you can integrate the fixes with your own repo if you wish. Be sure to change back the baseURL though, as I updated this to bush.markdumay.org for testing with Netlify.

from hinode.

markdumay avatar markdumay commented on July 21, 2024

Fixed with #109

from hinode.

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.