diff --git a/NEWS.md b/NEWS.md index bbc3b1d..e3166b8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -7,11 +7,21 @@ Legend: A change to Coleslaw's exported interface. Plugins or Themes that have not been upstreamed are effected and may require minor effort to fix. -## Changes for 0.9.7 (20xx): +## Changes for 0.9.7 (2014-11-25): -* Coleslaw now handles **deploy-dir**, **repo**, and **staging-dir** - config options more gracefully. Previously, various errors could be - encountered if directory options lacked a trailing slash. +* **New Plugin**: Support for [embedded gfycats][http://gfycat.com/] + has been added. See the [plugin use][plg-use] docs for further details. +* **Enhancement**: UTF-8 support has been made more portable and + added to the Wordpress import plugin. (Thanks @cmstrickland!) +* **Enhancement**: Coleslaw now handles **deploy-dir**, **repo**, + and **staging-dir** config options more gracefully. Previously, + various errors could be encountered if directory options lacked + a trailing slash. +* Several portability fixes were made to CCL's encoding handling + and usage in the post-receive script. +* Filenames are now included in errors from the content loader. (via @PuercoPop) +* An initarg bug was fixed in the directory-does-not-exist condition. +* Some namespacing bugs in the Static Pages plugin have been fixed. ## Changes for 0.9.6 (2014-09-27): diff --git a/coleslaw.asd b/coleslaw.asd index cc41e7f..fe13837 100644 --- a/coleslaw.asd +++ b/coleslaw.asd @@ -1,7 +1,7 @@ (defsystem #:coleslaw :name "coleslaw" :description "Flexible Lisp Blogware" - :version "0.9.7-dev" + :version "0.9.7" :license "BSD" :author "Brit Butler " :pathname "src/" diff --git a/docs/plugin-use.md b/docs/plugin-use.md index 1387ef5..fba2d6e 100644 --- a/docs/plugin-use.md +++ b/docs/plugin-use.md @@ -21,6 +21,15 @@ **Example**: `(disqus :shortname "disqus-provided-unique-id")` +## HTML5 Gifs via Gfycat + +**Description**: Provides support for embedding [gfycat](http://gfycat.com/) gifs. + Any content tagged 'gfycat' containing an IMG element of the form + `` will embed the + corresponding gfy. + +**Example**: `(gfycat)` + ## Hosting via Github Pages **Description**: Allows hosting with CNAMEs via diff --git a/plugins/gfycat.lisp b/plugins/gfycat.lisp new file mode 100644 index 0000000..13d2f14 --- /dev/null +++ b/plugins/gfycat.lisp @@ -0,0 +1,25 @@ +(defpackage :coleslaw-gfycat + (:use :cl) + (:export #:enable) + (:import-from :coleslaw #:add-injection + #:content + #:tag-p)) + +(in-package :coleslaw-gfycat) + +(defvar *gfycat-header* + "") + +(defun enable () + (flet ((inject-p (x) + (when (and (typep x 'content) + (tag-p "gfycat" x)) + *gfycat-header*))) + (add-injection #'inject-p :head)))