{%- if page.title == nil -%} {%- comment -%} # This is a very hacky way to extract the page title from pages that do not have # front-matter yaml, but have a H1 header. We need to take (id-) attributes into # account, so some hacking is needed. Taking the following example: #