Commit graph

307 commits

Author SHA1 Message Date
Masataro Asai
dd53a77595 move all options to the default-initargs, for maximum customizability 2019-10-27 14:58:20 -04:00
Masataro Asai
eacc598930 as requested (Im not sure) 2019-10-27 14:55:20 -04:00
Masataro Asai
774a29a372 Removed the default deploy method and added RSYNC plugin 2019-10-27 14:54:54 -04:00
Masataro Asai
38a6c2d475 [minor api change] coleslaw:main takes keywords, can now skip the deploy 2019-10-27 14:07:42 -04:00
Masataro Asai
d9fa597d79 fix: DEPLOY method does not respect *default-pathname-defaults* 2019-10-26 19:45:52 -04:00
Javier Olaechea
a447df807b Closes #145
Before calling RENDER-TEXT, we have to ensure that the FORMAT slot is a
keyword. This bug was introduced in
a6164f0bc0

Thanks to Masataro Asai (Guicho) for reporting the bug.
2017-11-12 20:36:08 -05:00
Javier Olaechea
a6164f0bc0 Avoid RENDERing the text of a Post twice
Besides avoiding duplicate work the order in which we assign the values to the
slots no longer matters as excerpt doesn't read the contents from the TEXT slot
anymore.

cf. e1ab552e8f
2017-10-29 01:12:42 -05:00
Alfredo Beaumont
12f174533f Add support for either an automatic or manual excerpt for index 2017-10-29 01:12:42 -05:00
Johan Sjolen
d397b32328 Report when a required field is missing in the static-pages plugin
Add ASSERT-FIELD to the API as the entry point for plugins to report to the
user when a content field is missing.
2017-07-16 13:34:16 -05:00
Alfredo Beaumont
ca4ba22ef9 Get the month from content-date, if exists, instead of whole date. 2017-03-24 00:10:33 +01:00
Javier Olaechea
b90c0cc6fe PARSE-METADATA now handles CR-LF line endings
Closes #127
Thanks @chuntaro!
2016-11-15 10:01:41 -05:00
Javier Olaechea
c2ff1badf8 ALL-MONTHS: Don't assume that content has a date 2016-10-26 03:52:38 -05:00
Javier Olaechea
9311c2244f Move coleslaw-conf to its own ASDF system
Ideally the package coleslaw would only have symbols that refer to
configuration variables. However to ease setting *BASEDIR* to the right
value using UIOP:SYMBOL-CALL we provide a setter, SET-BASEDIR.

- Split each ASDF system into its own file

- All system definitions are made in the ASDF-USER package, as
recommended by ASDF.

