No commit activity in last 3 years
No release in over 3 years
Adds the post date to blog post permalinks in Nesta CMS.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0.9.13
 Project Readme

Date Slugs on Blog Posts for Nesta CMS

This plugin will add the post date to the URL for your blogs posts in Nesta. Right now the date format is hard-coded in the year/month/permalink format, but plans are already in place to allow customizations to the format. An example of a link would be "2012/07/sample-post". Users migrating from other blogging tools are probably familiar with this format already.

Installation

Add the following line to your Gemfile:

gem 'nesta-plugin-dateslugs'

Usage

The plugin will automatically update the permalinks for all blog posts. Blog posts are defined as pages that have a Post Date in their metadata. In order for the plugin to work correctly you must ensure your theme uses the article permalink method and not the abspath method.

TODO

  • Allow date format to be customized.
  • Improve matching of dates in paths.

Pull Requests

  • Fork this project.
  • Create a feature or hotfix branch.
  • Make changes.
  • Commit changes without modifying the rakefile, version, or changelog. (I will update those as needed.)
  • Submit a pull request.

Thanks

Special thanks to Wynn Netherland, most of this plugin is based on his nesta-plugin-sluggable plugin.

Copyright

Copyright (c) 2012 Adam Michel. See LICENSE for details.