Questions tagged [docpad]

DocPad is a language agnostic document management system built on Node.js. It's comparable to static site generators such as Jekyll and Octopress, however is not limited to static site generation.

DocPad is a language agnostic document management system built on Node.js. It's comparable to static site generators such as Jekyll and Octopress, however is not limited to static site generation.

255 questions
2
votes
2 answers

How do I get a collection of files with `write: false` in DocPad

I have a setup like so: portfolio.html.eco portfolio/ - project1.html.md - project2.html.md - etc. I want this to all be combined into a single large portfolio.html file in the out/ directory. All of my project files have the write: false…
Nathan Friedly
  • 7,837
  • 3
  • 42
  • 59
2
votes
1 answer

How to have a the docpad grunt skeleton min vendor js files with live reload

I'm using skeleton #2, HTML5BP + Grunt. The first time I docpad run the following happens: info: LiveReload listening to new socket on channel /docpad-livereload Performing writeFiles (postparing) at 0/1 0% [...] Running "min:js" (min) task File…
erutan
  • 48
  • 7
2
votes
1 answer

DOCPAD How can I exclude files from being pushed into the out-folder

Example: I have a config.rb-file under src/files/config.rb How can I exclude this file being pushed by docpad into out/config.rb Is there an exclude-command for the config-file like in jekyll for example? exclude: makelive.sh, ideas.txt, newpost.rb
Phlow
  • 688
  • 4
  • 14
2
votes
2 answers

How to setup docpad.coffee helper functions for collection generation?

For collections I'd like to use helpers defined within docpad.coffee such as getLang: (inLang) -> "/" + inLang + "/" ... myCollection: -> @getCollection("html").findAllLive().on "add", (model) -> model.setMeta({ url:…
stackasec
  • 65
  • 5
2
votes
1 answer

Which way of including content multiple times into one layout in Docpad is most appropriate?

I've started to digging into the Docpad for my current project and so far I've discovered 3 ways to include content. We use content template data variable to include child layout/document into the layout. We have include(relativePath) method to…
Andrey
  • 1,018
  • 12
  • 21
2
votes
1 answer

How do I have my plugin fire before another in docpad so I can preprocess the content?

I would like to create a plugin which preprocesses content like markdown before it is passed to marked. I don't want to create yet another extension to tack on the filename but would rather just search for a pattern in the content and if found do a…
Jeff Barczewski
  • 446
  • 3
  • 7
2
votes
1 answer

Sending simple email from static page

I'm new to DocPad. I really like the idea of static page generation and had this in mind for some time, but great that there's already a mature project out there! However, while I get a rough picture of how DocPad works, what would you recommend be…
aalimovs
  • 175
  • 1
  • 2
  • 10
2
votes
1 answer

Minifying html with Docpad

Is there a way to render out minified html with Docpad? For reasons I'm too lazy to explain, grunt plugins are not a viable solution for me.
SirDemon
  • 1,758
  • 15
  • 24
2
votes
0 answers

docpad plugin for convert [[ ]] (double square brackets) to link as a wiki

I want a docpad plugin for convert [[ ]] (double square brackets) to link as a wiki. I'm thinking than this is a very usefull plugin, but I don't find this kind of plugins. The idea is convert this: This is a page with a [[link]] to This is a page…
2
votes
0 answers

docpad+mongodb Error: failed to connect to [undefined:27017]

$ docpad run warning: Skipped the unsupported plugin: mongoose-validate due to engine info: Welcome to DocPad v6.35.0 info: Plugins: cleanurls, coffeescript, eco, livereload, marked, partials, stylus, text info: Environment: development info: DocPad…
Dennis
  • 56,821
  • 26
  • 143
  • 139
2
votes
1 answer

Listing post with Docpad and Jade

I try to list my blog post content from another directory inside blog directory, it only output the jade content of the .jade file instead of rendered HTML content. blog dir -> travel.html.jade, travel dir -> fristtrip.html.jade. Here is my…
billyduc
  • 692
  • 2
  • 8
  • 15
2
votes
2 answers

how can I retrieve the latest 5 blog posts on the homepage of my docpad website?

I have been testing docpad as CMS and I want to know how can I display in my homepage the latest 5 posts from the blog. I have looked for examples but no luck so far. Do i need some plugin for that functionality? at the moment im using the…
2
votes
0 answers

How does docpad pass template data, blocks, and helpers to rendering plugins?

I am trying to build a skeleton to use with marked, less, and handlebars. The handlebars plugin readme is not exactly clear on what the snippet of docpad config code is actually doing (and I cannot seem to get it working I can render the content of…
GnarlinBrando
  • 671
  • 5
  • 4
2
votes
2 answers

Structuring Markdown files in DocPad

My website currently has some pages of the form:
( slide content )
( examples content )
( remarks content )
David Thomas
  • 775
  • 6
  • 11
2
votes
2 answers

Adding a search form to Docpad site

Is there a way to have a native search form that indexes search results in Docpad. The dynamic search page example doesn't work and looking at the code wasn't any help to me. I think a search form example and a basic contact form example would be…
drejohnson
  • 69
  • 2
  • 9
1 2
3
16 17