Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add dynamic prefetch hints for the three latest blog posts.

  • Loading branch information...
commit 61af8b960f71cb3e79e668c8efedecf001128d77 1 parent e64c256
@hermannloose authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 _layouts/layout.html
View
4 _layouts/layout.html
@@ -11,6 +11,10 @@
<link rel="alternate" href="http://feeds.feedburner.com/burnandtremble" type="application/rss+xml" />
<link rel="canonical" href="{{ site.baseurl }}{{ page.url }}" />
+ {% for post in site.posts limit:3 %}
+ <link rel="prefetch" href="{{ post.url }}" />
+ {% endfor %}
+
{% if page.meta != null and page.meta.description != null %}
<meta name="description" content="{{ page.meta.description }}" />
{% else %}
Please sign in to comment.
Something went wrong with that request. Please try again.