<|start_filename|>_pages/aktuality.html<|end_filename|>
---
layout:      empty
title:       "Aktuality"
slug:        aktuality
intro:       "Stručný přehled novinek, oprav a aktualizací na našem webu."
search_id:   news
search_type: "Aktuality"
---

<div class="section">
    <div class="container">
        <h1>{{ page.title }}</h1>
        <p class="lead">{{ page.intro }}</p>
        <p class="lead">Chcete dostávat pravidelné aktualizace přes email? Přihlaste se k odběru našeho newsletteru: Krátký sumář novinek na našem webu maximálně jednou za měsíc (a spíše méně často).</p>

        <a href="#newsletter-modal" class="btn btn-primary" id="newsletter-embed" data-toggle="modal" data-target="#newsletter-modal"><i class="fas fa-fw fa-envelope-open-text"></i> Přihlásit se k newsletteru</a>
         
    </div>
</div>

<div class="section news">
    <div class="container">
    {% assign sorted_news = site.data.news | sort: "date" | reverse %}
    {% for item in sorted_news %}
        <div class="news-item">
            <div class="d-block d-md-inline-block date">
                <p>{{ item.date | date: "%-d. %-m. %Y" }}</p>
            </div>
            <div class="d-inline-block summary">
            {% if item.title %}
                <h2>{{ item.title }}</h2>
            {% endif %}
                {{ item.summary | markdownify }}
            </div>
        </div>
    {% endfor %}
    </div>
</div>


<|start_filename|>Makefile<|end_filename|>
WEB_CORE_FOLDER=web-core

all build check local clean clean-build bundle-install container build-container delete-container lighthouse deploy-preview deploy-production: web-core
	$(MAKE) -C $(WEB_CORE_FOLDER) $@

web-core:
	git submodule update --init --recursive

.PHONY: all build check local clean clean-build bundle-install container build-container delete-container lighthouse deploy-preview deploy-production
.PHONY: web-core


<|start_filename|>_pages/slovnik.html<|end_filename|>
---
layout:      single-section-page
title:       "Slovník pojmů"
slug:        slovnik
intro:       "Stručný přehled nejčastěji používaných hesel a zkratek s krátkým vysvětlením či komentářem."
search_id:   glossary
search_type: "Slovník"
---
{%- assign sorted_glossary = site.data.glossary | sort_localized: "name-short" -%}

<!-- FIXME dodělat markdownify filtr a upravit glossary.yml --#McZ_2019-10-02 -->

<p class="lead">{{ page.intro }}</p>

<ul class="inline-bullet-list">
    {%- for item in sorted_glossary %}
    <li><a href="#{{ item.id }}">{{ item.name-short }}</a></li>
    {%- endfor %}
</ul>

{% for item in sorted_glossary %}
<hr/>
<h3 id="{{ item.id }}">{{ item.name-short }}{% if item.name-long %}<span class="lead"> ({{ item.name-long }})</span>{% endif %}</h3>
{{ item.description | markdownify }}
{% endfor %}


<|start_filename|>includes-local/object-stats.html<|end_filename|>
{%- if include.tag -%}
{%- assign num_infographics = site.infographics | where_exp: "item", "item.tags contains include.tag" | size -%}
{%- assign num_explainers = site.explainers | where_exp: "item", "item.tags contains include.tag" | size -%}
{%- assign num_studies = site.studies | where_exp: "item", "item.tags contains include.tag" | size -%}
{%- assign num_datasets = site.datasets | where_exp: "item", "item.tags contains include.tag" | size -%}
{%- capture stats -%}
{%- case num_infographics -%}
    {%- when 0 -%}
    {%- when 1 -%}1 infografika,
    {%- when 2, 3, 4 -%}{{num_infographics}} infografiky,
    {%- else -%}{{num_infographics}} infografik,
{%- endcase -%}
{%- case num_explainers -%}
    {%- when 0 -%}
    {%- when 1 -%}1 explainer,
    {%- when 2, 3, 4 -%}{{num_explainers}} explainery,
    {%- else -%}{{num_explainers}} explainerů,
{%- endcase -%}
{%- case num_studies -%}
    {%- when 0 -%}
    {%- when 1, 2, 3, 4 -%}{{num_studies}} studie/rešerše,
    {%- else -%}{{num_studies}} studií/rešerší,
{%- endcase -%}
{%- case num_datasets -%}
    {%- when 0 -%}
    {%- when 1 -%}1 dataset,
    {%- when 2, 3, 4 -%}{{num_datasets}} datasety,
    {%- else -%}{{num_infographics}} datasetů,
{%- endcase -%}
{%- endcapture -%}
{{ stats | split:',' | join:', ' | trim }}
{%- endif -%}