Coder Social home page Coder Social logo

Comments (7)

AmazingRise avatar AmazingRise commented on June 8, 2024 1

I've forgetten these compiled scss files, so only Hugo Extended can build it.
Please clone the latest version, to see if there are any further problems.

Thanks for your support.

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on June 8, 2024 1

For the benefit of other people, run git rm -rf themes/diary at root directory to remove the folder. Then run rm -rf .git/modules/themes/diary to remove it from git. Re-clone the version.

Install Hugo Extended. Re-run and it should works.

Thanks, it works now! 谢谢你那么快回答我!

In fact, after the several files uploaded in the latest commit, it should work for normal Hugo as well, no need to install Hugo Extended. That's my mistake.

没关系,我也是刚好有空,感谢支持! :)

from hugo-theme-diary.

jenlky avatar jenlky commented on June 8, 2024

For the benefit of other people, run git rm -rf themes/diary at root directory to remove the folder. Then run rm -rf .git/modules/themes/diary to remove it from git. Re-clone the version.

Install Hugo Extended. Re-run and it should works.

Thanks, it works now! 谢谢你那么快回答我!

from hugo-theme-diary.

jordan-dlh avatar jordan-dlh commented on June 8, 2024

Hello, I have installed the latest commit from your beautiful theme and it still doesn't work with vanilla Hugo.

Building sites … ERROR 2020/04/25 12:49:49 TOCSS: failed to transform "scss/dark-mode.scss" (text/x-scss): resource "scss/scss/dark-mode.scss_48b060fe05b0a273d182ef83c0605941" not found in file cache
Built in 31 ms
Error: Error building site: TOCSS: failed to transform "scss/journal.scss" (text/x-scss): resource "scss/scss/journal.scss_48b060fe05b0a273d182ef83c0605941" not found in file cache

Apparently you forgot to push the assets at the root of the theme. When I copy /exampleSite/resources/ to /resources/ in your theme it works.

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on June 8, 2024

Hello, I have installed the latest commit from your beautiful theme and it still doesn't work with vanilla Hugo.

Building sites … ERROR 2020/04/25 12:49:49 TOCSS: failed to transform "scss/dark-mode.scss" (text/x-scss): resource "scss/scss/dark-mode.scss_48b060fe05b0a273d182ef83c0605941" not found in file cache
Built in 31 ms
Error: Error building site: TOCSS: failed to transform "scss/journal.scss" (text/x-scss): resource "scss/scss/journal.scss_48b060fe05b0a273d182ef83c0605941" not found in file cache

Apparently you forgot to push the assets at the root of the theme. When I copy /exampleSite/resources/ to /resources/ in your theme it works.

Should it be ./themes/diary/resources/_gen/assets/scss/, rather than ./themes/diary/exampleSite/resources/_gen/assets/scss/?
I will fix it later, thanks for your feedback.

from hugo-theme-diary.

jordan-dlh avatar jordan-dlh commented on June 8, 2024

Yes this is what I did to make it work. If I understand correctly (but I'm new to hugo), ./themes/<theme>/resources/ is where hugo looks for pregenerated assets. See https://discourse.gohugo.io/t/should-i-use-hugo-extended-for-a-new-hugo-project/13954/5 and https://discourse.gohugo.io/t/why-does-hugo-create-the-resources-directory/13021/2

Thank you for your work :-)

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on June 8, 2024

Yes this is what I did to make it work. If I understand correctly (but I'm new to hugo), ./themes/<theme>/resources/ is where hugo looks for pregenerated assets. See https://discourse.gohugo.io/t/should-i-use-hugo-extended-for-a-new-hugo-project/13954/5 and https://discourse.gohugo.io/t/why-does-hugo-create-the-resources-directory/13021/2

Thank you for your work :-)

OK, I've uploaded them to master branch.
Thank you very much.

from hugo-theme-diary.

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.