Wintersmith is a simple yet flexible static site generator. It takes contents (markdown, less, scripts, etc), transforms them using plugins and outputs a static website (html, css, images, etc) that you can host anywhere. It ships with plugins for markdown and jade templates, if you need something else check the plugin listing or write your own! It is written in Javascript/Coffeescript and for use with NodeJS.
Questions tagged [wintersmith]
23 questions
0
votes
1 answer
need to access location.hash in jade, wintersmith
I am using Wintersmith and need to access the location.hash as a variable.
This is what I tried, but it is producing a Cannot read property 'location' of undefined error:
- var hash = window.location.hash
- var articles = …

Rhea
- 644
- 1
- 5
- 14
0
votes
2 answers
Wintersmith serve /manifest.json
I'm trying to serve a /manfest.json file - it has some icon information for android.
{
"name": "woot.io",
"icons": [
{
"src": "\/android-chrome-192x192.png",
"sizes": "192x192",
"type":…

Michael Cole
- 15,473
- 7
- 79
- 96
0
votes
1 answer
Enabling Excerpts with Wintersmith
I can't get Wintersmith to generate excerpts on the index page.
I see this:
if article.intro.length > 0
!= typogr(article.intro).typogrify()
if article.hasMore
p.more
a(href=article.url) more
But I'm not sure what to adjust…

ultraloveninja
- 1,969
- 5
- 27
- 56
0
votes
1 answer
Wintersmith: Two paginated sections
In my wintersmith-built site, I want to have:
index.html containing a news feed
blog.html containing a blog index
I copied paginator.coffee into newspaginator.coffee, tweaked it to return 'news' instead of 'articles', and with a couple of other…

James Harkins
- 99
- 1
- 6
0
votes
1 answer
How to use node.js methods in Jade template within Wintersmith
I have asked google like million times and haven't got any concrete answers... I would like to use, say, following code in the jade template... however it gives an error on the first line... Please could you point me to the right direction... Thanks…
0
votes
0 answers
Spawning node.js server with nginx
So this is something new to me. I have a node.js Application running on my server on Port 3000. I have an nginx Proxy:
upstream websli_nodejs_app_2 {
server 127.0.0.1:3000;
}
# this is the dynamic websli server
server {
listen 80;
server_name…

rapsli
- 749
- 1
- 8
- 23
0
votes
1 answer
How to stop the preview server
This code is based on wintersmith static site generator
In my code I'm starting the preview server like this:
env.preview(function(error, server) {
if (error) throw error;
console.log('Server running!');
setTimeout(function(){
…

rapsli
- 749
- 1
- 8
- 23
0
votes
1 answer
What is the best approach for setting Wintesmith up with multiple sites?
I am about to set up Wintersmith (wintersmith.io) for two separate sites (one content site and one app) and was wondering if there are any 'gotchas' or best practices with regards to this.
The plan is to use Wintersmith, Jade, LESS,…

gumaflux
- 330
- 2
- 13