Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Congratulations and initial steps #1

Open
t0t opened this issue Jun 11, 2015 · 5 comments
Open

Congratulations and initial steps #1

t0t opened this issue Jun 11, 2015 · 5 comments

Comments

@t0t
Copy link

t0t commented Jun 11, 2015

Hey, this is a very interesting project. I've cloned and playing and learning with it. 🐸

How can I add some pages and posts? I can't find them.

thanks!

@abstracthat
Copy link
Owner

Hello. Glad you are liking it.

Pages get added to /source/content. Any pages (.jade or .md) in the root of that folder is your top level pages... so /source/content/about.jade becomes http://yoursite.com/about/. Any folders in source/content become your collections. So you could have a blog collection or documentation, tutorials, recipes, as many as you want. Any files in these become pages (a.k.a. posts) in that collection. So /source/content/blog/my-post.md becomes http://yoursite.com/blog/my-post/. To get an index of all of the links add an index.jade file to the collection folder and extend the collection template.

There is not currently a scaffolding generator, though I do plan to write one eventually. For now you just have to make the files yourself. You might find it useful to clone the documentation site repo and have a look through there since it is a little more filled in with content... https://github.com/abstracthat/sitelightning.co.

You should definitely read through the quick start and documentation here: http://sitelighting.co/.

There will be a big push soon that enables the RSS feed and adds support for static email templating and campaign management via the Mailchimp API (through a couple of simple gulp commands of course).

@t0t
Copy link
Author

t0t commented Jun 12, 2015

the idea of 'collection' is quite similar to mongoDB. I like it. I'm specilally interested in almost ALL the ideas you are talking about.
I tryed jekyll and hexo but feel more comfortable with sitelighting. Is more robust, clean, minimal, versatile, compatible... Oh shit, Jade and stylus is so beautifull I have to learn them.
Personally I don't like to use system grids for layout. Flex give you more freedom.
I'll try to customize it by adding flex instead of grid. And think how can I add a CMS and angular functionality maybe... I don't know, I like single pages too...

@t0t
Copy link
Author

t0t commented Jun 12, 2015

hey!
After compiling to production gulp deploy I see some html elements like classes or id's are not wrapped with " <section class=content><p>Content here. or <input id=email name=EMAIL type=email placeholder="Your Email" required class=email> <button type=submit
Is it a bug?

Another question is if possible to push to a gh-pages branch when 'gulp deploy' like hexo does. I think github wont read production folder authomatically like jekyll. 😨

@abstracthat
Copy link
Owner

That looks like a bug. I'll have a look as soon as I can.

There is no gh-pages support but I could add that in. To do it yourself just add a deploy task using the gulp-gh-pages plugin.

This should override the deploy task in gulp-lightning so you need to call the gulp task 'build' as a dependency.

gulp.task 'deploy', ['build'], ->
  ghpages()

As for auto publishing (a la Jekyll) you can do that with Travis. http://www.jvandemo.com/how-to-use-travis-ci-to-automatically-deploy-a-harpjs-application-to-github-pages/

@abstracthat
Copy link
Owner

As to the assumed bug, HTMLMin is removing the attribute quotes as they are not required. I think it's fine to leave them out. It's minified output anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants