From 3490af0287eda50f3d5e597fcd3ccab721aa7d0a Mon Sep 17 00:00:00 2001 From: Brit Butler Date: Sat, 22 Nov 2014 23:06:53 -0500 Subject: [PATCH 1/3] Add gfycat plugin. --- NEWS.md | 2 ++ docs/plugin-use.md | 6 ++++++ plugins/gfycat.lisp | 25 +++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 plugins/gfycat.lisp diff --git a/NEWS.md b/NEWS.md index bbc3b1d..74f09ad 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,6 +12,8 @@ Legend: * 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. + ## Changes for 0.9.6 (2014-09-27): diff --git a/docs/plugin-use.md b/docs/plugin-use.md index 1387ef5..dd3a302 100644 --- a/docs/plugin-use.md +++ b/docs/plugin-use.md @@ -21,6 +21,12 @@ **Example**: `(disqus :shortname "disqus-provided-unique-id")` +## HTML5 Gifs via Gfycat + +**Description**: Provides support for embedding [gfycat](http://gfycat.com/) gifs. + +**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))) From 45523dcc35507ff7b6be134403ba87afddb8fada Mon Sep 17 00:00:00 2001 From: Brit Butler Date: Tue, 25 Nov 2014 22:39:54 -0500 Subject: [PATCH 2/3] Release: 0.9.7! --- NEWS.md | 20 ++++++++++++++------ coleslaw.asd | 2 +- docs/plugin-use.md | 3 +++ 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/NEWS.md b/NEWS.md index 74f09ad..00cf85f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -7,13 +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): - -* 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. +## Changes for 0.9.7 (2014-11-25): +* **New Plugin**: Support for [embedded gfycats][http://gfycat.com/] + has been added. See the plugin 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 dd3a302..fba2d6e 100644 --- a/docs/plugin-use.md +++ b/docs/plugin-use.md @@ -24,6 +24,9 @@ ## 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)` From 8d44e8ac3a359f775dbae40b1149ac77eb0334f8 Mon Sep 17 00:00:00 2001 From: Brit Butler Date: Tue, 25 Nov 2014 22:40:40 -0500 Subject: [PATCH 3/3] Minor news tweak. --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 00cf85f..e3166b8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -10,7 +10,7 @@ Legend: ## Changes for 0.9.7 (2014-11-25): * **New Plugin**: Support for [embedded gfycats][http://gfycat.com/] - has been added. See the plugin use docs for further details. + 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**,