<!--
  ~ Copyright (C) 2024 usbharu
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!DOCTYPE html>
<html lang="en" th:fragment="layout(ogp, content)" xmlns:th="http://www.thymeleaf.org">
<head prefix="og: http://ogp.me/ns#">
    <meta charset="UTF-8">
    <!--/*@thymesVar id="ogp" type="dev.usbharu.hideout.core.interfaces.web.common.OGP"*/-->
    <title th:title="${ogp?.title}">Index</title>
    <meta property="og:url" th:content="${ogp?.url}">
    <meta property="og:title" th:content="${ogp?.title}">
    <meta property="og:description" th:content="${ogp?.description}">
    <th:block th:if="${ogp?.image != null}">
        <meta property="og:image" th:content="${ogp.image}">
    </th:block>
</head>
<body>
<header>
    <a href="/home">Hideout</a><a href="/publish">New Post</a><a href="/users/1"><img height="80px"
                                                                                      src="/users/i/icon.jpg"
                                                                                      width="80px"></a>
</header>
<hr>
<main>
    <div th:replace="${content}"></div>
</main>
<footer>

</footer>
</body>
</html>