Loading collection description + custom metafield only on first page of paginated collection

Hello,

I use collection description + a custom metafield containing additional text in my collection pages (example here: Poltrone Design Moderne | Mobil House Arredamenti)

I’m willing to avoid duplicated content and my idea is to avoid loading the description + the custome metafield text in subsequent pages of the collection:

Question is: is there a way to load the Collection description and the additional metafield only on the first page of a paginated collection?

I’m actually using Dawn Theme

Thank you

try to wrap the collection description div with this condition {% if paginate.current_page == 1 %}

Hello,

thank you for your answer. Unfortunately this seems not to be the solution.

I tried to modify the main-collection-banner.liquid this way:


      # 
        {{ 'sections.collection_template.title' | t }}: 
        {{- collection.title | escape -}} {{ shop.name }}
      
      {%- if section.settings.show_collection_description -%}
      {% if paginate.current_page == 1 %}
        {{ collection.description }}

      {%- endif -%}
      {%- endif -%}
    

and this way:


      # 
        {{ 'sections.collection_template.title' | t }}: 
        {{- collection.title | escape -}} {{ shop.name }}
      
      {% if paginate.current_page == 1 %}
      {%- if section.settings.show_collection_description -%}
        {{ collection.description }}

      {%- endif -%}
      {%- endif -%}
    

But in both cases the description disappears from all pages.

I can see product grid with pagination rules is loaded in a different liquid file (main-list-collections.liquid) which seems to be loaded after main-collection-banner.liquid section,

Perhaps when main-collection-banner.liquid is loaded it’s still not possible to know if the loaded is the first page?

Thank you