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

Redundant files after docpad generate --env static

I'm using the Clean URLs Plugin and I end up having redundant files in my /out/ directory after docpad generate --env static: one content.html and the same in /content/index.html I suppose that's a wrong behaviour? Does it result because docpad run…
psteinweber
  • 813
  • 12
  • 21
0
votes
1 answer

Getting a post excerpt in DocPad

This is what I'm currently using to "grab" my posts: https://gist.github.com/Greduan/5977871 And then I do a for loop .toJSON() etc. How can I make this grab an excerpt of the post and not all of the content? Cause I can just use @content but…
greduan
  • 4,770
  • 6
  • 45
  • 73
0
votes
1 answer

How to know in which environment we are from a collection definition?

I would like something like the following pseudo-code : collections: posts: function (database) { var match = env === 'debug' {layout: 'post', published: true} ? {layout: 'post'}; return database.findAllLive(match, {date:-1}); …
Maël Nison
  • 7,055
  • 7
  • 46
  • 77
0
votes
2 answers

Using emojis/emoticons in DocPad

What would I need to accomplish this? I'm thinking of using the Phantom Open Emoji set, but I would need to integrate it. If I can't use this, what could I use in exchange in order to have emojis in my content? I imagine I would have to make a…
greduan
  • 4,770
  • 6
  • 45
  • 73
0
votes
1 answer

How to detect the last Docpad render pass?

Im currently writing a small Docpad plugin to output a documents contentRenderedWithoutLayouts into a separate .json file next to the .html version for loading it via an ajax request later. The plugin works by overriding Baseplugin's render: (opts)…
FIELD
  • 1
  • 1
0
votes
0 answers

Docpad error: Error 15 (net::ERR_SOCKET_NOT_CONNECTED): Error unknown

I have been running on some problems since the last update (6.38.1). docpad seems to be broken on macosx the command "docpad run" or "docpad watch" returns the error (on the browser) Error 15 (net::ERR_SOCKET_NOT_CONNECTED): Error unknown when i…
0
votes
0 answers

os x server localhost alternate port not responding

Somehow the node.js server used for docpad running on my MacBook (running 10.8.4) are no longer accessible. Docpad (using the default "docpad run") normally publishes on port 9778, and is accessible via localhost:9778 (or 127.0.0.1:9778), and this…
mikejt
  • 21
  • 2
0
votes
2 answers

Docpad error after Sass install

I want to start to work with foundation 4. So I installed Ruby and Sass. After I installed Sass gem, I get the following error message on docpad generate: error: An error occured: Error: spawn ENOENT at errnoException (child_process.js:948:11) …
seniorpreacher
  • 666
  • 2
  • 11
  • 31
0
votes
1 answer

Docpad paging 404 error

Tell me, why has stopped working paging. Rather, paging works, but gives 404 page. Example: altyncev.ru/posts Config And posts file in my repo. Global changes are not made. Posts: <% posts = @getCollection('posts') %> <% for i in…
npofopr
  • 94
  • 6
0
votes
3 answers

docpad-plugin-thumbnails appears to hang

Symptom... docpad run results in the usual messages but it never gets past: Currently on writeFiles at 45/45 100% ================================================= Environment - osx 10.8.3 node v0.10.0 npm i.2.14 docpad 6.34.2 ImageMagick…
0
votes
1 answer

how to recursively create a tree of links to any files in a specific folder in docpad

I'm really new to docpad and would like to know how i can recursively create a tree of links to any files in a specific folder in docpad Thanks
Gibb Sonn
  • 399
  • 4
  • 12
0
votes
0 answers

how to require libraries using Docpad Sass

I have been following the instructions here: docpad-plugin-sass And I have search all over for the answer even found someone requireing susy but their problem was with needing to update susy. Unfortunately I just can't seem to get the…
Daimz
  • 3,243
  • 14
  • 49
  • 76
0
votes
1 answer

docpad plugin-tagging Why lists all the tags?

Why lists all the tags? I use:
npofopr
  • 94
  • 6
0
votes
1 answer

docpad: Where is the preview node server serving files from?

When I run docpad run docpad would run a preview node server defaulting at port 9778. If I navigate to localhost:9778 I would see the site as being served from the out directory. But if I delete a file now from the out directory, say the…
Xavier_Ex
  • 8,432
  • 11
  • 39
  • 55
0
votes
1 answer

docpad: getting info on what exactly did got wrong

Docpad is throwing warnings at me all the time: warning: Something went wrong while rendering: ... I would love to know some more about what exactly went wrong. Are there any settings that I can tweak to make the output more helpful? In this…
Vegar
  • 12,828
  • 16
  • 85
  • 151
1 2 3
16
17