summaryrefslogtreecommitdiff
path: root/theme/templates/menu.html
blob: 037d85aaca2cac20102d0774a45e284a6fbcdf16 (plain)
1
2
3
4
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: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bol
{% 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') }}

  <li class='has-sub'><a href="{{ SITEURL }}/"><span>À lire</span></a>
  <ul> 
    {% for page in pages %}
    <li><a href="{{SITEURL}}/{{page.url}}"><span>{{ page.title }}</span></a></li>
    {% endfor %} 
    {% if pages and LINKS %}
    <hr/>
    {% endif %}
    {% for link, target in LINKS %}
    <li><a href="{{target}}"><span>{{ link }}</span></a></li>
    {% endfor %} 
  </ul>
  </li>


{#
  {% 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>