Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 025c733

Browse files
committed
working...
1 parent 372d7a5 commit 025c733

File tree

9 files changed

+24
-37
lines changed

9 files changed

+24
-37
lines changed

‎dist/article.html

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
55
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css" />
66
<link rel="stylesheet" href="http://node-os.com/css/default.css" />
7-
<!-- START: ANGULAR DEPENDENCY -->
8-
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.min.js"></script>
9-
<script type="text/javascript" src="/blog/api.js" ></script>
7+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.min.js"></script>
8+
<script type="text/javascript" src="api.min.js" ></script>
109
<style>
1110
#articles img{max-width:100%}
1211
</style>
13-
<!-- END: ANGULAR DEPENDENCY -->
1412
</head>
1513
<body>
1614
<header class="navbar navbar-default navbar-fixed-top" role="navigation">
@@ -58,18 +56,13 @@ <h3 class="title">{{error.name}}</h3>
5856
<div class="col-sm-8 col-sm-offset-2">
5957
<header class="{{item.state}}">
6058
<h3 class="title">
61-
<a href="http://node-os.com/blog/article#{{item.number}}">
59+
<a href="article.html#{{item.number}}">
6260
{{item.title}}
6361
</a>
6462
</h3>
6563
<a href="{{item.html_url}}">View on Github</a>
6664
</header>
6765
<div class="content" ng-bind-html="item.bodyHTML | to_trusted"></div>
68-
<footer>
69-
<a href="http://node-os.com/blog/{{item.number}}" class="comments">
70-
There are {{item.comments}} comments.
71-
</a>
72-
</footer>
7366
</div>
7467
</article>
7568
</div>
@@ -129,6 +122,8 @@ <h3 class="footer-title">Share</h3>
129122
</div>
130123
</footer>
131124

125+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
126+
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" ></script>
132127
<!-- START: BIND DATA TO VIEW -->
133128
<script type="text/javascript">
134129

