Cuteen5x

本文基于Cuteen5.14版本修改

Cuteen5x
本站同款Typecho主题

cuteen/post.php

删除如下内容

                <div id="breadcrumbs" class="d-flex text-xs mx-4 py-4 border-bottom">
                    <div class="item d-flex items-center text-nowrap">
                        <svg class="icon me-1" aria-hidden="true"><use xlink:href="#home"></use></svg>
                        <a href="<?php $this->options->siteUrl(); ?>" title="首页">首页</a>
                    </div>
                    <span class="mx-2">/</span>
                    <?php if (sizeof($this->categories) > 0) : ?>
                        <span class="item">
                            <a href="<?php echo $this->categories[0]['permalink']; ?>"
                               title="<?php echo $this->categories[0]['name']; ?>"><?php echo $this->categories[0]['name']; ?></a>
                        </span>
                        <span class="mx-2">/</span>
                    <?php endif; ?>
                    <span class="item">正文</span>
                </div>
</div>
<span class="mx-2">/</span>

删除如下内容

                        <div class="d-flex pt-4 mt-5 align-items-center border-top">
                            <svg class="icon icon-20 me-1" aria-hidden="true">
                                <use xlink:href="#biaoqian1"></use>
                            </svg>
                            <div class="d-flex flex-wrap align-items-center text-xs space-x-2 space-y-2" id="tag">
                                <?php $this->tags('', true, '<span>无标签</span>'); ?>
                            </div>
                        </div>

删除如下内容

<div class="row m-0">
                            <div class="col-6 post-link-box rounded-start">
                                <a class="prev-card-img serif-font" href="<?= $prev['permalink'] ?>"
                                   style="background-image: url(<?= Context::ImageEchoByCid($prev['cid']) ?>);">
                                    <?php if ($prev): ?>
                                        <span class="line-clamp-2 np-text"><?= $prev['title'] ?></span>
                                    <?php else: ?>
                                        <span>已经没有了</span>
                                    <?php endif; ?>
                                    <div class="text-xs post-link-text">« 上一篇</div>
                                </a>
                            </div>

                            <div class="col-6 post-link-box rounded-end">
                                <a class="next-card-img serif-font" href="<?= $next['permalink'] ?>"
                                   style="background-image: url(<?= Context::ImageEchoByCid($next['cid']) ?>);">
                                    <?php if ($next): ?>
                                        <div class="line-clamp-2 np-text"><?= $next['title'] ?></div>
                                    <?php else: ?>
                                        <div class="np-text">已经没有了</div>
                                    <?php endif; ?>
                                    <div class="text-xs post-link-text">下一篇 »</div>
                                </a>
                            </div>
                        </div>

cuteen/page.php

删除如下内容

                <div id="breadcrumbs" class="d-flex text-xs mx-4 py-4 border-bottom">
                    <div class="item d-flex items-center">
                        <svg class="icon me-1" aria-hidden="true"><use xlink:href="#home"></use></svg>
                        <a href="<?php $this->options->siteUrl(); ?>" title="首页">首页</a>
                    </div>
                    <span class="mx-2">/</span>
                    <span class="item">正文</span>
                </div>

cuteen/include/footer.php

仅供参考

<footer id="footer" class="bg-white p-4 text-center mt-4">
    <p><a style="color:inherit;"><span id = "runtime_span"></span></a>
    <script type = "text/javascript">
    function show_runtime()
    {window.setTimeout("show_runtime()",1000);X=new 
    Date("2/20/2023 00:00:00"); //初始建站时间修改此处
    Y=new Date();T=(Y.getTime()-X.getTime());M=24*60*60*1000;
    a=T/M;A=Math.floor(a);b=(a-A)*24;B=Math.floor(b);c=(b-B)*60;C=Math.floor((b-B)*60);D=Math.floor((c-C)*60);
    runtime_span.innerHTML="已运行"+A+"天"+B+"小时"}show_runtime();
    </script></p>
    <p><a style="color:inherit;" target="_parent" href="https://echs.top/friends" >友情链接</a> | <a style="color:inherit;" target="_blank" href="https://jk.echs.top" >网站监控</a></p>
    <p><a style="color:inherit;" href="https://808yun.cn/aff/SJMXMKFH" target="_blank" >808T防</a> | <a style="color:inherit;" target="_parent" href="https://echs.top/cuteen" >Cuteen5x</a></p>
    <p><img src="https://echs.top/icp.svg" class="small" width="20px" height="20px"/><a style="color:inherit;" href="https://icp.gov.moe/?keyword=20224433" target="_blank" >萌ICP备20224433</a></p>
</footer>

cuteen/include/hero.php

<li>
                <svg class="icon" aria-hidden="true">
                    <use xlink:href="#pinglun1"></use>
                </svg>
                <span><?php $this->commentsNum('%d'); ?>评论</span>
            </li>

将上方内容替换为:

<li>
                <svg class="icon" aria-hidden="true">
                    <use xlink:href="#profile"></use>
                </svg>
                <span><?php $this->author() ?></span>
            </li>

cuteen/include/navbar.php

        <ul class="navbar-nav">
            <li class="navbar-icon" data-bs-toggle="modal" data-bs-target="#searchModal">
                <svg class="icon icon-20" aria-hidden="true">
                    <use xlink:href="#search"></use>
                </svg>
            </li>
            <?php if ($this->options->MusicList || $this->options->MusicListUrl): ?>
                <li id="musicApp" class="navbar-icon position-relative d-none d-md-inline-flex">
                    <svg id="musicSvg" class="icon icon-20" aria-hidden="true">
                        <use xlink:href="#music"></use>
                    </svg>
                    <div id="musicPop"></div>
                </li>
            <?php endif; ?>
            <li class="navbar-icon d-none d-md-inline-flex" onclick="Cuteen.DarkModeToggle();" data-bs-toggle="tooltip"
                data-bs-placement="bottom"
                title="昼夜切换">
                <svg class="icon icon-20 darkMode" aria-hidden="true">
                    <use xlink:href="#moon"></use>
                </svg>
            </li>
        </ul>

将上方内容替换为:

        <ul class="navbar-nav">
            <li class="navbar-icon d-none d-md-inline-flex" data-bs-toggle="modal" data-bs-target="#searchModal">
                <svg class="icon icon-20" aria-hidden="true">
                    <use xlink:href="#search"></use>
                </svg>
            </li>
            <?php if ($this->options->MusicList || $this->options->MusicListUrl): ?>
                <li id="musicApp" class="navbar-icon position-relative">
                    <svg id="musicSvg" class="icon icon-20" aria-hidden="true">
                        <use xlink:href="#music"></use>
                    </svg>
                    <div id="musicPop"></div>
                </li>
            <?php endif; ?>
            <li class="navbar-icon d-none d-md-inline-flex" onclick="Cuteen.DarkModeToggle();" data-bs-toggle="tooltip"
                data-bs-placement="bottom"
                title="昼夜切换">
                <svg class="icon icon-20 darkMode" aria-hidden="true">
                    <use xlink:href="#moon"></use>
                </svg>
            </li>
        </ul>

cuteen/include/tool.php

    <div id="tool" class="d-grid gap-1">
        <?php if (($this->is('post') || $this->is('page')) && $this->fields->catalog) : ?>

将上方内容替换为:

    <div id="tool" class="d-grid gap-1">
        <div data-bs-toggle="modal" data-bs-target="#searchModal" class="right-btn-icon p-2 d-block d-sm-none">
            <svg class="icon icon-20" aria-hidden="true">
                <use xlink:href="#search"></use>
            </svg>
        </div>
        <?php if (($this->is('post') || $this->is('page')) && $this->fields->catalog) : ?>

cuteen/include/top.php

默认显示:阅读日期分类

<li>
                            <svg class="icon" aria-hidden="true">
                                <use xlink:href="#huo"></use>
                            </svg>
                            <span><?= Func::GetViews($CardTOPSel) ?>阅读</span>
                        </li>
                        <li>
                            <svg class="icon" aria-hidden="true">
                                <use xlink:href="#shijian"></use>
                            </svg>
                            <span><?= date("Y年m月d日", $CardTOPSel->date->timeStamp) ?></span>
                        </li>
                        <li>
                            <svg class="icon" aria-hidden="true">
                                <use xlink:href="#biaoqian2"></use>
                            </svg>
                            <span><?= $CardTOPSel->categories[0]['name'] ?></span>
                        </li>
                        <li class="md:flex d-none d-md-flex">
                            <svg class="icon" aria-hidden="true">
                                <use xlink:href="#pinglun1"></use>
                            </svg>
                            <span><?php $CardTOPSel->commentsNum('%d'); ?>评论</span>
                        </li>

文章目录