commit
b6f1834239
4 changed files with 49 additions and 5 deletions
18
NEWS.md
18
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):
|
||||
|
||||
|
|
|
@ -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 <redline6561@gmail.com>"
|
||||
:pathname "src/"
|
||||
|
|
|
@ -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
|
||||
`<img class="gfyitem" data-id="your-gfy-slug" />` will embed the
|
||||
corresponding gfy.
|
||||
|
||||
**Example**: `(gfycat)`
|
||||
|
||||
## Hosting via Github Pages
|
||||
|
||||
**Description**: Allows hosting with CNAMEs via
|
||||
|
|
25
plugins/gfycat.lisp
Normal file
25
plugins/gfycat.lisp
Normal 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)))
|
Loading…
Add table
Reference in a new issue