{% if page.page_id %} {% assign page_id = page.page_id %} {% else if layout.page_id %} {% assign page_id = layout.page_id %} {% endif %}