Comments (5)
Hmm I didn't think about this when I added the theming support... I think it would make sense to make the currently existing config keys accept multiple directories. A PR would be great!
from cryogen-core.
Getting into the thick of it, and I had a question. How much do you want to avoid breaking changes?
In particular, there's an undocumented effect of how sass
is currently called. The configuration doc says you need to add the css
directory to the :resources
list, but the way sass
is called, it works even if you forget to do that. Likewise, even though :sass-src
is set to css
by default, and the css
directory doesn't exist by default, it doesn't currently produce an error. (For any other resource directory, not existing is an error.) Should I fix that, if people might be relying on it, or preserve that behavior?
Mostly, my aim is to separate compiling Sass files from copying them to the public
directory, as they're currently combined in a way that makes it hard to add more dirs. The idea is to compile all Sass files first, then copy the resources over.
from cryogen-core.
I'd rather clear up all the inconsistencies than avoid breaking changes. If your approach feels intuitive then I'd say go for it.
Mostly, my aim is to separate compiling Sass files from copying them to the public directory, as they're currently combined in a way that makes it hard to add more dirs. The idea is to compile all Sass files first, then copy the resources over.
I think this will definitely clear up any confusion in the future.
from cryogen-core.
In that case, to preserve the current behavior, how about I leave the default :sass-src
as css
, but add a css
directory to the main cryogen repo, so it works correctly by default. Plus, that'll show people where to place non-theme Sass/CSS anyway.
from cryogen-core.
Sounds good to me.
from cryogen-core.
Related Issues (20)
- Change in clean-urls behaviour HOT 7
- Relax config schema
- Centred blue theme inconsistency HOT 1
- Changing `:public-dest` seems to break CSS/JS access HOT 6
- Compass is unmaintained since 2016 HOT 1
- Provide :preview-plaintext to every post, page for SEO HOT 1
- Provide an option to drop the date from file names HOT 2
- Should be able to configure the class on generated toc's HOT 1
- Proposal: Replace :content with :content-dom HOT 3
- An exception in compile-assets-timed should fail the build HOT 2
- Bug: cannot set a page as homepage HOT 1
- Overriding Config HOT 6
- Tags with special characters get a broken tag-output page. Like tag C# HOT 2
- <!-more-> marker characters HOT 5
- Adding `:posts` and `:pages` to params via :extend-params-fn does not behave as expected HOT 3
- Make :posts and :pages available in all posts and pages by default HOT 1
- Making css processing a plugin HOT 1
- Proposed enhancement: Automatically generate post metadata from plain markdown file HOT 9
- It would be nice to omit pages from prev/next if :page-index nil HOT 8
- Add header block for Google's 'Rich Snippets' nonsense HOT 2
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 cryogen-core.