Skip to content

Commit

Permalink
Homepage: Added post author to news items
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
skyjake committed Jan 11, 2017
1 parent cdc6a3f commit 7eb16dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/plugins/z#home/home.php
Expand Up @@ -321,7 +321,7 @@ public function execute($args=NULL)

var d = new Date(t.publishedDate);
var niceDate = $.datepicker.formatDate('MM d, yy', d);
html += '<p><time datetime="' + d.toISOString() + '" pubdate>' + niceDate + '</time></p>';
html += '<p><time datetime="' + d.toISOString() + '" pubdate>' + niceDate + '</time> &mdash; ' + t.author + '</p>';

html += '</header><br />';
html += '<div class="articlecontent">' + t.content + '</div>';
Expand All @@ -341,12 +341,12 @@ public function execute($args=NULL)

var d = new Date(t.publishedDate);
var niceDate = $.datepicker.formatDate('MM d, yy', d);
html += '<p><time datetime="' + d.toISOString() + '" pubdate>' + niceDate + '</time></p>';
html += '<p><time datetime="' + d.toISOString() + '" pubdate>' + niceDate + '</time> &mdash; ' + t.author + '</p>';

html += '</header><br />';
html += '<div class="articlecontent">' + t.content + '</div>';
html += '</article>';
html += '<div class="links"><a href="' + n.feedUri + '" class="link-rss" title="Doomsday Engine development blog via RSS">All blogs</a></div></div>';
html += '<div class="links"><a href="' + n.feedUri + '" class="link-rss" title="Doomsday Engine development blog via RSS">All dev posts</a></div></div>';
return '<li>' + html + '</li>';
}
});
Expand Down

0 comments on commit 7eb16dd

Please sign in to comment.