Skip to content
Permalink
Browse files

jinjify prefetch

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 22, 2015
1 parent 4cd4584 commit 6703336d786929d88e0ea02618d046bdd1ff9912
Showing with 7 additions and 0 deletions.
  1. +7 −0 nikola/data/themes/base-jinja/templates/index.tmpl
@@ -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 %}

0 comments on commit 6703336

Please sign in to comment.
You can’t perform that action at this time.