Skip to content

Instantly share code, notes, and snippets.

Eduardo Lavaque greduan

View GitHub Profile
greduan / Gruntfile.js
Last active Dec 20, 2015 — forked from balupton/
Using Grunt with DocPad
View Gruntfile.js
module.exports = function(grunt) {
// Project configuration.
// Import package.json file, we get some info from here
pkg: grunt.file.readJSON('package.json'),
// Minify JS into one file
uglify: {
options: {
banner: '/*! <%= %> <%="dd-mm-yyyy") %> */\n'

DocPad: Clean dates in post URLs

Creates URLs like /2012/12/15/merry-xmas.html for your blog posts.

Requires momentjs to be installed: npm install --save moment

You can’t perform that action at this time.