I can't seem to create an array with all the page titles in my Jekyll site. This is how I'm going about looping through the pages in liquid:
{% for page in site.pages %}
{% assign page_title_array = {{ page_title_array | append: page.title }} %}
{% endfor %}
{{ page_title_array }}
For example, I have the following page titles in my site: Alfa
, Bravo
, Charlie
, Delta
. If I run through the loop, the value in page_title_array
is Bravo
instead of all the page titles.