{{ trigger.call("before_page_fields") }} {% set field_markdown = site.enable_markdown ? " data-markdown" : "" %}
{{ "Title" | translate }}
{{ "Body" | translate }} {% if field_markdown %} {{- icon_img("markdown.svg", "Markdown" | translate) -}} {% endif %} {{ page is defined ? page.body | fix(false, true) : "" }}
{{ "Slug" | translate }} {{- icon_img("help.svg", "help" | translate) -}}
{{ "Status" | translate }} {% set option_selected = page is defined ? page.status | selected("listed") : " selected" %} {{ "Public and visible in pages list" | translate }} {% set option_selected = page is defined ? page.status | selected("public") : "" %} {{ "Public" | translate }} {% set option_selected = page is defined ? page.status | selected("teased") : "" %} {{ "Private and visible in pages list" | translate }} {% set option_selected = page is defined ? page.status | selected("private") : "" %} {{ "Private" | translate }}
{{ "Priority in pages list" | translate }} {% set option_selected = page is defined ? page.list_order | selected(0,1,2) : "" %} {{ "High" | translate }} {% set option_selected = page is defined ? page.list_order | selected(3,4,5) : " selected" %} {{ "Medium" | translate }} {% set option_selected = page is defined ? page.list_order | selected(6,7,8) : "" %} {{ "Low" | translate }}
{{ "Parent" | translate }} {{ "[None]" | translate }} {% for item in theme.pages_list(0, page is defined ? page.id : null) %} {% set option_selected = page is defined ? page.parent_id | selected(item.id) : "" %} {% set option_contents = (" " | repeat((item.depth - 1) * 4)) ~ (item.title | striptags | fix) %} {{ option_contents }} {% endfor %}