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
8
votes
2 answers
Intergrating Static Site generators with php
I'm currently building a website using php that won't need regular updating and I thought of using static site generators as it will have a blog like feature. However my website contains a form the will link with a database and the problem i'm…

Omar Flores
- 91
- 1
- 3
3
votes
2 answers
"Unexpected identifier" when adding extends/block to wintersmith-jade content file
I am making a static website using Wintersmith alongside the wintersmith-stylus and wintersmith-jade plugins.
I want to add a specific CSS file in a help page. The help page is based off the "layout" template. When I try to use a block to insert…

AquaGeneral
- 155
- 1
- 19
3
votes
2 answers
Wintersmith: error Error loading plugin './node_modules/wintersmith-coffee/': Cannot find module './plugin'
I built a site with wintersmith in November of 2013. It's live at http://powma.com
I'm coming back to it, but it's not building :-{
I don't mind getting my hands dirty, but I don't know where to start. I'm getting this error:
error Error loading…

Michael Cole
- 15,473
- 7
- 79
- 96
3
votes
2 answers
wintersmith: visualise the content tree
The wintersmith api documentation talks about :
getPluginColor()
Return vanity color used to identify the plugin when printing the content tree choices are: bold, italic, underline, inverse, yellow, cyan, white, magenta, green, red, grey, blue,…

airtonix
- 4,772
- 2
- 38
- 36
3
votes
1 answer
Accessing additional markdown metadata parameters in Wintersmith
I'm trying to setup a site using Wintersmith as a static site generator in Node.js. By default, articles written in markdown to be published as content in the site use a short heading section to specify some of the metadata about the article that…

mbeasley
- 4,864
- 5
- 27
- 39
3
votes
4 answers
how to filter out content nodes with wintersmith static site generator?
In a Wintersmith application (node.js static site generator) I have several contents/articles that I want to pre-write.
I only want them to be generated when their metadata.date is in the past regarding to the date of generation.
How can you do this…

Jerome WAGNER
- 21,986
- 8
- 62
- 77
2
votes
0 answers
jade dynamic includes work around
I'm working in a node/wintersmith/jade stack and am attempting to loop through a series of markdown files and pull out metadata to create dynamic file paths. I've read Use a variable in a Jade include and realize that dynamic includes isn't possible…

presswanders
- 655
- 6
- 8
2
votes
1 answer
How to strip whitespace in Wintersmith preview output
Is there an easy way to remove all HTML whitespace from both preview and build output from Wintersmith, without writing a plugin?

Stuart Harrington
- 21
- 1
2
votes
1 answer
How can I have Wintersmith generate a static site with a blog in a subdirectory?
I'm looking into Wintersmith-ifying my site, which is currently hand-written. I have a couple pages: index.html, projects.html, gpg.html, etc. I want to have a blog/ subdirectory, so that the final site looks like this:
.
|- index.html
|-…

strugee
- 2,752
- 4
- 19
- 30
2
votes
1 answer
How do I customize wintersmith paginator?
I've been setting up a site with Wintersmith and am loving it for the most part, but I cannot wrap my head around some of the under-the-hood mechanics. I started with the "blog" skeleton that adds the paginator.coffee plugin.
The question requires…

Jason Boyd
- 1,192
- 1
- 9
- 19
2
votes
1 answer
How can I have articles in Wintersmith not in their own subdirectory?
In Wintersmith, the default blog template generates posts from content/articles//index.md. This is fine as it allows associated files like images to be included with the article. But in practice, most "blog posts" are just text content…

Jason Boyd
- 1,192
- 1
- 9
- 19
2
votes
1 answer
Out of the box support for deployment in wintersmith
Is there an automated way to easily host a static site made with wintersmith on Github Pages or Heroku?
I have tried writing a gruntfile, shell scripts and a couple of suggestions that were mentioned in this issue but all of them were quite…

tusharmath
- 10,622
- 12
- 56
- 83
1
vote
1 answer
Wintersmith: Simple metadata access through loop outside of page in content tree
I'm trying to loop through my Content Tree and pull out metadata from various markdown files. I saw the Paginator plugin example, but I feel like my use case is much more simple than needed from the Paginator.
If my contents dir structure looks…

hellodefinit
- 21
- 2
1
vote
2 answers
Limit amount of articles with a loop
On my index page I wanna give out two seperate lists of articles (I wouldn't mind using the pagination plugin by the way), and I want to list the last 5 in each "category". But I have no idea how I can count up in the loop.
I already…

koffeingeladen
- 325
- 1
- 2
- 11
0
votes
1 answer
Replace page meta description in Wintersmith
I have the following line in the wintersmith layout.pug:
...
head
meta(name='description' content=locals.description)
...
I know I can add to the head block in my article.pug template, something like this:
...
block append head
…

Zlatko
- 18,936
- 14
- 70
- 123