316 Commits (72072f2acebf99fb70d5a58cd8fb33270e98e656)
 

Author SHA1 Message Date
Jan Stępień f6a7d17213 Don't invoke select-keys on post in create-preview
This allows preview templates to access all of post's metadata.
9 years ago
Carmen La 933d213d15 Merge pull request #42 from jstepien/find-more-with-indexof
create-preview: simplify the more marker lookup
9 years ago
Jan Stępień 1b4306c3a3 create-preview: simplify the more marker lookup
This commit replaces a regular expression lookup with a simple
String/indexOf substring search.

It addresses pathological cases in which re-find took several
seconds to process contents of a blog post. An example of such
a case was a post with 16kB of nested HTML tags in a single line.
9 years ago
Carmen La e4a56d2140 Merge pull request #41 from markokocic/no-reflection
Fix type hint cast
9 years ago
Marko Kocic 8e5b3a9fee Fix type hint cast 9 years ago
Dmitri Sotnikov 7c3cf47db4 Merge pull request #39 from markokocic/no-reflection
Clear reflection warnings
9 years ago
Marko Kocic f4888b26d9 Clear reflection warnings 9 years ago
Carmen La 85ede46a9e Merge pull request #37 from ClashTheBunny/podcasts
Add enclosure tag to facilitate Podcasting with Cryogen
9 years ago
Randall Mason 03cfabcbb9 Add enclosure tag to facilitate Podcasting with Cryogen
Add an enclosure tag to a post's metadata to let a podcast client
to deliver your audio content.  It should look like this:

:enclosure [{:url "<full-url>"}]

Without the brackets, you end up with NullPointerExceptions, so
make sure you have that.

The URL should be the full location of where the audio file is
hosted (not relative), so for example:

:enclosure [{:url "http://www.example.com/01_episode_IV.mp3"}]

I created a bunch of markdown files with just the enclosure and
info about the audiobook with the following bash snippet:

find -L books -type f -iname "*mp3" | sort | while read mp3; do name=$(basename $mp3 .mp3); book=$(basename "$(dirname $mp3)"); echo "{:title \"$name\"\n:layout :post\n:tags [\"audiobooks\" \"$book\"]\n:enclosure [{:url \"http://clashthebunny.mason.ch/blog/$mp3\"}]}\n $book - $name\n==================" > md/posts/"$(date "+%Y-$name").md"; done

Each book was in it's own subdirectory of books:
books/Dracula/1-01-Chapter1_part01.mp3
books/Dracula/1-02-Chapter1_part02.mp3
books/Dracula/2-01-Chapter2_part01.mp3

Note that the above script requires the prefix of the episode to
be "date-like".  It should be fairly easy to work out a way to get
your podcast up and running.

Add the book names to your rss-filters array, e.g.:
["Dracula" "Pride & Prejudice"]

