alexyoung / pop

A static site and blog generator
http://popjs.com
MIT License
62 stars 10 forks source link

Pagination and Tags #5

Closed shapeshed closed 12 years ago

shapeshed commented 12 years ago

I'm looking to move my blog over to pop. It has everything I need and nothing I don't.

I'm finding a few issues and wanted to check whether these were known or perhaps more likely local issues to me.

I'm using your alexyoung.org repo as a test and I'm seeing some issues

I'm running node 0.4.12

node -v 
v0.4.12

I've installed pop and express

npm install -g pop
pop -v
pop version: 0.1.3
npm install -g express
express -v 
2.5.1

I've cloned the repo and installed pop-disqus

git clone git://github.com/alexyoung/alexyoung.org.git
cd alexyoung.org
npm install -g pop-disqus

The server starts ok with an EventEmitter warning

pop server
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace: 
    at Watch.<anonymous> (events.js:126:17)
    at Watch.onChange (/usr/local/lib/node_modules/pop/node_modules/nodewatch/lib/watch/watch.js:29:14)
    at /usr/local/lib/node_modules/pop/lib/server.js:60:28
    at Array.forEach (native)
    at Object.watchChanges [as watch] (/usr/local/lib/node_modules/pop/lib/server.js:58:29)
    at EventEmitter.<anonymous> (/usr/local/lib/node_modules/pop/lib/pop.js:62:14)
    at EventEmitter.g (events.js:143:14)
    at EventEmitter.emit (events.js:61:17)
    at EventEmitter.checkFinished (/usr/local/lib/node_modules/pop/lib/site_builder.js:210:21)
    at EventEmitter.emit (events.js:61:17)

There are a couple of issues

  1. Pagination doesn't seem to work. Links to page 1 and 2 are generated. Clicking on Page 2 has a page with no posts
  2. Tags are incomplete. Only some of the tags and posts are listed on this page.

I'm quite happy to help fix these if they are not local issues if you can give me some pointers.

Generating my blog with Jekyll, Pygments and LSI is now taking 20 minutes to publish a post!

alexyoung commented 12 years ago

Can you help me figure out what's going on with your pagination and tags?

Tags and pagination work for me on my blog: http://alexyoung.org/

shapeshed commented 12 years ago

I've cloned the repository for alexyoung.org to test it and I'm not getting the pagination links. What version of node are you running it under?

alexyoung commented 12 years ago

I don't remember what version I had when last generated it, but I'm using 0.6.2 now. I don't think it'll be the Node version, it could be something to do with one of the libraries. Does pop -v say 0.1.4?

shapeshed commented 12 years ago
pop -v
pop version: 0.1.3 

Checked in npm and that is the latest published version. Should I try cloning from GitHub?

alexyoung commented 12 years ago

Sorry, it seems like I must have messed up publishing to npm somehow, try the 0.1.4 I just published.

shapeshed commented 12 years ago

Thanks - that fixed it!

alexyoung commented 12 years ago

:D