Commits

Luke Plant committed 97c0958

Added post specific links to left hand menu.

  • Participants
  • Parent commits ffd4168

Comments (0)

Files changed (2)

File src/templates/pagestart.st

     <div id="container">
       <div id="toplinks">
         <div id="toplinksinner">
+          <p>Site links</p>
+          <ul>
+            <li><a href="/">Home</a></li>
+            <li><a href="/softprojects.html">Software</a></li>
+            <li><a href="/personal.html">About me</a></li>
+          </ul>
           <p>Blog links</p>
           <ul>
             <li><a href="/blog/">Posts</a></li>
             <li><a href="/blog/categories/">Categories</a></li>
             <li><a href="/blog/comments/">Recent comments</a></li>
           </ul>
-          <p>Site links</p>
+          $if(post)$
+          <p>Post links</p>
           <ul>
-            <li><a href="/">Home</a></li>
-            <li><a href="/softprojects.html">Software</a></li>
-            <li><a href="/personal.html">About me</a></li>
+            <li><a href="#top">Top</a></li>
+            <li><a href="#comments">Comments</a></li>
+            $if(post.commentsOpen)$
+            <li><a href="#addcomment">Add comment</a></li>
+            $endif$
+            $if(hasRelated)$
+            <li><a href="#related">Related posts</a></li>
+            $endif$
+
           </ul>
+          $endif$
         </div>
       </div>
       <div id="maintitle">

File src/templates/post.st

 $pagestart(pagetitle=post.title)$
 $metainfoline(divclass="metainfo";post=post;categories=categories)$
-<h1 class="posttitle">$post.title$</h1>
+<h1 class="posttitle" id="top">$post.title$</h1>
 <div class="post">
   $post.full:noescape()$
 </div>