Skip to content

Commit

Permalink
fixing postUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Feb 1, 2013
1 parent 818c6b5 commit 634c9fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions journo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions journo.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Publish a Feed
content = fs.readFileSync(postPath post).toString()
lexed = marked.lexer content
title = postTitle content
description = _.find(lexed, (token) -> token.type is 'paragraph')?.text
description = _.find(lexed, (token) -> token.type is 'paragraph')?.text + ' ...'
description = marked.parser marked.lexer _.template(description)(renderVariables(post))
feed.item
Expand Down Expand Up @@ -345,7 +345,7 @@ and the URL for a post on the server.
postName = (post) -> path.basename post, '.md'
postUrl = (post) -> "#{shared.siteUrl}/#{postName(post)}"
postUrl = (post) -> "#{shared.siteUrl}/#{postName(post)}/"
postTitle = (content) ->
_.find(marked.lexer(content), (token) -> token.type is 'heading')?.text
Expand Down

0 comments on commit 634c9fe

Please sign in to comment.