@@ -174,7 +169,7 @@ <h3 class="footer-title">Share</h3>
174169
document.querySelector(".four-zero-three .content").innerHTML("You've authenticated!");
175170
});
176171
});
177-
var hash = url.parse(document.location).hash;
172+
var hash = document.location.toString().split("#")[1];
178173
NodeOsBlog.controller('BlogSingleCtrl', function ($scope, $http) {
179174
$scope.uriPath = "/NodeOS/NodeOS/issues/"+hash;
180175
$scope.blog = [];
@@ -214,7 +209,7 @@ <h3 class="footer-title">Share</h3>
214209
}
215210
});
216211
});
217-
NodeOsBlog.controller('BlogListCtrl', function ($scope, $http) {
212+
NodeOsBlog.controller('CommentListCtrl', function ($scope, $http) {
218213
$scope.uriPath = "/NodeOS/NodeOS/issues/"+hash+"/comments";
219214
$scope.blog = [];
220215
$scope.parseMarkdown = function(item,next){
@@ -257,6 +252,5 @@ <h3 class="footer-title">Share</h3>
257252
});
258253
</script>
259254
<!-- END: BIND DATA TO VIEW -->
260-
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" ></script>
261255
</body>
262256
</html>

‎dist/blog.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
55
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css" />
66
<link rel="stylesheet" href="http://node-os.com/css/default.css" />
7-
<!-- START: ANGULAR DEPENDENCY -->
8-
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.min.js"></script>
9-
<script type="text/javascript" src="/blog/api.js" ></script>
7+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.min.js"></script>
8+
<script type="text/javascript" src="api.min.js" ></script>
109
<style>
1110
#articles img{max-width:100%}
1211
</style>
13-
<!-- END: ANGULAR DEPENDENCY -->
1412
</head>
1513
<body>
1614
<header class="navbar navbar-default navbar-fixed-top" role="navigation">
@@ -58,7 +56,7 @@ <h3 class="title">{{error.name}}</h3>
5856
<div class="col-sm-8 col-sm-offset-2">
5957
<header class="{{item.state}}">
6058
<h3 class="title">
61-
<a href="http://node-os.com/blog/article#{{item.number}}">
59+
<a href="article.html#{{item.number}}">
6260
{{item.title}}
6361
</a>
6462
</h3>
@@ -113,6 +111,8 @@ <h3 class="footer-title">Share</h3>
113111
</div>
114112
</footer>
115113

114+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
115+
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" ></script>
116116
<!-- START: BIND DATA TO VIEW -->
117117
<script type="text/javascript">
118118

@@ -158,7 +158,7 @@ <h3 class="footer-title">Share</h3>
158158
document.querySelector(".four-zero-three .content").innerHTML("You've authenticated!");
159159
});
160160
});
161-
NodeOsBlog.controller('BlogSingleCtrl', function ($scope, $http) {
161+
NodeOsBlog.controller('BlogListCtrl', function ($scope, $http) {
162162
$scope.uriPath = "/NodeOS/NodeOS/issues";
163163
$scope.blog = [];
164164
$scope.parseMarkdown = function(item,next){
@@ -203,6 +203,5 @@ <h3 class="footer-title">Share</h3>
203203
});
204204
</script>
205205
<!-- END: BIND DATA TO VIEW -->
206-
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" ></script>
207206
</body>
208207
</html>

‎html/footerjs/bloglist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NodeOsBlog.controller('BlogSingleCtrl', function ($scope, $http) {
1+
NodeOsBlog.controller('BlogListCtrl', function ($scope, $http) {
22
$scope.uriPath = "/NodeOS/NodeOS/issues";
33
$scope.blog = [];
44
$scope.parseMarkdown = function(item,next){

‎html/footerjs/blogsingle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var hash = url.parse(document.location).hash;
1+
var hash = document.location.toString().split("#")[1];
22
NodeOsBlog.controller('BlogSingleCtrl', function ($scope, $http) {
33
$scope.uriPath = "/NodeOS/NodeOS/issues/"+hash;
44
$scope.blog = [];

‎html/footerjs/commentlist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NodeOsBlog.controller('BlogListCtrl', function ($scope, $http) {
1+
NodeOsBlog.controller('CommentListCtrl', function ($scope, $http) {
22
$scope.uriPath = "/NodeOS/NodeOS/issues/"+hash+"/comments";
33
$scope.blog = [];
44
$scope.parseMarkdown = function(item,next){

‎html/parts/bloglist.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="col-sm-8 col-sm-offset-2">
44
<header class="{{item.state}}">
55
<h3 class="title">
6-
<a href="http://node-os.com/blog/article#{{item.number}}">
6+
<a href="article.html#{{item.number}}">
77
{{item.title}}
88
</a>
99
</h3>

‎html/parts/blogsingle.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@
33
<div class="col-sm-8 col-sm-offset-2">
44
<header class="{{item.state}}">
55
<h3 class="title">
6-
<a href="http://node-os.com/blog/article#{{item.number}}">
6+
<a href="article.html#{{item.number}}">
77
{{item.title}}
88
</a>
99
</h3>
1010
<a href="{{item.html_url}}">View on Github</a>
1111
</header>
1212
<div class="content" ng-bind-html="item.bodyHTML | to_trusted"></div>
13-
<footer>
14-
<a href="http://node-os.com/blog/{{item.number}}" class="comments">
15-
There are {{item.comments}} comments.
16-
</a>
17-
</footer>
1813
</div>
1914
</article>
2015
</div>

‎html/parts/head.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
<!-- START: ANGULAR DEPENDENCY -->
21
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.min.js"></script>
3-
<script type="text/javascript" src="/blog/api.js" ></script>
2+
<script type="text/javascript" src="api.min.js" ></script>
43
<style>
54
#articles img{max-width:100%}
65
</style>
7-
<!-- END: ANGULAR DEPENDENCY -->

‎html/template.ejs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
55
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css" />
66
<link rel="stylesheet" href="http://node-os.com/css/default.css" />
7-
<%-cur_page["head"]%>
7+
<%-cur_page.head%>
88
</head>
99
<body>
1010
<header class="navbar navbar-default navbar-fixed-top" role="navigation">
@@ -29,7 +29,7 @@
2929
</header>
3030
<!-- START: ISSUES ITEM TEMPLATE -->
3131
<section ng-app="NodeOsBlog" id="articles" class="section">
32-
<%-cur_page["body"]%>
32+
<%-cur_page.body%>
3333
</section>
3434
<!-- END: ISSUES ITEM TEMPLATE -->
3535

@@ -70,6 +70,8 @@
7070
</div>
7171
</footer>
7272

73+
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
74+
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" ></script>
7375
<!-- START: BIND DATA TO VIEW -->
7476
<script type="text/javascript">
7577
@@ -79,9 +81,8 @@
7981
return $sce.trustAsHtml(text);
8082
};
8183
}]);
82-
<%-cur_page["foot"]%>
84+
<%-cur_page.foot%>
8385
</script>
8486
<!-- END: BIND DATA TO VIEW -->
85-
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" ></script>
8687
</body>
8788
</html>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /