<!DOCTYPE html>
<html lang="en" th:replace="~{modules/layouts/layout :: layout(content = ~{::content}, htmlType = 'fcircle')}"
      xmlns:th="http://www.thymeleaf.org">

<th:block th:fragment="content">

    <div class="page" id="body-wrap">

        <!-- 头部导航栏 -->
        <header class="not-top-img" id="page-header">
            <nav th:replace="~{modules/nav :: nav(title = null)}"></nav>
        </header>
        <main class="layout hide-aside" id="content-inner">
            <div id="page">
                <th:div  th:replace="~{macro/author-content :: author-content(background = ${theme.config.fcircle.backgroundImg},
                smallTitle = ${theme.config.fcircle.smallTitle},
                bigTitle = ${theme.config.fcircle.bigTitle},
                detail = ${theme.config.fcircle.detail},
                buttonUrl = ${theme.config.fcircle.buttonUrl},
                buttonTitle = ${theme.config.fcircle.buttonTitle})}" />
                <!--钓鱼-->
                <th:block th:if="${theme.config.fcircle.fcircleRandomFriendsEnable}" >
                    <div  class="title-h2-a">
                        <div class="title-h2-a-left">
                            <h2 style="padding-top:0;margin:.6rem 0 .6rem">🎣 钓鱼</h2><a class="random-post-start"
                                                                                         href="javascript:fetchRandomPost();"><i
                                class="haofont hao-icon-arrow-rotate-right"></i></a>
                        </div>
                        <div th:if="${not #strings.isEmpty(theme.config.link.linksUrl)}" class="title-h2-a-right">
                            <a class="random-post-all" th:href="${theme.config.link.linksUrl}">全部友链</a>
                        </div>
                    </div>
                    <div id="random-post"></div>
                    <script type="text/javascript">
                        var fdataUser = {
                            apiurl: "[(${theme.config.fcircle.apiurl})]",
                            defaultFish: 500,
                            hungryFish: 500,
                        }
                    </script>
                    <script th:src="${assets_link + '/libs/moments/random-friends-post.js'}"></script>

                </th:block>
                <!--鱼塘-->
                <!-- <div id="hexo-circle-of-friends-root"></div>
                <script defer data-pjax src="https://cdn.yzczi.com/anzhiyu-blog-static%401.0.0/friends_vue/index2.js"></script> -->
                <div class="title-h2-a">
                    <div class="title-h2-a-left"><h2 style="padding-top: 0;margin:0.6rem 0 0.6rem;">🐟 鱼塘</h2></div>
                    <div class="title-h2-a-right"><span>以下内容自动生成，未经过审核</span></div>
                </div>
                <div id="hexo-circle-of-friends-root"></div>
                <script>
                    let UserConfig = {
                        // 填写你的api地址
                        private_api_url: "[(${theme.config.fcircle.apiurl})]",
                        // 点击加载更多时，一次最多加载几篇文章，默认10
                        page_turning_number: 12,
                        // 头像加载失败时，默认头像地址
                        error_img: 'https://sdn.geekzu.org/avatar/57d8260dfb55501c37dde588e7c3852c',
                        // 进入页面时第一次的排序规则
                        sort_rule: 'created'
                    }
                </script>
                <link rel="stylesheet" th:href="${assets_link + '/libs/moments/heoMainColor.css'}">
                <script type="text/javascript" th:src="${assets_link + '/libs/moments/app.min.js'}"></script>
                <script type="text/javascript" th:src="${assets_link + '/libs/moments/bundle.js'}"></script>

                <style>
                    /*修复友链朋友圈管理面板显示太大导致无法关闭的bug*/
                    .cf-manage-pannel[data-v-34921c7c] {
                        width: 80% !important;
                        height: 80% !important;
                    }
                </style>

            </div>


        </main>
        <!-- 底部 -->
        <footer th:replace="~{modules/footer :: footer}"></footer>
        <!-- 卡片顶部气泡效果 -->
        <script th:if="${theme.config.other.bubbleEnable}" async data-pjax th:src="${assets_link + '/libs/canvas/bubble.js'}"></script>
    </div>

</th:block>

</html>

