Skip to content

Commit

Permalink
Support to themes and test
Browse files Browse the repository at this point in the history
  • Loading branch information
rog committed Oct 4, 2014
2 parents e8405bd + 16236ed commit 82e3dbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -65,9 +65,8 @@ For scafolding check this [yeoman repo](https://github.com/Siedrix/generator-pap

# Todos

- Snippets
- Pagination
- Categorias
- Categories
- Exposed article, pages, snipped object

# Nice to haves
Expand Down
5 changes: 3 additions & 2 deletions paperpress.js
Expand Up @@ -176,13 +176,14 @@ Paperpress.prototype.getArticlesInPage = function (page) {
Paperpress.prototype.attach = function(server) {
var paperpress = this;

<<<<<<< HEAD
// Add static files
server.use( '/'+paperpress.staticPath , express.static( process.cwd() + '/' + paperpress.themeStatic ) );

console.log('attaching paperpress');
=======
>>>>>>> 16236ed6fc113633a3948fc5508ae8b898a4ee5f
server.use(function(req, res, next){
console.log('Adding paperpress context');

res.locals.paperpress = paperpress.buildContext();
next();
Expand Down

0 comments on commit 82e3dbf

Please sign in to comment.