Skip to content

Instantly share code, notes, and snippets.

@greduan
greduan / Gruntfile.js
Last active December 20, 2015 07:59 — forked from balupton/README.md
Using Grunt with DocPad
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Import package.json file, we get some info from here
pkg: grunt.file.readJSON('package.json'),
// Minify JS into one file
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
@greduan
greduan / README.md
Last active December 19, 2015 15:39 — forked from balupton/README.md

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