Update theming docs and README a bit.

This commit is contained in:
Brit Butler 2014-04-14 17:10:03 -04:00
parent 9a86d48314
commit dcf2db3ff4
2 changed files with 7 additions and 5 deletions

View file

@ -56,4 +56,4 @@ your post
``` ```
## Theming ## Theming
A default theme, hyde, is provided. Themes are made using Google's closure-template and the source for [hyde](https://github.com/redline6561/coleslaw/tree/master/themes/hyde) should be simple and instructive until I can provide better docs. Two themes are provided: hyde and readable (based on [bootswatch readable](http://bootswatch.com/readable/)). Hyde is the default. A guide to creating themes for coleslaw lives [here](https://github.com/redline6561/coleslaw/blob/master/docs/themes.md).

View file

@ -4,9 +4,10 @@ The theming support in coleslaw is very flexible and relatively easy
to use. However it does require some knowledge of HTML, CSS, and how to use. However it does require some knowledge of HTML, CSS, and how
coleslaw processes content. coleslaw processes content.
To understand how coleslaw processes a blog, a look at the [overview][ovr] To understand how coleslaw processes a blog, a look at the
documentation may prove useful. This document will focus mainly on the [overview][ovr] and [hacking][hck] documentation may prove
template engine and how you can influence the resulting HTML. useful. This document will focus mainly on the template engine and how
you can influence the resulting HTML.
**NOTE**: Themes are not able to change the generated file names or the **NOTE**: Themes are not able to change the generated file names or the
generated file structure on disk. They can change the resulting HTML, nothing more. generated file structure on disk. They can change the resulting HTML, nothing more.
@ -219,7 +220,8 @@ Good luck!
As mentioned earlier, most files have a file name which is a slug of As mentioned earlier, most files have a file name which is a slug of
some sort. So if you want to create a link to a tag file you should some sort. So if you want to create a link to a tag file you should
do something like this: `<a href="${config.domain}/tags/{$tag.slug}">{$tag.name}</a>`. do something like this: `<a href="${config.domain}/tags/{$tag.slug}.{$config.pageExt}">{$tag.name}</a>`.
[clt]: https://developers.google.com/closure/templates/ [clt]: https://developers.google.com/closure/templates/
[ovr]: https://github.com/redline6561/coleslaw/blob/master/docs/overview.md [ovr]: https://github.com/redline6561/coleslaw/blob/master/docs/overview.md
[hck]: https://github.com/redline6561/coleslaw/blob/master/docs/hacking.md