mirror of https://github.com/scrapy/scrapy.git
Adding nav and footer links statically instead of use the removed links application
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40107
This commit is contained in:
parent
202e08a9d3
commit
ee8d9a594a
|
|
@ -3,16 +3,13 @@
|
|||
{% block content %}
|
||||
<h1>Scrapy - an opensource screen scraping framework for python</h1>
|
||||
|
||||
{% load link_tags %}
|
||||
{% load_links "nav-links" as "nav_links" %}
|
||||
|
||||
{% if nav_links %}
|
||||
<ul id="navigation">
|
||||
{% for link in nav_links %}
|
||||
<li{% if forloop.last %} class="last"{% endif %}><a href="{{ link.address }}">{{ link.text }}</a></li>
|
||||
{% endfor %}
|
||||
<li><a href="/code/">Code</a>
|
||||
<li><a href="/blog/">Weblog</a>
|
||||
<li><a href="/doc/">Documentation</a>
|
||||
<li><a href="/download/">Download</a>
|
||||
<li class="last"><a href="/">Home</a>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
|
|
@ -54,13 +51,12 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
{% load_links "footer-links" as "footer_links" %}
|
||||
{% if footer_links %}
|
||||
<ul>
|
||||
<li style="border-right:none;">Scrapy : </li>
|
||||
{% for link in footer_links %}
|
||||
<li{% if forloop.last %} class="last"{% endif %}><a href="{{ link.address }}">{{ link.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
<ul>
|
||||
<li style="border-right:none;">Scrapy : </li>
|
||||
<li><a href="/code/">Code</a>
|
||||
<li><a href="/blog/">Weblog</a>
|
||||
<li><a href="/doc/">Documentation</a>
|
||||
<li><a href="/download/">Download</a>
|
||||
<li class="last"><a href="/">Home</a>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue