Skip to content

Instantly share code, notes, and snippets.

Eduardo Lavaque greduan

View GitHub Profile
@greduan
greduan / Gruntfile.js
Last active Dec 20, 2015 — forked from balupton/README.md
Using Grunt with DocPad
View Gruntfile.js
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'
View 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

You can’t perform that action at this time.