Skip to content

Commit db410ac

Browse files
committed
Blog posts metadata info
1 parent 2238d71 commit db410ac

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
<div class="collapse navbar-collapse navbar-ex1-collapse">
3232
<ul class="nav navbar-nav">
3333
<li><a href="http://node-os.com/blog">Blog</a></li>
34-
<li><a href="http://npkg.org">npkg.org</a></li>
3534
</ul>
3635
</div>
3736
<!-- /.navbar-collapse -->
@@ -52,7 +51,7 @@ <h3 class="title">{{error.name}}</h3>
5251
Don't worry, it probably was not your fault... probably...
5352
<br/><br/>
5453
Even if it was,
55-
<a target="_blank" href="https://github.com/formula1/NodeOS-Blog/issues" >just submit an issue :)</a>
54+
<a target="_blank" href="https://github.com/NodeOS/GitBlog/issues" >just submit an issue :)</a>
5655
</footer>
5756
</div>
5857
</article>
@@ -63,8 +62,10 @@ <h3 class="title">{{error.name}}</h3>
6362
<div class="col-sm-8 col-sm-offset-2">
6463
<header class="{{item.state}}">
6564
<a href="https://github.com/{{uriPath}}/{{item.number}}">
66-
<h3 class="title">{{item.title}}</h3>
65+
<h2 class="title">{{item.title}}</h2>
6766
</a>
67+
<span>by <a href="{{item.user.html_url}}">{{item.user.login}}</a></span>
68+
<p class="blog-date">{{item.created_at}}, updated {{item.updated_at}}</p>
6869
</header>
6970
<div class="content" ng-bind-html="item.bodyHTML | to_trusted"></div>
7071
<footer>
@@ -92,7 +93,7 @@ <h3 class="title">{{item.title}}</h3>
9293
<div class="row">
9394
<div class="col-sm-7">
9495
<h3 class="footer-title">Share</h3>
95-
<p>node-os is a work in progress.</p>
96+
<p>NodeOS is a work in progress.</p>
9697
<p>If you would like to support us, please share node-os via Twitter</p>
9798
<p class="pvl">
9899
<a href="https://twitter.com/TheNodeOS" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @TheNodeOS</a>

js/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
var NodeOsBlog = angular.module('NodeOsBlog', []);
22
var errors = [];
3+
34
NodeOsBlog.filter('to_trusted', ['$sce', function($sce){
45
return function(text) {
56
return $sce.trustAsHtml(text);
67
};
78
}]);
9+
810
NodeOsBlog.controller('ErrorListCtrl', function($scope){
911
$scope.errors = errors;
1012
var oldwinerr = window.onerror;
@@ -14,8 +16,10 @@ NodeOsBlog.controller('ErrorListCtrl', function($scope){
1416
}
1517
};
1618
});
19+
1720
NodeOsBlog.controller('BlogListCtrl', function ($scope, $http) {
1821
$scope.uriPath = "/NodeOS/NodeOS/issues";
22+
$scope.labels = "blog";
1923
$scope.blog = [];
2024
$scope.parseMarkdown = function(item,next){
2125
$http.post("https://api.github.com/markdown",{text:item.body})
@@ -33,7 +37,7 @@ NodeOsBlog.controller('BlogListCtrl', function ($scope, $http) {
3337
if($scope.last && $scope.last < page) return;
3438
var i=0;
3539
var l=-1;
36-
$http.get('https://api.github.com/repos'+$scope.uriPath+'?labels=blog&sort=created&page='+page)
40+
$http.get('https://api.github.com/repos'+$scope.uriPath+'?labels='+$scope.labels+'&sort=created&page='+page)
3741
.success(function(data,status,headers) {
3842
console.log(headers);
3943
console.log(headers.link);

0 commit comments

Comments
 (0)