File: projects.html

package info (click to toggle)
lektor 3.3.12-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,856 kB
  • sloc: python: 14,376; javascript: 77; makefile: 37; sh: 7; xml: 1
file content (17 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% macro render_category_nav(active=none) %}
  <ul>
  {% for category in site.query('/project-categories') %}
    <li{% if category._id == active %} class="active"{% endif %}>
      <a href="{{ category|url }}">{{ category.name }}</a>
    </li>
  {% endfor %}
  </ul>
{% endmacro %}

{% macro render_project_list(projects) %}
  <ul>
    {% for project in projects %}
      <li><a href="{{ project|url }}">{{ project.name }}</a></li>
    {% endfor %}
  </ul>
{% endmacro %}