Why am I getting a Liquid error when using pagination in my code?

It show an error like Liquid error (sections/page-lookbook-v2.liquid line 19): Array ‘blocks.lookbooks’ is not paginateable.

Here’s my code

{%- paginate blocks.lookbooks by 5 -%} {%- for blocks in page.blocks -%} {% for block in section.blocks %} {% if block.type == 'slide_lookbook' %}

{{block.settings.title_main1}}
{{block.settings.des1}}

{% if block.settings.select_product1 !=blank %}
1
{% assign product = all_products[block.settings.select_product1] %} {% if block.settings.select_product1 != blank %}

{% assign product_label_new = false %} {% capture _time %}{{settings.product_new_time | times:86400}}{% endcapture %} {% assign time = _time|plus:0 %} {% assign now = 'now' | date: '%s'|plus:0 %} {% capture _value %}{{product.published_at | date: "%s" | plus : time }}{% endcapture %} {% assign value = _value|plus:0 %} {% if now < value %} {% assign product_label_new = true %} {% endif %} {% assign label_popular = false %} {% if product.tags contains "popular" %} {% assign label_popular = true %} {% endif %} {% assign label_hot = false %} {% if product.tags contains "hot" %} {% assign label_hot = true %} {% endif %} {% assign on_sale = false %} {% if product.compare_at_price > product.price %} {% assign on_sale = true %} {% endif %} {% assign sold_out = true %} {% if product.available %} {% assign sold_out = false %} {% endif %}

{{section.settings.text-box-title}}
{{section.settings.text-box-content}}

{% assign sold_out = true %} {% if product.available %} {% assign sold_out = false %} {% endif %} {% if settings.enable_catalog_mode == false%}
{% if sold_out %} {% else %} {% if product.variants.size > 1 %} Select Option {% else %} Buy Now {% endif %} {% endif %}
{% endif %}
{{ product.title}}
{{section.settings.text-box-title}}
{{section.settings.text-box-content}}

{% assign on_sale = false %} {% if product.compare_at_price > product.price %} {% assign on_sale = true %} {% endif %} {% if settings.enable_catalog_mode == false%}
{{ product.price | money }} {% if on_sale %}{{ product.compare_at_price | money }}{% endif %}

{% endif %}
Details
{% endif %}
{% endif %} {% if block.settings.select_product2 !=blank %}
2
{% assign product = all_products[block.settings.select_product2] %} {% if block.settings.select_product2 != blank %}

{% assign product_label_new = false %} {% capture _time %}{{settings.product_new_time | times:86400}}{% endcapture %} {% assign time = _time|plus:0 %} {% assign now = 'now' | date: '%s'|plus:0 %} {% capture _value %}{{product.published_at | date: "%s" | plus : time }}{% endcapture %} {% assign value = _value|plus:0 %} {% if now < value %} {% assign product_label_new = true %} {% endif %} {% assign label_popular = false %} {% if product.tags contains "popular" %} {% assign label_popular = true %} {% endif %} {% assign label_hot = false %} {% if product.tags contains "hot" %} {% assign label_hot = true %} {% endif %} {% assign on_sale = false %} {% if product.compare_at_price > product.price %} {% assign on_sale = true %} {% endif %} {% assign sold_out = true %} {% if product.available %} {% assign sold_out = false %} {% endif %}
{% assign sold_out = true %} {% if product.available %} {% assign sold_out = false %} {% endif %} {% if settings.enable_catalog_mode == false%}
{% if sold_out %} {% else %} {% if product.variants.size > 1 %} Select Option {% else %} Buy Now {% endif %} {% endif %}
{% endif %}
{{ product.title}}{% assign on_sale = false %} {% if product.compare_at_price > product.price %} {% assign on_sale = true %} {% endif %} {% if settings.enable_catalog_mode == false%}
{{ product.price | money }} {% if on_sale %}{{ product.compare_at_price | money }}{% endif %}

{% endif %}
Details
{% endif %}
{% endif %} {% if block.settings.select_product3 !=blank %}
3
{% assign product = all_products[block.settings.select_product3] %} {% if block.settings.select_product3 != blank %}

