Skip to content

Commit 5fe3d85

Browse files
committed
updates
1 parent 3d6bba7 commit 5fe3d85

30 files changed

Lines changed: 2113 additions & 2898 deletions

File tree

_config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
markdown: rdiscount
21
pygments: true
32
permalink: /:title

_layouts/default.html

Lines changed: 24 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,66 +10,49 @@
1010
<!-- syntax highlighting CSS -->
1111
<link rel="stylesheet" href="/css/syntax.css" type="text/css" />
1212

13-
<link rel="stylesheet" href="http://cdn.moot.it/1.1/moot.css"/>
1413
<!-- Homepage CSS -->
15-
<link rel="stylesheet" href="/css/bootstrap.css" type="text/css" media="screen, projection" />
14+
<link rel="stylesheet" href="//bootswatch.com/sandstone/bootstrap.min.css" type="text/css" media="screen, projection" />
1615
<link rel="stylesheet" href="/css/style.css" type="text/css" media="screen, projection" />
17-
16+
<link href="https://fonts.googleapis.com/css?family=Arvo:400,700&subset=latin" rel="stylesheet" type="text/css">
1817

1918

2019
<!-- Typekit -->
2120
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
2221

2322

24-
<script type="text/javascript">
25-
/* <![CDATA[ */
26-
(function() {
27-
var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
28-
s.type = 'text/javascript';
29-
s.async = true;
30-
s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
31-
t.parentNode.insertBefore(s, t);
32-
})();
33-
/* ]]> */
34-
</script>
35-
<!-- (1) Moot depends on jQuery v1.7 or greater -->
36-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
23+
3724

3825
</head>
3926
<body>
40-
<div class="container">
4127

4228
<div class="row">
43-
<div class="col-lg-12">
44-
<div class="navbar" style="margin-top:10px;">
45-
<div class="container">
46-
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
47-
<span class="icon-bar"></span>
48-
<span class="icon-bar"></span>
49-
<span class="icon-bar"></span>
50-
</button>
51-
<a class="navbar-brand" href="/">Backbone Tutorials</a>
52-
<div class="nav-collapse collapse navbar-responsive-collapse">
53-
<ul class="nav navbar-nav">
54-
<li class=""><a href="/">Home</a></li>
55-
56-
</ul>
57-
<ul class="nav navbar-nav pull-right">
58-
<li><a href="http://prerender.io"><strong>Need SEO?</strong></a></li>
59-
<li><a href="http://feeds.feedburner.com/BackboneTutorials">Subscribe</a></li>
60-
<li><a href="https://leanpub.com/backbonetutorials">Download eBook (.pdf, .MOBI, .ePub)</a></li>
61-
</ul>
62-
</div><!-- /.nav-collapse -->
63-
</div><!-- /.container -->
64-
</div>
6529

30+
<div class="navbar navbar-default">
31+
<div class="container">
32+
<div class="navbar-header">
33+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
34+
<span class="icon-bar"></span>
35+
<span class="icon-bar"></span>
36+
<span class="icon-bar"></span>
37+
</button>
38+
<a class="navbar-brand" href="/">Backbone Tutorials</a>
39+
</div>
40+
<div class="navbar-collapse collapse navbar-responsive-collapse">
41+
<ul class="nav navbar-nav">
42+
<li class=""><a href="/">Home</a></li>
6643

67-
</div>
44+
</ul>
45+
<ul class="nav navbar-nav navbar-right">
46+
<li><a href="http://prerender.io"><strong>Need SEO?</strong></a></li>
47+
<li><a href="http://feeds.feedburner.com/BackboneTutorials">Subscribe</a></li>
48+
<li><a href="https://leanpub.com/backbonetutorials">Download eBook (.pdf, .MOBI, .ePub)</a></li>
49+
</ul>
6850
</div>
6951
</div>
7052

53+
</div>
54+
7155

72-
<div style=""></div>
7356
<div class="container">
7457
<div class="row">
7558
<div class="col-lg-4">
@@ -97,7 +80,6 @@ <h3 >Backbone.js Beginner Video Tutorial</h3>
9780
<script src="//static.getclicky.com/js" type="text/javascript"></script>
9881
<script type="text/javascript">try{ clicky.init(66406579); }catch(e){}</script>
9982
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/66406579ns.gif" /></p></noscript>
100-
<script> Nowtalk = []; Nowtalk.config = {fullscreen: false, session_id: 0, base_url: "https://www.nowtalk.com", widget_url: "https://www.nowtalk.com/chat", chat_id: "53a9f0318dcaf", debug: false }; document.write(unescape("%3Cscript src='https://www.nowtalk.com/build/embed_nowtalk.min.js?' type='text/javascript'%3E%3C/script%3E")); </script>
10183

10284
</body>
10385
</html>

_posts/2012-8-1-seo-for-single-page-apps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Using modern headless browsers, we can easily return the fully rendered content
2727

2828
You will need to install node.js and phantom.js onto a box. Then start up this server below. There are two files, one which is the web server and the other is a phantomjs script that renders the page.
2929

30-
{% highlight javascript %}
30+
```javascript
3131
// web.js
3232

3333
// Express is our web server that can handle request
@@ -67,7 +67,7 @@ var respond = function (req, res) {
6767

6868
app.get(/(.*)/, respond);
6969
app.listen(3000);
70-
{% endhighlight %}
70+
```
7171

7272
The script below is `phantom-server.js` and will be in charge of fully rendering the content. We don't return the content until the page is fully rendered. We hook into the resources listener to do this.
7373

0 commit comments

Comments
 (0)