example of a jekyll implementation.
You can include custom css and js files by adding the following to the yaml front matter of a post or static page:
slug: slug-of-post
custom:
css: true
js: true
You'll need a css file at /post-assets/slug-of-post/style.css
.
And a js file at /post-assets/slug-of-post/index.js
.
You can generate these custom files with:
rake jekyll:custom slug-of-post
yoururl/rss.xml
yoururl/posts.json
Example of getting at the jsonp feed of posts using jquery:
$.ajax({
url: 'http://localhost:4000/posts.json',
dataType: 'jsonp',
}).done( posts );
function posts(res){
res.posts.pop(res.posts.length);
var posts = res.posts;
posts.forEach(function(post, id){
console.log(id, post);
});
}
A search index is generated in search.json each time you run the jekyll server or run rake jekyll:search