<commit_before>{% set options = { 
    items: {'@self.siblings':''}, 
    'filter': {'type': 'podcast-episode'}, 
    'order': {'by': 'date', 'dir': 'desc'}, 
    'limit': 5 } %}
{% set mini_episodes = page.collection(options) %}

<div class="episodes-mini-list">
    <h3>{{ 'PLUGIN_PODCAST.WORDS.LATEST'|t|e }} {{ page.parent.title }} {{ 'PLUGIN_PODCAST.WORDS.EPISODE'|t|e|pluralize }}</h3>
    <ul>
        {% for e in mini_episodes %}
            <li><a href="{{ e.url() }}">{{ e.title }}</a></li>
        {% endfor %}
        {% if (mini_episodes|length > 1) %}
            <li><a href="{{ page.parent.url() }}">{{ 'PLUGIN_PODCAST.WORDS.MORE'|t|e }} >></a></li>
        {% endif %}
    </ul>
</div><commit_msg>Small fix for mini list of episodes if no parent series<commit_after>{% if episodes is defined %}
    {# Using passed in episodes Page collection #}
{% else %}
    {# Generate new episodes Page collection based on page template #}
    {% set target = {'@self.siblings':''} %}
    {% set options = { 
        items: target, 
        'filter': {'type': 'podcast-episode'}, 
        'order': {'by': 'date', 'dir': 'desc'}, 
        'limit': 5 } %}
    {% set episodes = page.collection(options) %}
{% endif %}

<div class="episodes-mini-list">
    <h3>{{ 'PLUGIN_PODCAST.WORDS.LATEST'|t|e }} {{ page.parent.title }} {{ 'PLUGIN_PODCAST.WORDS.EPISODE'|t|e|pluralize }}</h3>
    <ul>
        {% for e in episodes %}
            <li><a href="{{ e.url() }}">{{ e.title }}</a></li>
        {% endfor %}
        {% if (episodes|length > 1) %}
            <li><a href="{{ page.parent.url() }}">{{ 'PLUGIN_PODCAST.WORDS.MORE'|t|e }} >></a></li>
        {% endif %}
    </ul>
</div>
{'fraction_non_alphanumeric': 0.23588829471182413, 'fraction_numerical': 0.004753416518122401, 'mean_word_length': 2.7589285714285716, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '823992', 'n_tokens_mistral': 667, 'n_tokens_neox': 612, 'n_words': 127}