{#
    layout.html
    ~~~~~~~~~~~

    TRIQS layout template heavily based on the sphinxdoc theme.

    :copyright: Copyright 2013 by the TRIQS team.
    :copyright: Copyright 2007-2013 by the Sphinx team.
    :license: BSD, see LICENSE for details.
#}
{%- extends "basic/layout.html" %}

{# put the sidebar before the body #}
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
{% block sidebar2 %}{% endblock %}

{% block extrahead %}
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,700' rel='stylesheet' type='text/css'>
    <script src="{{ pathto('_static/cufon-yui.js',1) }}" type="text/javascript"></script>
    <script src="{{ pathto('_static/spaceman.cufonfonts.js',1) }}" type="text/javascript"></script>
    <script type="text/javascript">
      Cufon.replace('.triqs', { fontFamily: 'spaceman', hover: true }); 
    </script>
{{ super() }}
{%- if not embedded %}
    <style type="text/css">
      table.right { float: right; margin-left: 20px; }
      table.right td { border: 1px solid #ccc; }
      {% if pagename == 'index' %}
      .related { display: none; }
      {% endif %}
    </style>
{%- endif %}
{% endblock %}

{% block rootrellink %}
    <li><a href="{{ pathto('index') }}">Home</a> &raquo;</li>
{% endblock %}

{% block header %}
<div class="pageheader">
  <ul>
    {% for header_link in header_links %}
    <li><a href="{{ pathto(header_link[1]) }}">{{ header_link[0] }}</a></li>
    {% endfor %}
  </ul>
  <div>
    <h1 style="padding:0; margin: 10px 0 0 0;"><a class="triqs" href="{{ pathto('index') }}">{{ header_title }}</a></h1>
    <span style="font-size: 14px; margin: 0px; padding: 0px;">{{ header_subtitle }}</span>
  </div>
</div>
{% endblock %}
