Comments (8)
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.
Pull the change. If all else fail, delete the resources folder and retry.
from hugo-clarity.
@ashishtheapexian Can you please confirm the latest commit fixes the issue for you?
from hugo-clarity.
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.
@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?
from hugo-clarity.
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.
Same problem here using the following steps (Windows 10):
❯ hugo new site TestSite
❯ cd TestSite
❯ git init
❯ git submodule add https://github.com/chipzoller/hugo-clarity themes/hugo-clarity
❯ xcopy .\themes\hugo-clarity\exampleSite\* .\ /s /e
❯ hugo 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.
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/&maxwidth=640&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
from hugo-clarity.
Related Issues (20)
- [Bug] CORS error when using www. subdomain, .css and .js files not loading HOT 4
- [Bug] Mobile rendering display problem HOT 2
- [Bug] `-webkit-appearance: none` breaks embedded form styling HOT 3
- [Bug] CORS error when using multilingual sites, .css and .js files not loading
- [Bug] CORs error when publishing to Gitlab Pages HOT 3
- [Feature] Mastodon profile support HOT 4
- [Bug] Inline MathJax/Katex doesn't work HOT 1
- [Bug] Caret icon path is incorrect if iconsDir is changed. HOT 1
- [Bug] `blog_search_field_placeholder` i18n key does not seem to be used. HOT 1
- [Bug] Path to thumbnail images incorrect on second and higher page
- [Bug] ReadingTime broken after git submodule update HOT 1
- [Bug] Related posts in series not displayed in example site
- [Docs] HOT 3
- [Feature]
- [Feature] Tabs for code blocks
- [Bug] [Feature Request] tags, categories & series items use posts' layout
- [Bug] Posts that have today's date but no time get first published at the end of the day HOT 4
- [Feature] Multipage Blog Post
- [Bug] featured: true / featured: false not working as expected HOT 5
- [Bug] If an image is scalable or not is not determined correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-clarity.