summaryrefslogtreecommitdiff
path: root/theme/templates/menu.html
blob: b8ecd504ba834fc26286d7f2372bd83c4ef98fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff
{% macro submenu(elements, link, name) -%}
  {% if elements %}
  <li class='has-sub'><a href="{{ SITEURL }}/{{link}}.html"><span>{{name}}</span></a>
  <ul> 
    {% for tag, articles in elements %}
    <li><a href="{{SITEURL}}/{{tag.url}}"><span>{{ tag }}</span></a></li>
    {% endfor %} 
  </ul>
  </li>
  {% endif %}
{%- endmacro %}

<div id="cssmenu">
<ul>
  <li class='has-sub'><a href="{{ SITEURL }}/">Articles</a>
  <ul>
  {% for article in articles %}  
    {% if loop.index < FEED_MAX_ITEMS %}
      <li><a href="{{ SITEURL }}/{{ article.url}}">{{ article.title }}</a></li>
    {% endif %}
  {% endfor %}
      <hr/>
      <li><a href="{{ SITEURL }}/archives.html">Archives</a>
  </ul>
  </li>

  {{ submenu(categories, 'categories', 'Catégories') }}
  {{ submenu(tags, 'tags', 'Mots-clefs') }}


{#
  {% if FEED or FEED_RSS %}
  <li class='has-sub'><a href="{{ SITEURL }}/#">S'abonner</a>
       <ul>
         {% if FEED %}
         <li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate">Flux ATOM</a></li>
         {% endif %}
         {% if FEED_RSS %}
         <li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">Flux RSS</a></li>
         {% endif %}

         {% if categories %}
         {% for category, articles in categories %}
         <li><a href="{{SITEURL}}/{{CATEGORY_FEED_ATOM % (category)}}"><span>{{ category }}</span></a></li>
         {% endfor %} 
         {% endif %}
       </ul>
  </li>
  {% endif %}
#}

</ul>
</div>