base.html 3.48 KB
Newer Older
Jérôme Ortais's avatar
Jérôme Ortais committed
1
<!DOCTYPE html>
Jérôme Ortais's avatar
Jérôme Ortais committed
2
<html lang="fr">
Jérôme Ortais's avatar
Jérôme Ortais committed
3 4 5 6 7 8
<head>
  {% block head %}
  <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
  <meta name="description"
        content="Pyromaths permet de créer des exercices de mathématiques ainsi que leurs corrigé au format pdf."/>

9
  <link rel="icon" href="{{ SITEURL }}/theme/images/favicon.ico"/>
Jérôme Ortais's avatar
Jérôme Ortais committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
  <title>{% block title %}{% endblock %}</title>

  {% if FEED_ALL_ATOM %}
  <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate"
        title="{{ SITENAME }} Full Atom Feed"/>
  {% endif %}
  {% if FEED_ALL_RSS %}
  <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate"
        title="{{ SITENAME }} Full RSS Feed"/>
  {% endif %}
  {% if FEED_ATOM %}
  <link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate"
        title="{{ SITENAME }} Atom Feed"/>
  {% endif %}
  {% if FEED_RSS %}
  <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate"
        title="{{ SITENAME }} RSS Feed"/>
  {% endif %}
  {% if CATEGORY_FEED_ATOM and category %}
  <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml"
        rel="alternate" title="{{ SITENAME }} Categories Atom Feed"/>
  {% endif %}
  {% if CATEGORY_FEED_RSS and category %}
  <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml"
        rel="alternate" title="{{ SITENAME }} Categories RSS Feed"/>
  {% endif %}
  {% if TAG_FEED_ATOM and tag %}
  <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate"
        title="{{ SITENAME }} Tags Atom Feed"/>
  {% endif %}
  {% if TAG_FEED_RSS and tag %}
  <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate"
        title="{{ SITENAME }} Tags RSS Feed"/>
  {% endif %}
44
  <link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css" type="text/css"/>
Jérôme Ortais's avatar
Jérôme Ortais committed
45 46 47 48 49 50 51 52 53 54
  {% endblock head %}
  {% block javascript %}{% endblock %}
</head>

<body>
<div id="total">
  <div id="page">
    <div id="header">
      {% block header %}
      <div id="logo_holder">
55
        <h1><a href="{{ SITEURL }}" id="logo">Pyromaths</a></h1>
Jérôme Ortais's avatar
Jérôme Ortais committed
56 57 58 59
      </div>

      <div id="nav_menu">
        <ul>
60
          <li><a href="{{ SITEURL }}">Accueil</a></li>
61 62 63 64 65
          <li><a href="https://enligne.pyromaths.org/">Utiliser en ligne</a></li>
          {% for cat_name, article_list in categories if cat_name=="telecharger" %}
          {% for article in article_list %}
          {% if loop.first %}
          <li>
66
            <a href="{{ SITEURL }}/{{ article.slug }}.html">Télécharger</a>
67 68 69 70
          </li>
          {% endif %}
          {% endfor %}
          {% endfor %}
71
          <li><a href="{{ SITEURL }}/installer-pyromaths.html">Documentation</a></li>
Jérôme Ortais's avatar
Jérôme Ortais committed
72
          <li><a href="http://pyromaths.readthedocs.io/fr/develop/">Développeurs</a></li>
73
          <li><a href="https://forum.pyromaths.org">Forum</a></li>
Jérôme Ortais's avatar
Jérôme Ortais committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
        </ul>
      </div>
      {% endblock header %}
    </div>

    {% block content %}{% endblock %}

  </div><!--page-->
  <div id="footer">
    <div id="left">&nbsp;</div>
    <div id="right">
      <a href="/abonnement/rss/" id="feeds">Flux RSS</a>
    </div>
    <div id="copyright">
      <p>&copy; 2010 Pyromaths<br/>
        Thème inspiré d'un travail de <a href="https://www.divio.ch/">Divio
          GmbH</a></p>
    </div>
  </div>
</div> <!--total-->
</body>
</html>