Skip to content

Commit

Permalink
jinjify prefetch
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 22, 2015
1 parent 4cd4584 commit 6703336
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nikola/data/themes/base-jinja/templates/index.tmpl
Expand Up @@ -3,6 +3,13 @@
{% import 'comments_helper.tmpl' as comments with context %}
{% extends 'base.tmpl' %}

{% block extra_head %}
{{ super() }}
{% if permalink == '/' or permalink == '/' + index_file %}
<link rel="prefetch" href="{{ posts[0].permalink() }}" type="text/html">
{% endif %}
{% endblock %}

{% block content %}
<div class="postindex">
{% for post in posts %}
Expand Down

0 comments on commit 6703336

Please sign in to comment.