Add the TOC extension to project and entry bodies.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sun, 26 Jul 2009 17:44:09 -0400 |
parents |
cd1557458a64
|
children |
07711504f5f9
|
branches/tags |
(none) |
files |
site-media/style/stevelosh.css templates/blog/entry.html templates/projects/project.html |
Changes
--- a/site-media/style/stevelosh.css Thu Jul 16 19:08:55 2009 -0400
+++ b/site-media/style/stevelosh.css Sun Jul 26 17:44:09 2009 -0400
@@ -83,6 +83,14 @@
color: #F00;
}
+div.toc ul {
+ list-style-type: none;
+ padding-left: 0;
+}
+div.toc > ul > li {
+ margin-left: 0;
+}
+
/* Typogrify Styles */
.amp {
--- a/templates/blog/entry.html Thu Jul 16 19:08:55 2009 -0400
+++ b/templates/blog/entry.html Sun Jul 26 17:44:09 2009 -0400
@@ -28,7 +28,7 @@
</p>
</div>
<div id="blog-entry-body" class="content">
- {{ entry.body|markdown:"codehilite"|typogrify }}
+ {{ entry.body|markdown:"codehilite,toc"|typogrify }}
</div>
</div>
<hr />
--- a/templates/projects/project.html Thu Jul 16 19:08:55 2009 -0400
+++ b/templates/projects/project.html Sun Jul 26 17:44:09 2009 -0400
@@ -31,7 +31,7 @@
</p>
</div>
<div id="projects-project-body" class="content">
- {{ project.body|markdown:"codehilite"|typogrify }}
+ {{ project.body|markdown:"codehilite,toc"|typogrify }}
</div>
</div>
<hr />