Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moves list to an index

  • Loading branch information...
commit 298ca7f6f5781f153d51c8401cbb702d3692f283 1 parent 48ca31c
@craveytrain authored
View
2  content/posts.md → content/posts/index.md
@@ -1,6 +1,6 @@
---
title: Posts
-pageType: list
+pageType: index
---
This is the list of posts. Hi.
View
8 tasks/render.js
@@ -38,9 +38,15 @@ function buildPath (file) {
// if basename is not index then we need to create a directory
if (baseName !== 'index') {
- pathName = path.join(pathName, baseName) + path.sep;
+ pathName = path.join(pathName, baseName);
}
+ // add a trailing slash, since it's a directory
+ pathName += path.sep;
+
+ // clean up any erroneous stuff
+ pathName = path.normalize(pathName);
+
grunt.log.debug('path name:', pathName);
return pathName;
View
2  templates/includes/nav.jade
@@ -3,7 +3,7 @@ nav.page-nav(role='navigation')
li.nav-home
a(href='/') Home
li
- a(href='/posts') Posts
+ a(href='/posts/') Posts
li
a(href='/#about') About
li
Please sign in to comment.
Something went wrong with that request. Please try again.