Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Side Rendering of LatestArticles #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
14 changes: 1 addition & 13 deletions assets/css/webkid.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,7 @@ body * {
line-height: 1.3;
}

.sidebox .loader {
width: 100%;
text-align: center;
font-size: 30px;
padding: 1em 0;
display: none;
}

.sidebox .loading .loader {
display: block;
}

.sidebox.latest-articles a.last {
.sidebox.latest-articles .sidebox-content a:last-child {
padding-bottom: 0;
border: none;
}
Expand Down
193 changes: 0 additions & 193 deletions assets/js/jquery.xml2json.js

This file was deleted.

36 changes: 0 additions & 36 deletions assets/js/webkid.js

This file was deleted.

2 changes: 0 additions & 2 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
{{! The main JavaScript file for Casper }}
<script type="text/javascript" src="{{asset "js/jquery.min.js"}}"></script>
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
<script type="text/javascript" src="{{asset "js/jquery.xml2json.js"}}"></script>
<script type="text/javascript" src="{{asset "js/index.js"}}"></script>
<script type="text/javascript" src="{{asset "js/webkid.js"}}"></script>

</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "webkid",
"version": "1.0.0"
"version": "1.0.1"
}
11 changes: 6 additions & 5 deletions partials/sidebar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@

</div>

{{#get "posts" limit=5 as |recents|}}
<div class="box sidebox latest-articles">
<div class="sidebox-title">Latest Articles</div>
<div class="sidebox-content loading">
<div class="loader">
<i class="fa fa-spinner fa-spin"></i>
</div>
<div class="sidebox-content">
{{#foreach recents}}
<a href="{{url}}"><div class="date">{{date format="DD MMMM YYYY"}}</div><div>{{title}}</div></a>
{{/foreach}}
</div>
</div>

{{/get}}