Coder Social home page Coder Social logo

Comments (8)

RobJohnston avatar RobJohnston commented on May 27, 2024 1

I uninstalled Hugo and installed Hugo Extended. That fixed it for me, thanks a bunch!

It looks like a great theme and I'm excited to dig into it. Good work 👍

from hugo-clarity.

onweru avatar onweru commented on May 27, 2024

@ashishtheapexian,

Pull the change. If all else fail, delete the resources folder and retry.

from hugo-clarity.

chipzoller avatar chipzoller commented on May 27, 2024

@ashishtheapexian Can you please confirm the latest commit fixes the issue for you?

from hugo-clarity.

ashishtheapexian avatar ashishtheapexian commented on May 27, 2024

Hi, apologies for delay.

I tried new changes but no luck.

One workaround I did, created one common CSS file and referred in the head partial.
And removed all the old-style references.

I can share any log or activity if you want.

My issue is fixed by the workaround.

from hugo-clarity.

chipzoller avatar chipzoller commented on May 27, 2024

@ashishtheapexian I have just built the site based on the instructions here and have no rendering problems with the example site. Are you saying if following these instructions your site, when hosted locally, still does not render correctly?

image

from hugo-clarity.

chipzoller avatar chipzoller commented on May 27, 2024

If you are still hitting this issue, please share detailed steps to reproduce and the versions of the software used in producing them (i.e., Hugo, OS, browser, etc.).

from hugo-clarity.

RobJohnston avatar RobJohnston commented on May 27, 2024

Same problem here using the following steps (Windows 10):

hugo new site TestSitecd TestSitegit initgit submodule add https://github.com/chipzoller/hugo-clarity themes/hugo-clarityxcopy .\themes\hugo-clarity\exampleSite\* .\ /s /ehugo server

At this point, I see the same screenshot with missing CSS files and a complaint about the integrity attribute of the CSS file. Seems like it calculated the hash wrong, as removing that loads the site properly.

hugo version
Hugo Static Site Generator v0.74.3-DA0437B4 windows/amd64 BuildDate: 2020-07-23T16:23:30Z

As suggested above, I deleted the "resources" folder and tried again:

hugo server
Building sites … Built in 123 ms
Error: Error building site: TOCSS: failed to transform "sass/main.sass" (text/x-sass): resource "sass/sass/main.sass_d2bdc985df0e3369a538eb4e858e857f" not found in file cache

from hugo-clarity.

chipzoller avatar chipzoller commented on May 27, 2024

You should be using Hugo Extended to generate this site. I tried on my end with the exact same process given your commands and the exampleSite renders properly.

hugo new site testsite
Congratulations! Your new Hugo site is created in C:\Users\Chip\Documents\testsite.

Just a few more steps and you're ready to go:

1. Download a theme into the same-named folder.
   Choose a theme from https://themes.gohugo.io/ or
   create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want to add some content. You can add single files
   with "hugo new <SECTIONNAME>\<FILENAME>.<FORMAT>".
3. Start the built-in live server via "hugo server".

Visit https://gohugo.io/ for quickstart guide and full documentation.
PS C:\Users\Chip\Documents> cd .\testsite\
PS C:\Users\Chip\Documents\testsite> git init
Initialized empty Git repository in C:/Users/Chip/Documents/testsite/.git/
PS C:\Users\Chip\Documents\testsite>
PS C:\Users\Chip\Documents\testsite> git submodule add https://github.com/chipzoller/hugo-clarity themes/hugo-clarity
Cloning into 'C:/Users/Chip/Documents/testsite/themes/hugo-clarity'...
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 1672 (delta 13), reused 23 (delta 9), pack-reused 1640
Receiving objects: 100% (1672/1672), 4.87 MiB | 9.92 MiB/s, done.
Resolving deltas: 100% (912/912), done.
warning: LF will be replaced by CRLF in .gitmodules.
The file will have its original line endings in your working directory
PS C:\Users\Chip\Documents\testsite> xcopy .\themes\hugo-clarity\exampleSite\* .\ /s /e
Overwrite C:\Users\Chip\Documents\testsite\config.toml (Yes/No/All)? Y
.\themes\hugo-clarity\exampleSite\config.toml
.\themes\hugo-clarity\exampleSite\configTaxo.toml
.\themes\hugo-clarity\exampleSite\LICENSE
.\themes\hugo-clarity\exampleSite\README.md
.\themes\hugo-clarity\exampleSite\archetypes\post.md
.\themes\hugo-clarity\exampleSite\content\about.md
.\themes\hugo-clarity\exampleSite\content\archives.md
.\themes\hugo-clarity\exampleSite\content\_index.md
.\themes\hugo-clarity\exampleSite\content\homepage\about.md
.\themes\hugo-clarity\exampleSite\content\homepage\index.md
.\themes\hugo-clarity\exampleSite\content\homepage\work.md
.\themes\hugo-clarity\exampleSite\content\post\emoji-support.md
.\themes\hugo-clarity\exampleSite\content\post\markdown-syntax.md
.\themes\hugo-clarity\exampleSite\content\post\math-typesetting.md
.\themes\hugo-clarity\exampleSite\content\post\placeholder-text.md
.\themes\hugo-clarity\exampleSite\content\post\rich-content.md
.\themes\hugo-clarity\exampleSite\content\post\_index.md
.\themes\hugo-clarity\exampleSite\data\menu.yaml
.\themes\hugo-clarity\exampleSite\data\social.yaml
.\themes\hugo-clarity\exampleSite\layouts\.gitkeep
.\themes\hugo-clarity\exampleSite\resources\_gen\assets\sass\sass\main.sass_d2bdc985df0e3369a538eb4e858e857f.content
.\themes\hugo-clarity\exampleSite\resources\_gen\assets\sass\sass\main.sass_d2bdc985df0e3369a538eb4e858e857f.json
.\themes\hugo-clarity\exampleSite\static\.gitignore
.\themes\hugo-clarity\exampleSite\static\images\building.png
.\themes\hugo-clarity\exampleSite\static\images\dollar.png
.\themes\hugo-clarity\exampleSite\static\logos\logo.png
26 File(s) copied
PS C:\Users\Chip\Documents\testsite>
PS C:\Users\Chip\Documents\testsite>
PS C:\Users\Chip\Documents\testsite> hugo serve -v
INFO 2020/08/17 20:05:34 No translation bundle found for default language "en"
INFO 2020/08/17 20:05:34 Translation func for language en not found, use default.
INFO 2020/08/17 20:05:34 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.
INFO 2020/08/17 20:05:34 Using config file:
Building sites … INFO 2020/08/17 20:05:34 syncing static files to C:\Users\Chip\Documents\testsite\
INFO 2020/08/17 20:05:35 Downloading: https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BGvuInzyFAe/&amp;maxwidth=640&amp;omitscript=true ...
INFO 2020/08/17 20:05:35 Downloading: https://api.twitter.com/1/statuses/oembed.json?id=1085870671291310081&omit_script=true ...
INFO 2020/08/17 20:05:35 Downloading: https://vimeo.com/api/oembed.json?url=https://vimeo.com/48912912 ...

                   | EN
-------------------+-----
  Pages            | 42
  Paginator pages  |  0
  Non-page files   |  0
  Static files     | 61
  Processed images |  0
  Aliases          | 25
  Sitemaps         |  1
  Cleaned          |  0

Built in 1034 ms
Watching for changes in C:\Users\Chip\Documents\testsite\{archetypes,content,data,layouts,static,themes}
Watching for config changes in C:\Users\Chip\Documents\testsite\config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
PS C:\Users\Chip\Documents\testsite> hugo version
Hugo Static Site Generator v0.74.2/extended windows/amd64 BuildDate: unknown

image

from hugo-clarity.

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.