Fixes #110
2016-09-20 23:15:57 -05:00
Lukasz Janyst
414c8dd742 Export *config* accessors useful in user plug-ins 2015-12-03 12:13:17 +01:00
Lukasz Janyst
075477b9ce Allow for plug-ins to be defined in the user repo 2015-12-03 12:12:59 +01:00
Brit Butler
44eb77da2c Merge pull request #98 from ljanyst/user-themes
Allow for themes defines in the user repo
2015-11-21 10:07:52 -05:00
Matthias Wimmer
4d24884863 Supporting other file extensions for the index page as well.
Coleslaw is able to write the blog content to xhtml file as well, using the
configuration setting :page-ext. But it did ignore the file extension when
creating the index page link responsible for the default landing page. With this
fix the file extension gets honored. E.g. when "xhtml" is configured, coleslaw
will generate a link from "index.xhtml" to "1.xhtml".
2015-11-20 23:56:39 +01:00
Lukasz Janyst
bd17b6c039 Allow for themes defines in the user repo 2015-11-15 20:23:53 +01:00
Brit Butler
5727578b26 Minor indentation tweak. 2015-05-26 23:38:49 -04:00
Javier Olaechea
144cb03294 Style fixes and missing closing paren 2014-12-10 12:16:31 -05:00
lukasepple
1e1c64b245 using zerop instead of (= 0 2014-12-10 15:07:09 +01:00
lukasepple
d7ffd1b7d7 error handling in slugify 2014-12-09 20:55:57 +01:00
lukasepple
d5e5aed0d9 using char instead of aref
for getting a char by index
2014-12-07 13:03:27 +01:00
Brit Butler
3671178a35 Minor indentation fixes. 2014-12-06 22:00:07 -05:00
lukasepple
5aa89f4497 cleanup of the code belonging to slugify 2014-12-06 22:55:50 +01:00
lukasepple
fbacd3b81f made slugs unicode-safe like
used mozilla's slugify implementation as reference:
https://github.com/mozilla/unicode-slugify/blob/master/slugify/__init__.py
2014-12-06 19:51:06 +01:00
Olof-Joachim Frahm
68ee3c942d Catch errors while trying to compile plugins.
A warning with the full error message will be printed and the original
file `LOAD`ed instead.  If the error isn't related to the `fasl` file
output, then the `LOAD` should also throw an error, at which point the
normal error handling would take place.
2014-12-02 21:29:29 +01:00
Javier Olaechea
1ff10b9b63 conent.lisp (parse-medatada): add filename to the error message 2014-11-11 22:59:17 -05:00
Brit Butler
762ad5e44d Handle trailing slashes more gracefully. Kick off 0.9.7-dev. 2014-11-02 23:04:45 -05:00
Brit Butler
a6a5b0b86b Force staging-dir to be a directory-pathname in compile-blog. 2014-11-02 21:00:40 -05:00
Brit Butler
913023e377 Fix directory-does-not-exist initarg buglet. 2014-11-02 20:45:25 -05:00
Colin M. Strickland
bcd9051b14 use :utf8 symbol directly in external-format
sbcl can use :utf8 as a direct symbol also
2014-10-25 22:16:53 +01:00
Brit Butler
1b3acd107e Fix feed handling bug backwards compatibly. No name changes. 2014-09-23 17:39:40 -04:00
Brit Butler
1289706b46 Quick bugfix to add-injection. 2014-09-23 17:33:55 -04:00
Brit Butler
f27172a1f7 Last minute backwards compatibility fix for people on very old SBCLs. 2014-09-23 17:28:11 -04:00
Javier Olaechea
47a17508e8 Add twitter meta-data to posts
This depends on a pending change to add-injection
2014-09-23 11:52:33 -04:00
Brit Butler
e44d0bde9e Make add-injection support more complex injections. Thanks @PuercoPop.
In short, an injection is now a FUNCTION that takes a
document and returns either a STRING to insert in the
page (possibly with data from the document) or NIL.
2014-09-22 14:31:08 -04:00
Brit Butler
f474db77b2 Factor parse-initarg out of parse-metadata. 2014-09-22 12:56:00 -04:00
Brit Butler
439f3f35f7 Push closer to 0.9.6. Just tests and a merge left now... 2014-09-05 17:08:13 -04:00
Brit Butler
46e6915ba2 Make parse-metadata suck a little less. Many docs updates. 2014-09-05 17:08:12 -04:00
Brit Butler
2ed12c5bce Factor out parse-metadata in preparation for real error-handling. 2014-09-05 17:07:22 -04:00
Brit Butler
148c1a0c52 Switch back to using rsync --delete -avz in deploy. 2014-09-05 17:07:22 -04:00
Brit Butler
b23a398dd5 Assorted bugfixes and cleanups. 2014-09-05 17:07:22 -04:00
Brit Butler
ef378b9b56 Finish the routing/slugs overhaul. 2014-09-05 17:07:22 -04:00
Brit Butler
ab34400307 Use with-slots for initializers, readers only please! 2014-09-05 17:07:22 -04:00
Brit Butler
ed886b57e7 Set blog repo in "the right place". 2014-09-05 17:07:22 -04:00
Brit Butler
ae96c069c4 Half-way commit to getting hardcoded paths out of templates. 2014-09-05 17:07:21 -04:00
Brit Butler
04c1ed9aee Bugfixes. 2014-09-05 17:06:41 -04:00
Brit Butler
567c4473bb Tentatively factor deploy method into git-hook plugin. TODO follows...
* Deploy :after plugins probably need revision now, and coleslaw-heroku.
* README, HACKING need updates. Plugin-api.md too.
* NEWS needs a carefully worded entry.

Is that what we want?
2014-09-05 17:06:41 -04:00
Brit Butler
a176f38537 Bugfix: Feed should be an abstract class. 2014-09-05 17:06:41 -04:00