Skip to content

Instantly share code, notes, and snippets.

@gidden
Created October 3, 2016 07:28
Show Gist options
  • Save gidden/3bf5dee0a67abbdd072b35493d426097 to your computer and use it in GitHub Desktop.
Save gidden/3bf5dee0a67abbdd072b35493d426097 to your computer and use it in GitHub Desktop.
Update relbar
{% extends "!layout.html" %}
{%- block linktags %}
{%- if hasdoc('about') %}
<link rel="author" title="{{ _('About these documents') }}"
href="{{ pathto('about') }}"/>
{%- endif %}
<!-- {%- if hasdoc('genindex') %}
!-- <link rel="index" title="{{ _('Index') }}"
!-- href="{{ pathto('genindex') }}"/>
!-- {%- endif %} -->
{%- if hasdoc('search') %}
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}"/>
{%- endif %}
{%- if hasdoc('copyright') %}
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}"/>
{%- endif %}
<link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}"/>
{%- if parents %}
<link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}"/>
{%- endif %}
{%- if next %}
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}"/>
{%- endif %}
{%- if prev %}
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"/>
{%- endif %}
{%- endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment