Explorar o código

Merge pull request #68 from redline6561/dev

Release: 0.9.7!
Brit Butler %!s(int64=10) %!d(string=hai) anos
pai
achega
b6f1834239
Modificáronse 4 ficheiros con 50 adicións e 6 borrados
  1. 15 5
      NEWS.md
  2. 1 1
      coleslaw.asd
  3. 9 0
      docs/plugin-use.md
  4. 25 0
      plugins/gfycat.lisp

+ 15 - 5
NEWS.md

@@ -7,11 +7,21 @@ Legend:
7 7
     A change to Coleslaw's exported interface. Plugins or Themes that have
8 8
     not been upstreamed are effected and may require minor effort to fix.
9 9
 
10
-## Changes for 0.9.7 (20xx):
11
-
12
-* Coleslaw now handles **deploy-dir**, **repo**, and **staging-dir**
13
-  config options more gracefully. Previously, various errors could be
14
-  encountered if directory options lacked a trailing slash.
10
+## Changes for 0.9.7 (2014-11-25):
11
+
12
+* **New Plugin**: Support for [embedded gfycats][http://gfycat.com/]
13
+  has been added. See the [plugin use][plg-use] docs for further details.
14
+* **Enhancement**: UTF-8 support has been made more portable and
15
+  added to the Wordpress import plugin. (Thanks @cmstrickland!)
16
+* **Enhancement**: Coleslaw now handles **deploy-dir**, **repo**,
17
+  and **staging-dir** config options more gracefully. Previously,
18
+  various errors could be encountered if directory options lacked
19
+  a trailing slash.
20
+* Several portability fixes were made to CCL's encoding handling
21
+  and usage in the post-receive script.
22
+* Filenames are now included in errors from the content loader. (via @PuercoPop)
23
+* An initarg bug was fixed in the directory-does-not-exist condition.
24
+* Some namespacing bugs in the Static Pages plugin have been fixed.
15 25
 
16 26
 ## Changes for 0.9.6 (2014-09-27):
17 27
 

+ 1 - 1
coleslaw.asd

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

+ 9 - 0
docs/plugin-use.md

@@ -21,6 +21,15 @@
21 21
 
22 22
 **Example**: `(disqus :shortname "disqus-provided-unique-id")`
23 23
 
24
+## HTML5 Gifs via Gfycat
25
+
26
+**Description**: Provides support for embedding [gfycat](http://gfycat.com/) gifs.
27
+  Any content tagged 'gfycat' containing an IMG element of the form
28
+  `<img class="gfyitem" data-id="your-gfy-slug" />` will embed the
29
+  corresponding gfy.
30
+
31
+**Example**: `(gfycat)`
32
+
24 33
 ## Hosting via Github Pages
25 34
 
26 35
 **Description**: Allows hosting with CNAMEs via

+ 25 - 0
plugins/gfycat.lisp

@@ -0,0 +1,25 @@
1
+(defpackage :coleslaw-gfycat
2
+  (:use :cl)
3
+  (:export #:enable)
4
+  (:import-from :coleslaw #:add-injection
5
+                          #:content
6
+                          #:tag-p))
7
+
8
+(in-package :coleslaw-gfycat)
9
+
10
+(defvar *gfycat-header*
11
+  "<script>
12
+ (function(d, t) {
13
+    var g = d.createElement(t),
14
+        s = d.getElementsByTagName(t)[0];
15
+    g.src = 'http://assets.gfycat.com/js/gfyajax-0.517d.js';
16
+    s.parentNode.insertBefore(g, s);
17
+}(document, 'script'));
18
+</script>")
19
+
20
+(defun enable ()
21
+  (flet ((inject-p (x)
22
+           (when (and (typep x 'content)
23
+                      (tag-p "gfycat" x))
24
+             *gfycat-header*)))
25
+    (add-injection #'inject-p :head)))