{%- assign count = site.theme_setting.slides_count | default: 4 -%} {%- for book in site.books limit: count -%} {%- assign is_odd = forloop.index | modulo: 2 -%}
{%- if is_odd == 1 -%}
{{ book.title }}
{%- endif -%}

{{ book.title }}

{{ book.date }}

{%- if is_odd == 0 -%}
{{ book.title }}
{%- endif -%}
{%- endfor -%}