Create a Simple Breadcrumb With Chalk
Category: Graffiti Tips
You can create a breadcrumb by using Chalk alone. This approach would assume that you're creating a custom view file for the category, in this case the Services category:
<h1><a href='$data.GetCategory("Services").Url'>$data.GetCategory("Services").Name</a> > $post.Title</h1>
The way this breadcrumb works is pretty simply. The $data.GetCategory() function returns a Category. Every Category has a Url property and a Name propery. Using these, you can create an anchor tag for the category.
Another approach that would be more generic would be to use the Category property of the Post object, like this:
<a href='$post.Category.Url'>$post.Category.Name</a> >$post.Title
While this isn't a recursive approach and doesn't work beyond two levels, it does provide a quick and easy breadcrumb for a two level hierarchy. Categories also have a Parent property, so it probably possible to three levels just using Chalk!