{% assign product_label_new = false %} {% capture _time %}{{settings.product_new_time | times:86400}}{% endcapture %} {% assign time = _time|plus:0 %} {% assign now = 'now' | date: '%s'|plus:0 %} {% capture _value %}{{product.published_at | date: "%s" | plus : time }}{% endcapture %} {% assign value = _value|plus:0 %} {% if now < value %} {% assign product_label_new = true %} {% endif %} {% assign label_popular = false %} {% if product.tags contains "popular" %} {% assign label_popular = true %} {% endif %} {% assign label_hot = false %} {% if product.tags contains "hot" %} {% assign label_hot = true %} {% endif %} {% assign on_sale = false %} {% if product.compare_at_price > product.price %} {% assign on_sale = true %} {% endif %} {% assign sold_out = true %} {% if product.available %} {% assign sold_out = false %} {% endif %}
{% assign sold_out = true %} {% if product.available %} {% assign sold_out = false %} {% endif %} {% if settings.enable_catalog_mode == false%}
{% if sold_out %} {% else %} {% if product.variants.size > 1 %} Select Option {% else %} Buy Now {% endif %} {% endif %}
{% endif %}
{{ product.title}}
{{ section.settings.text_description }}
{% assign on_sale = false %} {% if product.compare_at_price > product.price %} {% assign on_sale = true %} {% endif %} {% if settings.enable_catalog_mode == false%}
{{ product.price | money }} {% if on_sale %}{{ product.compare_at_price | money }}{% endif %}

{% endif %}
Details
{% endif %}
{% endif %} {% if block.settings.select_product4 !=blank %}
4
{% assign product = all_products[block.settings.select_product4] %} {% if block.settings.select_product4 != blank %}

{% assign product_label_new = false %} {% capture _time %}{{settings.product_new_time | times:86400}}{% endcapture %} {% assign time = _time|plus:0 %} {% assign now = 'now' | date: '%s'|plus:0 %} {% capture _value %}{{product.published_at | date: "%s" | plus : time }}{% endcapture %} {% assign value = _value|plus:0 %} {% if now < value %} {% assign product_label_new = true %} {% endif %} {% assign label_popular = false %} {% if product.tags contains "popular" %} {% assign label_popular = true %} {% endif %} {% assign label_hot = false %} {% if product.tags contains "hot" %} {% assign label_hot = true %} {% endif %} {% assign on_sale = false %} {% if product.compare_at_price > product.price %} {% assign on_sale = true %} {% endif %} {% assign sold_out = true %} {% if product.available %} {% assign sold_out = false %} {% endif %}
{% assign sold_out = true %} {% if product.available %} {% assign sold_out = false %} {% endif %} {% if settings.enable_catalog_mode == false%}
{% if sold_out %} {% else %} {% if product.variants.size > 1 %} Select Option {% else %} Buy Now {% endif %} {% endif %}
{% endif %}
{{ product.title}}
{{ section.settings.text_description }}
{% assign on_sale = false %} {% if product.compare_at_price > product.price %} {% assign on_sale = true %} {% endif %} {% if settings.enable_catalog_mode == false%}
{{ product.price | money }} {% if on_sale %}{{ product.compare_at_price | money }}{% endif %}

{% endif %}
Details
{% endif %}
{% endif %} {% if block.settings.select_product5 !=blank %}
5
{% assign product = all_products[block.settings.select_product5] %} {% if block.settings.select_product5 != blank %}

{% assign product_label_new = false %} {% capture _time %}{{settings.product_new_time | times:86400}}{% endcapture %} {% assign time = _time|plus:0 %} {% assign now = 'now' | date: '%s'|plus:0 %} {% capture _value %}{{product.published_at | date: "%s" | plus : time }}{% endcapture %} {% assign value = _value|plus:0 %} {% if now < value %} {% assign product_label_new = true %} {% endif %} {% assign label_popular = false %} {% if product.tags contains "popular" %} {% assign label_popular = true %} {% endif %} {% assign label_hot = false %} {% if product.tags contains "hot" %} {% assign label_hot = true %} {% endif %} {% assign on_sale = false %} {% if product.compare_at_price > product.price %} {% assign on_sale = true %} {% endif %} {% assign sold_out = true %} {% if product.available %} {% assign sold_out = false %} {% endif %}
{% assign sold_out = true %} {% if product.available %} {% assign sold_out = false %} {% endif %} {% if settings.enable_catalog_mode == false%}
{% if sold_out %} {% else %} {% if product.variants.size > 1 %} Select Option {% else %} Buy Now {% endif %} {% endif %}
{% endif %}
{{ product.title}}
{{ section.settings.text_description }}
{% assign on_sale = false %} {% if product.compare_at_price > product.price %} {% assign on_sale = true %} {% endif %} {% if settings.enable_catalog_mode == false%}
{{ product.price | money }} {% if on_sale %}{{ product.compare_at_price | money }}{% endif %}

{% endif %}
Details
{% endif %}
{% endif %}{%- if paginate.pages > 1 -%}
{%- if paginate.previous-%}
« Previouspage
{%- else -%}
« Previouspage
{%- endif -%} {%- for part in paginate.parts -%} {%- if part.is_link -%}
page{{ part.title }}
{%- else -%} {%- if part.title == paginate.current_page -%}
page{{ part.title }}
{%- else -%}
page{{ part.title }}
{%- endif -%} {%- endif -%} {%- endfor -%} {%- if paginate.next -%}
Next page»
{%- else -%}
Next page»
{%- endif -%}
{%- endif -%} {%- endif -%} {%- endfor -%}