Comments (7)
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.
For the benefit of other people, run
git rm -rf themes/diary
at root directory to remove the folder. Then runrm -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.
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.
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.
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.
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.
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/2Thank you for your work :-)
OK, I've uploaded them to master
branch.
Thank you very much.
from hugo-theme-diary.
Related Issues (20)
- 是否可以考虑使用此字体 HOT 1
- 夜间模式下看不见表格内容 HOT 2
- images not displaying HOT 2
- Dark mode refactor HOT 4
- Single quote is replaced with ’ HOT 6
- How to add RSS feed? I don't understand where to add rss link. HOT 3
- Google Analytics 4 will be replaced by Universal Analytics HOT 3
- Way to remove the darkmode toggle? HOT 1
- The About page appears on the homepage article list HOT 2
- <br> new line is not supported in this theme? HOT 1
- Summary feature required
- Can you add Artalk comment function?
- Language meta label and <h1> needed for better SEO HOT 2
- Drawers are not hidden when clicking ToC items on mobile view. HOT 1
- Fix highlighting
- 作者能麻烦您考虑一下加上视频播放功能吗 HOT 1
- URL for Tags does not seem to use baseURL
- error calling Paginator: pagination not supported for this page HOT 5
- iOS safari scrolls pages upwards / incorrect css syntax when headlines are used? HOT 2
- can't deploy site with vercel.
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-theme-diary.