<!doctype html>
<html
  xmlns:th="https://www.thymeleaf.org"
  th:replace="~{layout :: html(head = ~{::head}, content = ~{::content})}"
>
  <th:block th:fragment="head">
    <title th:text="|${singlePage.spec.title} - ${site.title}|"></title>
  </th:block>
  <th:block th:fragment="content">
    <article>
      <h1 th:text="${singlePage.spec.title}"></h1>
      <div th:utext="${singlePage.content.content}"></div>
    </article>

    <div th:if="${haloCommentEnabled}">
      <halo:comment
        group="content.halo.run"
        kind="SinglePage"
        th:attr="name=${singlePage.metadata.name}"
      />
    </div>
  </th:block>
</html>
