Browse Source

added 'Recent Posts' title to main index

master
Sean Clarke 3 weeks ago
parent
commit
f300c9bd0b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      model/Listing.js

+ 1
- 1
model/Listing.js View File

@@ -33,7 +33,7 @@ Listing.prototype.forYearAndMonth = function(year, month){

Listing.prototype.buildIndex = function(){
var html = fs.readFileSync(process.cwd() + '/partials/header.html', 'utf8');
html += '<h1>Index Name</h1>\n';
html += '<h1>Recent Posts</h1>\n';
this.posts.forEach(function(post){
html+= post.generateListing();
});

Loading…
Cancel
Save