You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.5 KiB
HTML
82 lines
2.5 KiB
HTML
{% extends "index.html" %}
|
|
{% import "macros.html" as macros %}
|
|
|
|
{% block customjs %}
|
|
<script type="text/javascript" src="/js/filters.js"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<section class="meta">
|
|
<div>
|
|
<h2>{{ page.title }}</h2>
|
|
<p>{{ page.description | safe }}</p>
|
|
</div>
|
|
{% if page.extra.mainimage %}
|
|
<img src="{{ resize_image(path=page.extra.mainimage, width=500, height=500, op="fill") }}" alt="{{ page.extra.mainimage }}">
|
|
{% endif %}
|
|
</section>
|
|
{{ page.content | safe }}
|
|
|
|
{% if page.extra.articlelist %}
|
|
{% set section = get_section(path="clanky/_index.md") %}
|
|
{% if section.pages %}
|
|
<h3>Příklady dobré praxe</h3>
|
|
<section class="articles">
|
|
{% for page in section.pages %}
|
|
<a href="{{ page.permalink }}">
|
|
{% if page.extra.short_title %}
|
|
{{ page.extra.short_title }}
|
|
{% else %}
|
|
{{ page.title }}
|
|
{% endif %}
|
|
</a>
|
|
{% endfor %}
|
|
</section>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if page.extra.softwarelist %}
|
|
{% set section = get_section(path="software/_index.md") %}
|
|
{% if section.pages %}
|
|
<h3>Doporučené nástroje</h3>
|
|
|
|
{% if page.extra.filters %}
|
|
{% set tags = [] %}
|
|
{% for program in section.pages %}
|
|
{% if program.taxonomies.categories and program.taxonomies.categories is containing(page.slug) %}
|
|
{% if program.taxonomies.tags %}
|
|
{% set_global tags = tags | concat(with=program.taxonomies.tags) %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% set_global tags = tags | unique %}
|
|
|
|
<section class="filters" id="filters">
|
|
<button class="btn active" onclick="filterSelection('all')">Ukázat vše</button>
|
|
{% for tag in tags %}
|
|
<button class="btn" onclick="filterSelection('{{ tag | slugify }}')">{{ tag }}</button>
|
|
{% endfor %}
|
|
</section>
|
|
{% endif %}
|
|
|
|
<section class="software">
|
|
{% for program in section.pages %}
|
|
{% if program.taxonomies.categories and program.taxonomies.categories is containing(page.slug) %}
|
|
{% if program.extra.positive_short and program.extra.negative_short %}
|
|
{{ macros::print_tool(program=program) }}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% for program in section.pages %}
|
|
{% if program.taxonomies.categories and program.taxonomies.categories is containing(page.slug) %}
|
|
{% if not program.extra.positive_short or not program.extra.negative_short %}
|
|
{{ macros::print_tool(program=program) }}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</section>
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endblock %}
|