I am currently trying to learn how to create my own custom theme from scratch and right now having trouble understanding the code of DAWN theme(wordpress free source theme).
/Sections/page.liquid
<div class="rte">
{%- if section.settings.page.content != blank -%}
{{ section.settings.page.content }}
{%- else -%}
<div class='page-placeholder-wrapper placeholder'>
{{ 'page' | placeholder_svg_tag: 'page-placeholder' }}
</div>
{%- endif -%}
</div>
{% schema %}
{
"name": "t:sections.page.name",
"tag": "section",
"class": "spaced-section",
"settings": [
{
"type": "page",
"id": "page",
"label": "t:sections.page.settings.page.label"
}
],
"presets": [
{
"name": "t:sections.page.presets.name"
}
]
}
{% endschema %}
I don't really understand what is "t:sections.page.name" why pick such a complex name? Does it retrieve any data from any files?
where is this page.liquid being used for? It looks like a bridge that connects the theme and all other sections.
My current goal is to figure out how to include all the custom section within a page template. Say if I have 10 sections writen and intended to include within a single template file. Then, I have to repeat the line {% section 'section-name' %} 10 times. And if there is more template file, the situation will just gotten worse. Is there a way to loop through all sections? Or any tutorials that I can refer to would be really helpful!
Thank you reading and answering!