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
3
votes
1 answer

Prevent Docpad from scanning vendor files (but still copy them)

I've got a project which holds third party files (installed with Bower) under src/public/vendor. It seems ever since I added those docpad has gotten considerably slower in generating ./out, no doubt cause it's going over all the vendor files. I'd…
Naatan
  • 3,424
  • 4
  • 32
  • 51
3
votes
4 answers

Show only partial blog post in Docpad, with "Read More" link

I need show only partial blog post... with a "Read more" link to full blog post. HOME: List last 5 partial/intro posts with Read More. This is possible in Docpad? Thanks..
3
votes
1 answer

Integrate express.js application and docpad

I've been using docpad to pre-generate a front-end html/js application (using docpad generate --env static). After a few hangups and a bug fix from balupton it now works great and saves me a lot of time. I simply copy these file to an existing…
hypercubed
  • 51
  • 3
3
votes
1 answer

Docpad Scss doesn't work

I'm trying to get docpad working with scss on a windows 7 system. As far as I know i've got sass installed and working cause it starts running from the command line. The path in the environment vars is correct. docpad is working cause I get compiled…
Michaud
  • 1,098
  • 8
  • 12
3
votes
3 answers

Password protect part of an DocPad site

I guess this may be a 'lost case', but is it possible to password protect one or more pages generated by DocPad? Is it possible to make a plugin or something that let you say protected = true in the metadata section of a page? Or do I have to use…
Vegar
  • 12,828
  • 16
  • 85
  • 151
3
votes
3 answers

How to deploy a site that is not at the root of a server with DocPad?

I'm using DocPad to make a demo site and i want to deploy it at for example: http://www.example.com/demo/ but when i use docpad generate --env static, links are relative to the root of the server not demo directory so links are broken. What can i do…
Dharma
  • 118
  • 1
  • 7
3
votes
1 answer

DocPad generate pages without extension

Is there any way to configure DocPad generate pages without extension, so hosting as static site in url it will look like: http://mysite.com/page1/ ?
Oleksii G.
  • 487
  • 5
  • 20
3
votes
2 answers

User provided content in DocPad

I'm considering DocPad to make a website with lots of user interaction like comments, user profiles etc. I like file based data storage, so I thought about writing data posted by users in files under src/documents/ (eg.…
Tad Lispy
  • 2,806
  • 3
  • 30
  • 31
3
votes
1 answer

What does Docpad's @getBlock do?

This is a simple question that I'm having trouble finding an answer to. I'm just beginning to use docpad to build a site. I've encountered the following line in the HTML5 Boilerplate skeleton: <%- @getBlock('styles').add(["/style.css"]).toHTML()…
fraxture
  • 5,113
  • 4
  • 43
  • 83
2
votes
2 answers

Multi-Domain Login

I'm working on a little node.js-project, and while googling alot, I kinda got a bit confused, but maybe some of you are able to point me towards the road again. Several websites are generated by DocPad (excellent piece of software), and hosted on…
lucorlis
  • 263
  • 1
  • 2
  • 9
2
votes
1 answer

docpad run error undefined .docpad.cson

So, I've been playing around with DocPad lately; I've run through the tutorial and have everything installed and working properly, except... In the interest of seeing how DocPad works with a larger site, I grabbed the code for Jason Young's…
Dan
  • 114
  • 2
  • 9
2
votes
1 answer

How to override rendering methods of marked compiler under docpad-plugin-marked?

I would like to extend marked markdown compiler in the docpad-plugin-marked package and ask for a suggestion how to do this most elegantly. For example, this is how the documentation of marked says to redefine compiling headers: var marked =…
Varvara Stepanova
  • 3,489
  • 4
  • 22
  • 26
2
votes
1 answer

Is there an efficient way in docpad to keep static and to-be-rendered files in the same directory?

I am rebuilding a site with docpad and it's very liberating to form a folders structure that makes sense with my workflow of content-creation, but I'm running into a problem with docpad's hard-division of content-to-be-rendered vs…
birchbark
  • 185
  • 1
  • 11
2
votes
1 answer

How to create a comma separated tag list in Docpad?

The tags for a post can be accessed within the post like this (using embedded Coffeescript):
Tags:
    <% for tag in @document.tags: %>
  • <%= tag %>
  • <%…
Erlend Leganger
  • 395
  • 1
  • 2
  • 8
2
votes
1 answer

Generating only a subset of posts in DocPad

I have seen folks using docpad for blogging, but didn't find a ready to use blogging framework. While Docpad compares to Jekyll, which are static site generators, I wanted something like Octopress which is purely a blogging framework. So I started…
1
2
3
16 17