Merge pull request #68 from redline6561/dev

Release: 0.9.7!
This commit is contained in:
Brit Butler 2014-11-25 22:43:58 -05:00
commit b6f1834239
4 changed files with 49 additions and 5 deletions

18
NEWS.md
View file

@ -7,11 +7,21 @@ Legend:
A change to Coleslaw's exported interface. Plugins or Themes that have A change to Coleslaw's exported interface. Plugins or Themes that have
not been upstreamed are effected and may require minor effort to fix. 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** * **New Plugin**: Support for [embedded gfycats][http://gfycat.com/]
config options more gracefully. Previously, various errors could be has been added. See the [plugin use][plg-use] docs for further details.
encountered if directory options lacked a trailing slash. * **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): ## Changes for 0.9.6 (2014-09-27):

View file

@ -1,7 +1,7 @@
(defsystem #:coleslaw (defsystem #:coleslaw
:name "coleslaw" :name "coleslaw"
:description "Flexible Lisp Blogware" :description "Flexible Lisp Blogware"
:version "0.9.7-dev" :version "0.9.7"
:license "BSD" :license "BSD"
:author "Brit Butler <redline6561@gmail.com>" :author "Brit Butler <redline6561@gmail.com>"
:pathname "src/" :pathname "src/"

View file

@ -21,6 +21,15 @@
**Example**: `(disqus :shortname "disqus-provided-unique-id")` **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
`<img class="gfyitem" data-id="your-gfy-slug" />` will embed the
corresponding gfy.
**Example**: `(gfycat)`
## Hosting via Github Pages ## Hosting via Github Pages
**Description**: Allows hosting with CNAMEs via **Description**: Allows hosting with CNAMEs via

25
plugins/gfycat.lisp Normal file
View file

@ -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*
"<script>
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src = 'http://assets.gfycat.com/js/gfyajax-0.517d.js';
s.parentNode.insertBefore(g, s);
}(document, 'script'));
</script>")
(defun enable ()
(flet ((inject-p (x)
(when (and (typep x 'content)
(tag-p "gfycat" x))
*gfycat-header*)))
(add-injection #'inject-p :head)))