GithubHelp home page GithubHelp logo

Something's not right about hugulp HOT 5 CLOSED

jbrodriguez avatar jbrodriguez commented on June 25, 2024
Something's not right

from hugulp.

Comments (5)

jbrodriguez avatar jbrodriguez commented on June 25, 2024 1

I replicated what you did.

Installed a theme (Prologue), generated the site, copied public folders to assets, ran hugulp and saw the errors.

They're mostly due to the theme using an old version of jquery (1.11.3), when 3.x is already out.

The site generated by hugulp build does reference fingerprinted assets (except for the fonts), but in general you should receive the benefits.

This is still not optimal however, I'll give it some more thought.

from hugulp.

jaydreyer avatar jaydreyer commented on June 25, 2024

Ahh. I think I got it. I copied everything that was generated into public to the corresponding subfolders of assets. When I ran the build command, it looks like it is minimizing, although I get a bunch of errors back during the process. Not sure if that's normal or not. It finishes and the local site seems to work fine.

from hugulp.

little-big-co avatar little-big-co commented on June 25, 2024

You're right. Everything that hugulp should take care of needs to be placed in assets and the corresponding subfolders. It is always a good idea to put all theme relevant things into the theme subfolder and everything else in the assets folder. If it shows errors or warning, then something is wrong ;-) Ideally, it should work without any errors/warnings. I had a similar issue with lots of warnings, especially in the JS files. I hired a developer to fix these. Mostly, it just has been a warning due to missing semicolons due to the mix of JS and jQuery. I don't like errors and warnings, even if the result works. It makes it harder to see if a real problem hides between all whose warnings. So better get rid of them.

After all it should look like your first result posted above.

from hugulp.

jbrodriguez avatar jbrodriguez commented on June 25, 2024

Hi @jaydreyer, I don't use themes so I've never really given too much thought to it.

In general, what you did should "work" as well as what @adcgn suggested.

I'll look into improving theme support.

from hugulp.

jaydreyer avatar jaydreyer commented on June 25, 2024

Excellent. Thanks for your help.

from hugulp.

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.