Most podcasting clients support authentication, so just password
protect those directories and you should be good to go, even
if you are hosting copyrighted content.
9 years ago
Carmen La e1aa1d737f Merge pull request #36 from ciwchris/patch-1
Add active-page key to config map
9 years ago
Chris 8eb0e9ff29 Add active-page key to config map
For certain pages a key with a boolean value is added to the config map which can then be used in templates to determine if it is the page being rendered. Not all pages have this key and boolean value. Instead of adding additional keys for every page a new generic key, 'active-page', has been added and its value is the page name, ex: 'home', 'archives', 'tags', etc. The default value is 'home'. This key can then be used in any template to check the page which is currently being rendered.
9 years ago
lacarmen 42faca4b82 Bump up clojars version 9 years ago
Dmitri Sotnikov 1e354379e1 bumped up clj-rss 9 years ago
Carmen La 1afc36ecbc Update selmer dependency 9 years ago
Carmen La 2af155820e Merge branch 'powernoodle-post-date' 9 years ago
Carmen La 837f855726 Merge branch 'post-date' of https://github.com/powernoodle/cryogen-core into powernoodle-post-date 9 years ago
Dmitri Sotnikov 67d0151de8 Merge pull request #34 from cybem/default-locale
Use the default locale for the instance of the JVM
9 years ago
Kirill Kondratenko 71bb80cf49 Use the default locale for the instance of the JVM
instead of the hardcoded "en" locale
9 years ago
Brendon Walsh e710f08679 Optional :date key can be provided in metadata 9 years ago
Carmen La 85ea98f0ff bumped up dependencies 9 years ago
Carmen La 64a9830f6d Only make the "prev" link in the second page when the second page actually exists 9 years ago
Carmen La d6941823fd Added option for post preview pages rather than a single index page. Issue #28 9 years ago
Carmen La 7153e9d522 Added page with all tags - for issue #31 9 years ago
Carmen La 2264af82df Merge pull request #30 from InDevLand/master
`compile-pages` method now uses the page's :layout
9 years ago
InDevLand 82d3a5677f fixed compile-pages now use :layout 9 years ago
Carmen La e7636e7586 Fixed pubDate not showing up in filtered rss feeds 9 years ago
lacarmen 4511536cc9 Cleanup + fixes for config based themes 9 years ago
Carmen La fa07db5a4b Merge pull request #26 from zerg000000/config-based-theme
Config based theme
9 years ago
Albert Lai 2119ed52aa merge posts image fix 9 years ago
Albert Lai 7c443a8b5c add experimental theme support 9 years ago
Albert Lai bc62c8a790 fix issue #24 image handling in Post is generally broken 9 years ago
Carmen La 717b2dc370 Update project.clj 9 years ago
Carmen La eb8698944e bumped up dependencies 9 years ago
Dmitri Sotnikov 092e4e4774 updated url 9 years ago
Dmitri Sotnikov b355bba2e1 bumped up pandect 9 years ago
Yogthos e0d3676196 added an error check for parsing the config.edn 9 years ago
Dmitri Sotnikov 97de91ca90 Update project.clj 9 years ago
Carmen La 5ffd30895f Merge pull request #23 from ericsomdahl/master
Modification to allow the generated rss xml to pass xsd validation.
9 years ago
Eric Somdahl 6b45fdc35a Modification to allow the generated rss xml to pass xsd validation.
1) Removed the <author> tag from each <item>.  The presence of this tag is ok here but the xsd requires that the content include a valid email address, not just the name string coming from the site config (Forms that pass validation are "test@xyz.com" or "test@xyz.com (Test McTester)" ).  And who would want to advertise their real email like that?  :)
2) Removed the <author> tag from the <channel>.  <author> isn't a valid child element of a channel.  There is a child element called <webMaster> that is a close analogue but it also requires content as above.
9 years ago
Dmitri Sotnikov e3641885a2 bumped up dependencies 9 years ago
Carmen La 3d05b46e16 Merge pull request #21 from wjlroe/access-all-config-in-templates
Pass all config to templates
9 years ago
William Roe c52d3d1aa6 Pass all config to templates
This allows people to use any parameter from their config as well as the
params that were already being used.
9 years ago
Dmitri Sotnikov e909a48015 bumped up selmer 9 years ago
Carmen La efdd06ef29 Merge pull request #20 from wjlroe/compile-sass-with-compass
Compile sass with compass when available
9 years ago
William Roe 5587cc88ef Run SASS relative to sass/
This is so that SASS/Compass can find images and other assets
9 years ago
William Roe 52244956aa Option maps are easier to use when calling functions
... with more than a couple of parameters.
9 years ago
William Roe 0c7743e605 Ensure sass errors printed visably in red
Also include the standard output as it frequently includes crucial
information in narrowing down where errors lie in SASS files
9 years ago
William Roe 7595cbcf70 Include --compass when it is available 9 years ago
Carmen La 4e45a92f92 Updated versioneye badge 10 years ago
Carmen La 91effffe82 Merge pull request #17 from dl1ely/master
Fix overly eager replacement of file extensions in uris, fixes #16
10 years ago