Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Fix the links to latest blog posts #229

Merged
1 commit merged into from
Nov 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/lib/blog-feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function renderPosts (data) {
var $container = $('#latest-list')
$container.empty()
data.posts.slice(0, 4).forEach(function (post) {
var $el = $('<li><span class="date">' + post.date + '</span> <a href="/blog' + post.url + '">' + post.title + '</a></li>')
var $el = $('<li><span class="date">' + post.date + '</span> <a href="' + post.url + '">' + post.title + '</a></li>')
$container.append($el)
})
}
Expand Down