{% if have_posts() %} {% set post = get_posts()[0] %} {# Hack. Set $post so that the_date() works. #} {# If this is a category archive #} {% if is_category() %}

Archive for the ‘{{ single_cat_title('', false) }}’ Category

{# If this is a tag archive #} {% elseif is_tag() %}

Posts Tagged ‘{{ single_tag_title('', false) }}’

{# If this is a daily archive #} {% elseif is_day() %}

Archive for {{ the_time(__('F jS, Y', 'kubrick')) }}

{# If this is a monthly archive #} {% elseif is_month() %}

Archive for {{ the_time(__('F, Y', 'kubrick')) }}

{# If this is a yearly archive #} {% elseif is_year() %}

Archive for {{ the_time(__('Y', 'kubrick')) }}

{# If this is an author archive #} {% elseif is_author() %}

{{ __('Author Archive', 'kubrick') }}

{# If this is a paged archive #} {% elseif is_paged() %}

{{ __('Blog Archives', 'kubrick') }}

{% endif %} {% for post in loop %}

{{ the_title() }}

{{ the_time(__('l, F jS, Y', 'kubrick')) }}
{{ the_content() }}
{% endfor %} {% else %} {% if is_category() %} {# // If this is a category archive #}

Sorry, but there aren't any posts in the {{ single_cat_title('',false) }} category yet.

{% elseif is_date() %} {# // If this is a date archive #}

{{ __("Sorry, but there aren't any posts with this date.", 'kubrick') }}

{% elseif is_author() %} {# // If this is a category archive #}

Sorry, but there aren't any posts by {{ user_display_name() }} yet.

{% else %}

{{ __('No posts found.', 'kubrick') }}

{% endif %} {% include 'searchform.html.twig' %} {% endif %}