TerryChan' Blog

文章

标签

喜欢

最新动态

探索知识的 无限可能

less

2330
篇文章
个主题
24/7
更新中

开始探索

发现精彩内容

最新文章

发现最新的思考和分享

2330
篇文章
08月22日
328 字 0 次阅读

"wordpress的文章标题形式由"文章标题+博客标题"改回基本的"文章标题""

2023年08月22日

打算把wordpress的文章标题形式由"文章标题+博客标题"改回基本的"文章标题",不过网络上找到的都存在一个问题就是首页的分页一直显示博客标题而不会是 "博客名+page *" 这种形式,想来势必会造成重复标题,也不知道为什么那么多人还是打着对搜索友好的标题写法来的.以下方式可以实现每页都 "博客名+page* ". <?php if ( is\_category() ) { echo 'Category Archive for "'; single\_cat\_title(); echo '"… </p> <!-- 标签 --> <div class="mb-6"> <div class="flex flex-wrap gap-2"> <a href="/post/tag/3/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 默认 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/27/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 博客 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/83/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> cj <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/84/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> payoneer <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/85/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> paypal <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/86/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> wordpress优化 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> </div> </div> </div> <!-- 底部操作区 --> <div class="flex items-center justify-between pt-6 border-t border-gray-100"> <a href="/post/detail/635/" class="modern-button inline-flex items-center px-6 py-3"> 阅读全文 <i class="fas fa-arrow-right ml-2 group-hover:translate-x-1 transition-transform duration-200"></i> </a> <div class="flex items-center space-x-3"> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-red-100 text-gray-600 hover:text-red-500 transition-all duration-200 flex items-center justify-center" title="收藏"> <i class="far fa-heart"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-600 hover:text-blue-500 transition-all duration-200 flex items-center justify-center" title="分享"> <i class="fas fa-share-alt"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-green-100 text-gray-600 hover:text-green-500 transition-all duration-200 flex items-center justify-center" title="评论"> <i class="far fa-comment"></i> </button> </div> </div> </div> </div> </article> <article class="modern-card hover-lift rounded-2xl mb-8 overflow-hidden group"> <div class="flex flex-col lg:flex-row"> <!-- 文章缩略图区域 --> <div class="lg:w-2/5 relative overflow-hidden"> <div class="h-64 lg:h-full bg-gradient-to-br from-blue-400 via-purple-500 to-pink-500 relative"> <!-- 装饰性图案 --> <div class="absolute inset-0 opacity-20"> <div class="absolute top-4 left-4 w-8 h-8 bg-white rounded-full"></div> <div class="absolute bottom-8 right-8 w-12 h-12 bg-white rounded-full"></div> <div class="absolute top-1/2 left-1/2 w-16 h-16 bg-white rounded-full -translate-x-1/2 -translate-y-1/2"></div> </div> <!-- 文章信息覆盖层 --> <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent flex items-end p-6"> <div class="text-white"> <div class="flex items-center space-x-3 mb-2"> <span class="px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-xs font-medium"> 08月22日 </span> </div> <div class="flex items-center space-x-4 text-sm"> <span><i class="far fa-clock mr-1"></i>36 字</span> <span><i class="far fa-eye mr-1"></i>0 次阅读</span> </div> </div> </div> </div> </div> <!-- 文章内容区域 --> <div class="lg:w-3/5 p-8 flex flex-col justify-between"> <div> <!-- 标题 --> <a href="/post/detail/636/" class="group"> <h3 class="text-2xl font-bold text-gray-800 mb-4 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-blue-600 group-hover:to-purple-600 transition-all duration-300"> "nginx着实不错" </h3> </a> <!-- 元信息 --> <div class="flex items-center text-sm text-gray-600 mb-6 space-x-6"> <span class="flex items-center"> <i class="far fa-calendar-alt mr-2 text-blue-500"></i> 2023年08月22日 </span> </div> <!-- 摘要 --> <p class="text-gray-700 mb-6 leading-relaxed text-lg"> nginx定制很方便也很强大,占用资源也很不错赞一个 </p> <!-- 标签 --> <div class="mb-6"> <div class="flex flex-wrap gap-2"> <a href="/post/tag/3/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 默认 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> </div> </div> </div> <!-- 底部操作区 --> <div class="flex items-center justify-between pt-6 border-t border-gray-100"> <a href="/post/detail/636/" class="modern-button inline-flex items-center px-6 py-3"> 阅读全文 <i class="fas fa-arrow-right ml-2 group-hover:translate-x-1 transition-transform duration-200"></i> </a> <div class="flex items-center space-x-3"> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-red-100 text-gray-600 hover:text-red-500 transition-all duration-200 flex items-center justify-center" title="收藏"> <i class="far fa-heart"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-600 hover:text-blue-500 transition-all duration-200 flex items-center justify-center" title="分享"> <i class="fas fa-share-alt"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-green-100 text-gray-600 hover:text-green-500 transition-all duration-200 flex items-center justify-center" title="评论"> <i class="far fa-comment"></i> </button> </div> </div> </div> </div> </article> <article class="modern-card hover-lift rounded-2xl mb-8 overflow-hidden group"> <div class="flex flex-col lg:flex-row"> <!-- 文章缩略图区域 --> <div class="lg:w-2/5 relative overflow-hidden"> <div class="h-64 lg:h-full bg-gradient-to-br from-blue-400 via-purple-500 to-pink-500 relative"> <!-- 装饰性图案 --> <div class="absolute inset-0 opacity-20"> <div class="absolute top-4 left-4 w-8 h-8 bg-white rounded-full"></div> <div class="absolute bottom-8 right-8 w-12 h-12 bg-white rounded-full"></div> <div class="absolute top-1/2 left-1/2 w-16 h-16 bg-white rounded-full -translate-x-1/2 -translate-y-1/2"></div> </div> <!-- 文章信息覆盖层 --> <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent flex items-end p-6"> <div class="text-white"> <div class="flex items-center space-x-3 mb-2"> <span class="px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-xs font-medium"> 08月22日 </span> </div> <div class="flex items-center space-x-4 text-sm"> <span><i class="far fa-clock mr-1"></i>906 字</span> <span><i class="far fa-eye mr-1"></i>0 次阅读</span> </div> </div> </div> </div> </div> <!-- 文章内容区域 --> <div class="lg:w-3/5 p-8 flex flex-col justify-between"> <div> <!-- 标题 --> <a href="/post/detail/637/" class="group"> <h3 class="text-2xl font-bold text-gray-800 mb-4 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-blue-600 group-hover:to-purple-600 transition-all duration-300"> "whos.amung.us免费实时统计您的网站或博客" </h3> </a> <!-- 元信息 --> <div class="flex items-center text-sm text-gray-600 mb-6 space-x-6"> <span class="flex items-center"> <i class="far fa-calendar-alt mr-2 text-blue-500"></i> 2023年08月22日 </span> </div> <!-- 摘要 --> <p class="text-gray-700 mb-6 leading-relaxed text-lg"> 登录到<http://whos.amung.us/>就能看到他们自己对提供服务的描述 如果你有一个网站或博客,你可能看到谁访问你的兴趣。你要找出您的网站上有多少访问者?找出他们活在世上。检查时,大多数的人在网上。这一切,更多是可能的. 只要点击导航上的widget就可以获得一段统计代码 ![](http://lh4.ggpht.com/-F3zTkpC_I-E/UD4UgERtNAI/AAAAAAAAszE/IfBnaqJzC_c/zrclip_003p6e28fb68.png?imgmax=800) 好多种,其实都是大同小异,个人比较喜欢小地图:… </p> <!-- 标签 --> <div class="mb-6"> <div class="flex flex-wrap gap-2"> <a href="/post/tag/3/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 默认 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> </div> </div> </div> <!-- 底部操作区 --> <div class="flex items-center justify-between pt-6 border-t border-gray-100"> <a href="/post/detail/637/" class="modern-button inline-flex items-center px-6 py-3"> 阅读全文 <i class="fas fa-arrow-right ml-2 group-hover:translate-x-1 transition-transform duration-200"></i> </a> <div class="flex items-center space-x-3"> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-red-100 text-gray-600 hover:text-red-500 transition-all duration-200 flex items-center justify-center" title="收藏"> <i class="far fa-heart"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-600 hover:text-blue-500 transition-all duration-200 flex items-center justify-center" title="分享"> <i class="fas fa-share-alt"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-green-100 text-gray-600 hover:text-green-500 transition-all duration-200 flex items-center justify-center" title="评论"> <i class="far fa-comment"></i> </button> </div> </div> </div> </div> </article> <article class="modern-card hover-lift rounded-2xl mb-8 overflow-hidden group"> <div class="flex flex-col lg:flex-row"> <!-- 文章缩略图区域 --> <div class="lg:w-2/5 relative overflow-hidden"> <div class="h-64 lg:h-full bg-gradient-to-br from-blue-400 via-purple-500 to-pink-500 relative"> <!-- 装饰性图案 --> <div class="absolute inset-0 opacity-20"> <div class="absolute top-4 left-4 w-8 h-8 bg-white rounded-full"></div> <div class="absolute bottom-8 right-8 w-12 h-12 bg-white rounded-full"></div> <div class="absolute top-1/2 left-1/2 w-16 h-16 bg-white rounded-full -translate-x-1/2 -translate-y-1/2"></div> </div> <!-- 文章信息覆盖层 --> <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent flex items-end p-6"> <div class="text-white"> <div class="flex items-center space-x-3 mb-2"> <span class="px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-xs font-medium"> 08月22日 </span> </div> <div class="flex items-center space-x-4 text-sm"> <span><i class="far fa-clock mr-1"></i>376 字</span> <span><i class="far fa-eye mr-1"></i>0 次阅读</span> </div> </div> </div> </div> </div> <!-- 文章内容区域 --> <div class="lg:w-3/5 p-8 flex flex-col justify-between"> <div> <!-- 标题 --> <a href="/post/detail/638/" class="group"> <h3 class="text-2xl font-bold text-gray-800 mb-4 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-blue-600 group-hover:to-purple-600 transition-all duration-300"> Performer启用自回归 unable to import cuda code for auto-regressi… </h3> </a> <!-- 元信息 --> <div class="flex items-center text-sm text-gray-600 mb-6 space-x-6"> <span class="flex items-center"> <i class="far fa-calendar-alt mr-2 text-blue-500"></i> 2023年08月22日 </span> </div> <!-- 摘要 --> <p class="text-gray-700 mb-6 leading-relaxed text-lg"> <https://github.com/lucidrains/performer-pytorch> 无法为 #Performer 启用自回归 出现如下错误 `unable to import cuda code for auto-regressive Performer. will default to the memory inefficient non-cuda version` 安装pytorch-fast-transformers即可解决,不过速度有点慢,需要点耐心 ``` <p>pip install pytorch-fas… </p> <!-- 标签 --> <div class="mb-6"> <div class="flex flex-wrap gap-2"> <a href="/post/tag/3/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 默认 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/17/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> default <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/87/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> performer <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> </div> </div> </div> <!-- 底部操作区 --> <div class="flex items-center justify-between pt-6 border-t border-gray-100"> <a href="/post/detail/638/" class="modern-button inline-flex items-center px-6 py-3"> 阅读全文 <i class="fas fa-arrow-right ml-2 group-hover:translate-x-1 transition-transform duration-200"></i> </a> <div class="flex items-center space-x-3"> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-red-100 text-gray-600 hover:text-red-500 transition-all duration-200 flex items-center justify-center" title="收藏"> <i class="far fa-heart"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-600 hover:text-blue-500 transition-all duration-200 flex items-center justify-center" title="分享"> <i class="fas fa-share-alt"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-green-100 text-gray-600 hover:text-green-500 transition-all duration-200 flex items-center justify-center" title="评论"> <i class="far fa-comment"></i> </button> </div> </div> </div> </div> </article> <article class="modern-card hover-lift rounded-2xl mb-8 overflow-hidden group"> <div class="flex flex-col lg:flex-row"> <!-- 文章缩略图区域 --> <div class="lg:w-2/5 relative overflow-hidden"> <div class="h-64 lg:h-full bg-gradient-to-br from-blue-400 via-purple-500 to-pink-500 relative"> <!-- 装饰性图案 --> <div class="absolute inset-0 opacity-20"> <div class="absolute top-4 left-4 w-8 h-8 bg-white rounded-full"></div> <div class="absolute bottom-8 right-8 w-12 h-12 bg-white rounded-full"></div> <div class="absolute top-1/2 left-1/2 w-16 h-16 bg-white rounded-full -translate-x-1/2 -translate-y-1/2"></div> </div> <!-- 文章信息覆盖层 --> <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent flex items-end p-6"> <div class="text-white"> <div class="flex items-center space-x-3 mb-2"> <span class="px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-xs font-medium"> 08月22日 </span> </div> <div class="flex items-center space-x-4 text-sm"> <span><i class="far fa-clock mr-1"></i>349 字</span> <span><i class="far fa-eye mr-1"></i>0 次阅读</span> </div> </div> </div> </div> </div> <!-- 文章内容区域 --> <div class="lg:w-3/5 p-8 flex flex-col justify-between"> <div> <!-- 标题 --> <a href="/post/detail/639/" class="group"> <h3 class="text-2xl font-bold text-gray-800 mb-4 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-blue-600 group-hover:to-purple-600 transition-all duration-300"> "Ubuntu安装Pidgin QQ 协议插件" </h3> </a> <!-- 元信息 --> <div class="flex items-center text-sm text-gray-600 mb-6 space-x-6"> <span class="flex items-center"> <i class="far fa-calendar-alt mr-2 text-blue-500"></i> 2023年08月22日 </span> </div> <!-- 摘要 --> <p class="text-gray-700 mb-6 leading-relaxed text-lg"> 下面是 PPA 的安装方法 sudo add-apt-repository ppa:lainme/libqq sudo apt-get update sudo apt-get install libpurple0 libqq-pidgin 另外把下面的协议版本选择2012 [![](http://1.bp.blogspot.com/-9HN88N2HwDc/UIGBbBVC1zI/AAAAAAAAtFQ/g2qkxSuxqbM/s640/1350664531569.png)](http://1.bp.blogspo… </p> <!-- 标签 --> <div class="mb-6"> <div class="flex flex-wrap gap-2"> <a href="/post/tag/3/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 默认 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/88/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> pidgin,qq表情,linux,ubuntu <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/89/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> ubuntu,pidgin,qq <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/90/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 协议插件 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> </div> </div> </div> <!-- 底部操作区 --> <div class="flex items-center justify-between pt-6 border-t border-gray-100"> <a href="/post/detail/639/" class="modern-button inline-flex items-center px-6 py-3"> 阅读全文 <i class="fas fa-arrow-right ml-2 group-hover:translate-x-1 transition-transform duration-200"></i> </a> <div class="flex items-center space-x-3"> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-red-100 text-gray-600 hover:text-red-500 transition-all duration-200 flex items-center justify-center" title="收藏"> <i class="far fa-heart"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-600 hover:text-blue-500 transition-all duration-200 flex items-center justify-center" title="分享"> <i class="fas fa-share-alt"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-green-100 text-gray-600 hover:text-green-500 transition-all duration-200 flex items-center justify-center" title="评论"> <i class="far fa-comment"></i> </button> </div> </div> </div> </div> </article> <article class="modern-card hover-lift rounded-2xl mb-8 overflow-hidden group"> <div class="flex flex-col lg:flex-row"> <!-- 文章缩略图区域 --> <div class="lg:w-2/5 relative overflow-hidden"> <div class="h-64 lg:h-full bg-gradient-to-br from-blue-400 via-purple-500 to-pink-500 relative"> <!-- 装饰性图案 --> <div class="absolute inset-0 opacity-20"> <div class="absolute top-4 left-4 w-8 h-8 bg-white rounded-full"></div> <div class="absolute bottom-8 right-8 w-12 h-12 bg-white rounded-full"></div> <div class="absolute top-1/2 left-1/2 w-16 h-16 bg-white rounded-full -translate-x-1/2 -translate-y-1/2"></div> </div> <!-- 文章信息覆盖层 --> <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent flex items-end p-6"> <div class="text-white"> <div class="flex items-center space-x-3 mb-2"> <span class="px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-xs font-medium"> 08月22日 </span> </div> <div class="flex items-center space-x-4 text-sm"> <span><i class="far fa-clock mr-1"></i>199 字</span> <span><i class="far fa-eye mr-1"></i>0 次阅读</span> </div> </div> </div> </div> </div> <!-- 文章内容区域 --> <div class="lg:w-3/5 p-8 flex flex-col justify-between"> <div> <!-- 标题 --> <a href="/post/detail/640/" class="group"> <h3 class="text-2xl font-bold text-gray-800 mb-4 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-blue-600 group-hover:to-purple-600 transition-all duration-300"> "如何获取elasticsearch中所有索引的列表?" </h3> </a> <!-- 元信息 --> <div class="flex items-center text-sm text-gray-600 mb-6 space-x-6"> <span class="flex items-center"> <i class="far fa-calendar-alt mr-2 text-blue-500"></i> 2023年08月22日 </span> </div> <!-- 摘要 --> <p class="text-gray-700 mb-6 leading-relaxed text-lg"> Pyhon中遍历elasticsearch索引表 ``` <h1>使用通配符。适用于elasticsearch。</h1> from elasticsearch import Elasticsearch es = Elasticsearch('127.0.0.1:9200') for index in es.indices.get('*'): print(index) ``` </p> <!-- 标签 --> <div class="mb-6"> <div class="flex flex-wrap gap-2"> <a href="/post/tag/3/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 默认 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> </div> </div> </div> <!-- 底部操作区 --> <div class="flex items-center justify-between pt-6 border-t border-gray-100"> <a href="/post/detail/640/" class="modern-button inline-flex items-center px-6 py-3"> 阅读全文 <i class="fas fa-arrow-right ml-2 group-hover:translate-x-1 transition-transform duration-200"></i> </a> <div class="flex items-center space-x-3"> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-red-100 text-gray-600 hover:text-red-500 transition-all duration-200 flex items-center justify-center" title="收藏"> <i class="far fa-heart"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-600 hover:text-blue-500 transition-all duration-200 flex items-center justify-center" title="分享"> <i class="fas fa-share-alt"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-green-100 text-gray-600 hover:text-green-500 transition-all duration-200 flex items-center justify-center" title="评论"> <i class="far fa-comment"></i> </button> </div> </div> </div> </div> </article> <article class="modern-card hover-lift rounded-2xl mb-8 overflow-hidden group"> <div class="flex flex-col lg:flex-row"> <!-- 文章缩略图区域 --> <div class="lg:w-2/5 relative overflow-hidden"> <div class="h-64 lg:h-full bg-gradient-to-br from-blue-400 via-purple-500 to-pink-500 relative"> <!-- 装饰性图案 --> <div class="absolute inset-0 opacity-20"> <div class="absolute top-4 left-4 w-8 h-8 bg-white rounded-full"></div> <div class="absolute bottom-8 right-8 w-12 h-12 bg-white rounded-full"></div> <div class="absolute top-1/2 left-1/2 w-16 h-16 bg-white rounded-full -translate-x-1/2 -translate-y-1/2"></div> </div> <!-- 文章信息覆盖层 --> <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent flex items-end p-6"> <div class="text-white"> <div class="flex items-center space-x-3 mb-2"> <span class="px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-xs font-medium"> 08月22日 </span> </div> <div class="flex items-center space-x-4 text-sm"> <span><i class="far fa-clock mr-1"></i>195 字</span> <span><i class="far fa-eye mr-1"></i>0 次阅读</span> </div> </div> </div> </div> </div> <!-- 文章内容区域 --> <div class="lg:w-3/5 p-8 flex flex-col justify-between"> <div> <!-- 标题 --> <a href="/post/detail/641/" class="group"> <h3 class="text-2xl font-bold text-gray-800 mb-4 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-blue-600 group-hover:to-purple-600 transition-all duration-300"> "尝试使用albert评估标题质量" </h3> </a> <!-- 元信息 --> <div class="flex items-center text-sm text-gray-600 mb-6 space-x-6"> <span class="flex items-center"> <i class="far fa-calendar-alt mr-2 text-blue-500"></i> 2023年08月22日 </span> </div> <!-- 摘要 --> <p class="text-gray-700 mb-6 leading-relaxed text-lg"> bert很强大但是训练成本有点过大,所以尝试使用albert\_tiny训练,虽然效果会降低不少但是预测速度足够快.而且机器要求也小了很多. 思路 选择视频标题和播放量作为训练资料,毕竟视频标题党的情况比较多.想要直接预测流量估计不是很容易但是预测个区间总共可以吧.  爬取了20万条数据作为语料,跑了一千多次后仅有55%的正确率. 希望加大数据量和迭代能够有更好的效果. </p> <!-- 标签 --> <div class="mb-6"> <div class="flex flex-wrap gap-2"> <a href="/post/tag/3/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 默认 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/65/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 人工智能 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/66/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 自然语言 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/91/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> albert <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> </div> </div> </div> <!-- 底部操作区 --> <div class="flex items-center justify-between pt-6 border-t border-gray-100"> <a href="/post/detail/641/" class="modern-button inline-flex items-center px-6 py-3"> 阅读全文 <i class="fas fa-arrow-right ml-2 group-hover:translate-x-1 transition-transform duration-200"></i> </a> <div class="flex items-center space-x-3"> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-red-100 text-gray-600 hover:text-red-500 transition-all duration-200 flex items-center justify-center" title="收藏"> <i class="far fa-heart"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-600 hover:text-blue-500 transition-all duration-200 flex items-center justify-center" title="分享"> <i class="fas fa-share-alt"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-green-100 text-gray-600 hover:text-green-500 transition-all duration-200 flex items-center justify-center" title="评论"> <i class="far fa-comment"></i> </button> </div> </div> </div> </div> </article> <article class="modern-card hover-lift rounded-2xl mb-8 overflow-hidden group"> <div class="flex flex-col lg:flex-row"> <!-- 文章缩略图区域 --> <div class="lg:w-2/5 relative overflow-hidden"> <div class="h-64 lg:h-full bg-gradient-to-br from-blue-400 via-purple-500 to-pink-500 relative"> <!-- 装饰性图案 --> <div class="absolute inset-0 opacity-20"> <div class="absolute top-4 left-4 w-8 h-8 bg-white rounded-full"></div> <div class="absolute bottom-8 right-8 w-12 h-12 bg-white rounded-full"></div> <div class="absolute top-1/2 left-1/2 w-16 h-16 bg-white rounded-full -translate-x-1/2 -translate-y-1/2"></div> </div> <!-- 文章信息覆盖层 --> <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent flex items-end p-6"> <div class="text-white"> <div class="flex items-center space-x-3 mb-2"> <span class="px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-xs font-medium"> 08月22日 </span> </div> <div class="flex items-center space-x-4 text-sm"> <span><i class="far fa-clock mr-1"></i>762 字</span> <span><i class="far fa-eye mr-1"></i>0 次阅读</span> </div> </div> </div> </div> </div> <!-- 文章内容区域 --> <div class="lg:w-3/5 p-8 flex flex-col justify-between"> <div> <!-- 标题 --> <a href="/post/detail/642/" class="group"> <h3 class="text-2xl font-bold text-gray-800 mb-4 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-blue-600 group-hover:to-purple-600 transition-all duration-300"> "过果断持有美元,坐等rmb贬值" </h3> </a> <!-- 元信息 --> <div class="flex items-center text-sm text-gray-600 mb-6 space-x-6"> <span class="flex items-center"> <i class="far fa-calendar-alt mr-2 text-blue-500"></i> 2023年08月22日 </span> </div> <!-- 摘要 --> <p class="text-gray-700 mb-6 leading-relaxed text-lg"> | | | | --- | --- | | | Terry Chan与您分享了David Day的信息。过果断持有美元,坐等rmb贬值 | | | | | --- | --- | | | David Day2012年,中国继续"巨量印钞",新增M2达12.26万亿元,在全球新增M2中占比仍高达46.7%。值得注意的是,尽管全球2012年新增货币量再度创新高,但事实上,多数国家在新增货币供应量上比2011年有所控制。21世纪网数据部统计,美国2011年新增8713亿美元M2,2012年新增M2下滑12.17%至7653亿美元;日本… </p> <!-- 标签 --> <div class="mb-6"> <div class="flex flex-wrap gap-2"> <a href="/post/tag/3/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 默认 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> </div> </div> </div> <!-- 底部操作区 --> <div class="flex items-center justify-between pt-6 border-t border-gray-100"> <a href="/post/detail/642/" class="modern-button inline-flex items-center px-6 py-3"> 阅读全文 <i class="fas fa-arrow-right ml-2 group-hover:translate-x-1 transition-transform duration-200"></i> </a> <div class="flex items-center space-x-3"> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-red-100 text-gray-600 hover:text-red-500 transition-all duration-200 flex items-center justify-center" title="收藏"> <i class="far fa-heart"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-600 hover:text-blue-500 transition-all duration-200 flex items-center justify-center" title="分享"> <i class="fas fa-share-alt"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-green-100 text-gray-600 hover:text-green-500 transition-all duration-200 flex items-center justify-center" title="评论"> <i class="far fa-comment"></i> </button> </div> </div> </div> </div> </article> <article class="modern-card hover-lift rounded-2xl mb-8 overflow-hidden group"> <div class="flex flex-col lg:flex-row"> <!-- 文章缩略图区域 --> <div class="lg:w-2/5 relative overflow-hidden"> <div class="h-64 lg:h-full bg-gradient-to-br from-blue-400 via-purple-500 to-pink-500 relative"> <!-- 装饰性图案 --> <div class="absolute inset-0 opacity-20"> <div class="absolute top-4 left-4 w-8 h-8 bg-white rounded-full"></div> <div class="absolute bottom-8 right-8 w-12 h-12 bg-white rounded-full"></div> <div class="absolute top-1/2 left-1/2 w-16 h-16 bg-white rounded-full -translate-x-1/2 -translate-y-1/2"></div> </div> <!-- 文章信息覆盖层 --> <div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent flex items-end p-6"> <div class="text-white"> <div class="flex items-center space-x-3 mb-2"> <span class="px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-xs font-medium"> 08月22日 </span> </div> <div class="flex items-center space-x-4 text-sm"> <span><i class="far fa-clock mr-1"></i>26 字</span> <span><i class="far fa-eye mr-1"></i>0 次阅读</span> </div> </div> </div> </div> </div> <!-- 文章内容区域 --> <div class="lg:w-3/5 p-8 flex flex-col justify-between"> <div> <!-- 标题 --> <a href="/post/detail/643/" class="group"> <h3 class="text-2xl font-bold text-gray-800 mb-4 group-hover:text-transparent group-hover:bg-clip-text group-hover:bg-gradient-to-r group-hover:from-blue-600 group-hover:to-purple-600 transition-all duration-300"> crf前是否需要softmax? </h3> </a> <!-- 元信息 --> <div class="flex items-center text-sm text-gray-600 mb-6 space-x-6"> <span class="flex items-center"> <i class="far fa-calendar-alt mr-2 text-blue-500"></i> 2023年08月22日 </span> </div> <!-- 摘要 --> <p class="text-gray-700 mb-6 leading-relaxed text-lg"> crf前是否需要softmax? </p> <!-- 标签 --> <div class="mb-6"> <div class="flex flex-wrap gap-2"> <a href="/post/tag/3/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> 默认 <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> <a href="/post/tag/92/" class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors"> <i class=" mr-1"></i> crf <span class="ml-1 bg-blue-500 text-xs px-1.5 py-0.5 rounded-full"></span> </a> </div> </div> </div> <!-- 底部操作区 --> <div class="flex items-center justify-between pt-6 border-t border-gray-100"> <a href="/post/detail/643/" class="modern-button inline-flex items-center px-6 py-3"> 阅读全文 <i class="fas fa-arrow-right ml-2 group-hover:translate-x-1 transition-transform duration-200"></i> </a> <div class="flex items-center space-x-3"> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-red-100 text-gray-600 hover:text-red-500 transition-all duration-200 flex items-center justify-center" title="收藏"> <i class="far fa-heart"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-600 hover:text-blue-500 transition-all duration-200 flex items-center justify-center" title="分享"> <i class="fas fa-share-alt"></i> </button> <button class="w-10 h-10 rounded-full bg-gray-100 hover:bg-green-100 text-gray-600 hover:text-green-500 transition-all duration-200 flex items-center justify-center" title="评论"> <i class="far fa-comment"></i> </button> </div> </div> </div> </div> </article> <!-- 快速导航区域 --> <div class="w-full bg-gradient-to-r from-gray-50 to-gray-100 rounded-lg p-6 mt-8"> <h3 class="text-lg font-semibold text-gray-800 mb-4">快速导航</h3> <div class="grid grid-cols-2 md:grid-cols-4 gap-4"> <a href="#" class="flex flex-col items-center p-4 bg-white rounded-lg hover:shadow-md transition-all duration-200"> <i class="fas fa-archive text-2xl text-blue-500 mb-2"></i> <span class="text-sm text-gray-700">文章归档</span> </a> <a href="#" class="flex flex-col items-center p-4 bg-white rounded-lg hover:shadow-md transition-all duration-200"> <i class="fas fa-tags text-2xl text-green-500 mb-2"></i> <span class="text-sm text-gray-700">标签云</span> </a> <a href="#" class="flex flex-col items-center p-4 bg-white rounded-lg hover:shadow-md transition-all duration-200"> <i class="fas fa-search text-2xl text-purple-500 mb-2"></i> <span class="text-sm text-gray-700">搜索文章</span> </a> <a href="#" class="flex flex-col items-center p-4 bg-white rounded-lg hover:shadow-md transition-all duration-200"> <i class="fas fa-info-circle text-2xl text-orange-500 mb-2"></i> <span class="text-sm text-gray-700">关于我</span> </a> </div> </div> <div class="pagination flex items-center py-8"> <a href="?page=64" class="h-10 w-10 font-semibold text-gray-800 hover:text-gray-900 text-sm flex items-center justify-center ml-3"><i class="fas fa-arrow-left ml-2"></i>Previous</a> <a href="?page=66" class="h-10 w-10 font-semibold text-gray-800 hover:text-gray-900 text-sm flex items-center justify-center ml-3">Next <i class="fas fa-arrow-right ml-2"></i></a> </div> </section> <aside class="w-full md:w-1/3 flex flex-col items-center px-3"> <!-- sidebar_section --> <!-- 最新更新内容 --> <div class="w-full bg-white shadow-lg rounded-xl my-4 overflow-hidden"> <div class="bg-gradient-to-r from-blue-500 to-purple-600 text-white p-4"> <h3 class="text-lg font-bold flex items-center"> <i class="fas fa-clock mr-2"></i> 最新更新 </h3> </div> <div class="p-4"> <div class="space-y-3"> <div class="group"> <div class="flex items-start space-x-3 p-3 rounded-lg hover:bg-gray-50 transition-colors duration-200"> <div class="flex-shrink-0"> <div class="w-8 h-8 bg-gradient-to-br from-blue-400 to-purple-500 rounded-lg flex items-center justify-center text-white text-sm font-bold"> G </div> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-gray-800 group-hover:text-blue-600 transition-colors duration-200 truncate"> <a href="/post/detail/2344/" class="hover:text-blue-600"> GLM 是真敢删啊?!说好的 P0 安全规范呢? </a> </h4> <p class="text-xs text-gray-500 mt-1 flex items-center"> <i class="far fa-calendar-alt mr-1"></i> 01月10日 14:20 </p> </div> </div> </div> <div class="group"> <div class="flex items-start space-x-3 p-3 rounded-lg hover:bg-gray-50 transition-colors duration-200"> <div class="flex-shrink-0"> <div class="w-8 h-8 bg-gradient-to-br from-blue-400 to-purple-500 rounded-lg flex items-center justify-center text-white text-sm font-bold"> 如 </div> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-gray-800 group-hover:text-blue-600 transition-colors duration-200 truncate"> <a href="/post/detail/2343/" class="hover:text-blue-600"> 如果要投票一个最弱智的ai模型一定是千问 </a> </h4> <p class="text-xs text-gray-500 mt-1 flex items-center"> <i class="far fa-calendar-alt mr-1"></i> 12月26日 12:26 </p> </div> </div> </div> <div class="group"> <div class="flex items-start space-x-3 p-3 rounded-lg hover:bg-gray-50 transition-colors duration-200"> <div class="flex-shrink-0"> <div class="w-8 h-8 bg-gradient-to-br from-blue-400 to-purple-500 rounded-lg flex items-center justify-center text-white text-sm font-bold"> 告 </div> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-gray-800 group-hover:text-blue-600 transition-colors duration-200 truncate"> <a href="/post/detail/2342/" class="hover:text-blue-600"> 告别手动拼接:PromptForge 如何重新定义你的 AI 工作流 </a> </h4> <p class="text-xs text-gray-500 mt-1 flex items-center"> <i class="far fa-calendar-alt mr-1"></i> 12月24日 08:47 </p> </div> </div> </div> <div class="group"> <div class="flex items-start space-x-3 p-3 rounded-lg hover:bg-gray-50 transition-colors duration-200"> <div class="flex-shrink-0"> <div class="w-8 h-8 bg-gradient-to-br from-blue-400 to-purple-500 rounded-lg flex items-center justify-center text-white text-sm font-bold"> P </div> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-gray-800 group-hover:text-blue-600 transition-colors duration-200 truncate"> <a href="/post/detail/2341/" class="hover:text-blue-600"> Privacy Policy for TerryVoiceRead Chrome Extension </a> </h4> <p class="text-xs text-gray-500 mt-1 flex items-center"> <i class="far fa-calendar-alt mr-1"></i> 10月21日 16:46 </p> </div> </div> </div> <div class="group"> <div class="flex items-start space-x-3 p-3 rounded-lg hover:bg-gray-50 transition-colors duration-200"> <div class="flex-shrink-0"> <div class="w-8 h-8 bg-gradient-to-br from-blue-400 to-purple-500 rounded-lg flex items-center justify-center text-white text-sm font-bold"> 告 </div> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-gray-800 group-hover:text-blue-600 transition-colors duration-200 truncate"> <a href="/post/detail/2340/" class="hover:text-blue-600"> 告别龟速!NAS迅雷内测体验,速度起飞,附邀请码! </a> </h4> <p class="text-xs text-gray-500 mt-1 flex items-center"> <i class="far fa-calendar-alt mr-1"></i> 09月22日 12:11 </p> </div> </div> </div> </div> <div class="mt-4 pt-3 border-t border-gray-200"> <a href="/post/" class="text-sm text-blue-600 hover:text-blue-800 font-medium flex items-center justify-center transition-colors duration-200"> 查看更多文章 <i class="fas fa-arrow-right ml-1"></i> </a> </div> </div> </div> <!-- 热门标签 - 多行弹幕效果 --> <div class="w-full bg-white shadow-lg rounded-xl my-4 overflow-hidden"> <div class="bg-gradient-to-r from-green-500 to-teal-600 text-white p-4"> <h3 class="text-lg font-bold flex items-center"> <i class="fas fa-cloud mr-2"></i> 标签云弹幕 </h3> </div> <div class="p-4 relative overflow-hidden" style="height: 180px;"> <!-- 多行弹幕容器 --> <div class="tag-danmaku-container relative w-full h-full"> <!-- 第一行弹幕 --> <div class="absolute top-0 left-0 right-0 h-8 overflow-hidden"> <div class="flex danmaku-row-1 whitespace-nowrap" style="display: flex; min-width: max-content;"> <a href="/post/tag/3/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-red-400 to-red-600 text-white "> <i class="fas fa-tag mr-1 text-xs"></i> 默认 </a> <a href="/post/tag/15/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-red-400 to-red-600 text-white "> <i class="fas fa-tag mr-1 text-xs"></i> pandas </a> <a href="/post/tag/5/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-red-400 to-red-600 text-white "> <i class="fas fa-tag mr-1 text-xs"></i> google </a> <a href="/post/tag/13/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-red-400 to-red-600 text-white "> <i class="fas fa-tag mr-1 text-xs"></i> python </a> <!-- 复制一份实现无缝循环 --> <a href="/post/tag/3/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-red-400 to-red-600 text-white "> <i class="fas fa-tag mr-1 text-xs"></i> 默认 </a> <a href="/post/tag/15/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-red-400 to-red-600 text-white "> <i class="fas fa-tag mr-1 text-xs"></i> pandas </a> <a href="/post/tag/5/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-red-400 to-red-600 text-white "> <i class="fas fa-tag mr-1 text-xs"></i> google </a> <a href="/post/tag/13/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-red-400 to-red-600 text-white "> <i class="fas fa-tag mr-1 text-xs"></i> python </a> </div> </div> <!-- 第二行弹幕(反向) --> <div class="absolute top-10 left-0 right-0 h-8 overflow-hidden"> <div class="flex danmaku-row-2 whitespace-nowrap" style="display: flex; min-width: max-content;"> <a href="/post/tag/494/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-purple-400 to-purple-600 text-white "> <i class="fas fa-hashtag mr-1 text-xs"></i> programming </a> <a href="/post/tag/17/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-purple-400 to-purple-600 text-white "> <i class="fas fa-hashtag mr-1 text-xs"></i> default </a> <a href="/post/tag/7/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-purple-400 to-purple-600 text-white "> <i class="fas fa-hashtag mr-1 text-xs"></i> plus </a> <a href="/post/tag/160/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-purple-400 to-purple-600 text-white "> <i class="fas fa-hashtag mr-1 text-xs"></i> docker </a> <!-- 复制一份实现无缝循环 --> <a href="/post/tag/494/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-purple-400 to-purple-600 text-white "> <i class="fas fa-hashtag mr-1 text-xs"></i> programming </a> <a href="/post/tag/17/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-purple-400 to-purple-600 text-white "> <i class="fas fa-hashtag mr-1 text-xs"></i> default </a> <a href="/post/tag/7/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-purple-400 to-purple-600 text-white "> <i class="fas fa-hashtag mr-1 text-xs"></i> plus </a> <a href="/post/tag/160/" class="inline-flex items-center mx-2 px-2 py-1 rounded-full text-xs font-medium transition-all duration-300 hover:scale-110 hover:shadow-lg cursor-pointer bg-gradient-to-r from-purple-400 to-purple-600 text-white "> <i class="fas fa-hashtag mr-1 text-xs"></i> docker </a> </div> </div> <!-- 第三行弹幕 --> <div class="absolute top-20 left-0 right-0 h-8 overflow-hidden"> <div class="flex danmaku-row-3 whitespace-nowrap" style="display: flex; min-width: max-content;"> <!-- 复制一份实现无缝循环 --> </div> </div> </div> <!-- 底部链接 --> <div class="mt-2 pt-2 border-t border-gray-200 flex justify-between items-center"> <span class="text-xs text-gray-500"> <i class="fas fa-info-circle mr-1"></i> 悬停暂停 · 点击跳转 </span> <a href="/post/tags/" class="text-xs text-green-600 hover:text-green-800 font-medium flex items-center transition-colors duration-200"> 查看全部 <i class="fas fa-arrow-right ml-1"></i> </a> </div> </div> </div> <style> /* 多行弹幕动画定义 */ @keyframes danmaku-row-1 { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } } @keyframes danmaku-row-2 { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } @keyframes danmaku-row-3 { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } } /* 应用动画 */ .danmaku-row-1 { animation: danmaku-row-1 25s linear infinite; } .danmaku-row-2 { animation: danmaku-row-2 30s linear infinite; } .danmaku-row-3 { animation: danmaku-row-3 35s linear infinite; } /* 悬停时暂停动画 */ .danmaku-row-1:hover, .danmaku-row-2:hover, .danmaku-row-3:hover { animation-play-state: paused; } /* 弹幕项目悬停效果 */ .danmaku-row-1 a:hover, .danmaku-row-2 a:hover, .danmaku-row-3 a:hover { transform: scale(1.15); z-index: 10; filter: brightness(1.2); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); } /* 发光效果 */ @keyframes glow { 0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); } 50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); } } .danmaku-row-1 a:hover, .danmaku-row-2 a:hover, .danmaku-row-3 a:hover { animation: glow 1s ease-in-out infinite; } /* 随机颜色变化 */ @keyframes color-shift { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } } .danmaku-rainbow { animation: color-shift 2s linear infinite; } /* 弹幕闪烁效果 */ @keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } } .danmaku-twinkle { animation: twinkle 1.5s ease-in-out infinite; } /* 响应式设计 */ @media (max-width: 640px) { .tag-danmaku-container { height: 140px !important; } .danmaku-row-1, .danmaku-row-2, .danmaku-row-3 { font-size: 0.7rem; } .danmaku-row-1 a, .danmaku-row-2 a, .danmaku-row-3 a { padding: 0.25rem 0.5rem !important; margin: 0 0.25rem !important; } /* 移动端隐藏第三行 */ .absolute.top-20 { display: none; } } </style> <!-- 弹幕交互脚本 --> <script> document.addEventListener('DOMContentLoaded', function() { // 边栏标签云弹幕交互 const tagDanmakuContainer = document.querySelector('.tag-danmaku-container'); if (!tagDanmakuContainer) return; // 点击波纹效果(事件委托) tagDanmakuContainer.addEventListener('click', function(e) { const target = e.target.closest('a'); if (!target || !target.href.includes('article_list_by_tag')) return; // 创建波纹效果 const ripple = document.createElement('span'); ripple.style.position = 'absolute'; ripple.style.width = '15px'; ripple.style.height = '15px'; ripple.style.background = 'rgba(255, 255, 255, 0.6)'; ripple.style.borderRadius = '50%'; ripple.style.transform = 'translate(-50%, -50%)'; ripple.style.pointerEvents = 'none'; ripple.style.animation = 'ripple-small 0.4s ease-out'; const rect = target.getBoundingClientRect(); const containerRect = tagDanmakuContainer.getBoundingClientRect(); ripple.style.left = (e.clientX - rect.left) + 'px'; ripple.style.top = (e.clientY - rect.top) + 'px'; target.style.position = 'relative'; target.appendChild(ripple); setTimeout(() => ripple.remove(), 400); // 记录点击统计 console.log('边栏弹幕点击:', target.textContent.trim()); }); // 悬停暂停效果(事件委托) let pausedRows = new Set(); tagDanmakuContainer.addEventListener('mouseenter', function(e) { const target = e.target.closest('.danmaku-row-1, .danmaku-row-2, .danmaku-row-3'); if (target && !pausedRows.has(target)) { target.style.animationPlayState = 'paused'; pausedRows.add(target); } }, true); tagDanmakuContainer.addEventListener('mouseleave', function(e) { const target = e.target.closest('.danmaku-row-1, .danmaku-row-2, .danmaku-row-3'); if (target && pausedRows.has(target)) { target.style.animationPlayState = 'running'; pausedRows.delete(target); } }, true); // 随机彩虹效果 setInterval(() => { const danmakuItems = tagDanmakuContainer.querySelectorAll('.danmaku-row-1 a, .danmaku-row-2 a, .danmaku-row-3 a'); if (danmakuItems.length > 0) { const randomIndex = Math.floor(Math.random() * danmakuItems.length); const randomItem = danmakuItems[randomIndex]; if (!randomItem.classList.contains('danmaku-rainbow')) { randomItem.classList.add('danmaku-rainbow'); setTimeout(() => { randomItem.classList.remove('danmaku-rainbow'); }, 2000); } } }, 4000); // 随机闪烁效果 setInterval(() => { const twinkleItems = tagDanmakuContainer.querySelectorAll('.danmaku-row-1 a, .danmaku-row-2 a, .danmaku-row-3 a'); if (twinkleItems.length > 0) { const randomCount = Math.min(2, twinkleItems.length); const usedIndices = new Set(); for (let i = 0; i < randomCount; i++) { let randomIndex; do { randomIndex = Math.floor(Math.random() * twinkleItems.length); } while (usedIndices.has(randomIndex)); usedIndices.add(randomIndex); const randomItem = twinkleItems[randomIndex]; if (!randomItem.classList.contains('danmaku-twinkle')) { randomItem.classList.add('danmaku-twinkle'); setTimeout(() => { randomItem.classList.remove('danmaku-twinkle'); }, 1500); } } } }, 2500); }); // 添加波纹动画样式 const style = document.createElement('style'); style.textContent = ` @keyframes ripple-small { 0% { width: 15px; height: 15px; opacity: 0.6; } 100% { width: 40px; height: 40px; opacity: 0; } } `; document.head.appendChild(style); </script> <!-- sidebar_section endblock --> </aside> </div> <footer id="footer-warp" class="bg-gradient-to-br from-gray-900 to-gray-800 text-white"> <div class="max-w-7xl mx-auto px-6 py-16"> <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> <!-- 品牌信息 --> <div class="col-span-1 md:col-span-2"> <div class="flex items-center space-x-3 mb-6"> <div class="w-12 h-12 bg-gradient-to-br from-blue-500 to-purple-600 rounded-xl flex items-center justify-center"> <i class="fas fa-blog text-white text-xl"></i> </div> <div> <h3 class="text-xl font-bold"> TerryChan' Blog </h3> <p class="text-gray-400 text-sm">分享知识,记录成长</p> </div> </div> <p class="text-gray-300 mb-6 max-w-md"> less </p> <!-- 社交媒体链接 --> <div class="flex items-center space-x-4"> <a href="#" class="w-10 h-10 bg-gray-700 hover:bg-blue-600 rounded-lg flex items-center justify-center transition-all duration-200"> <i class="fab fa-github"></i> </a> <a href="#" class="w-10 h-10 bg-gray-700 hover:bg-blue-400 rounded-lg flex items-center justify-center transition-all duration-200"> <i class="fab fa-twitter"></i> </a> <a href="#" class="w-10 h-10 bg-gray-700 hover:bg-pink-600 rounded-lg flex items-center justify-center transition-all duration-200"> <i class="fab fa-dribbble"></i> </a> <a href="#" class="w-10 h-10 bg-gray-700 hover:bg-blue-700 rounded-lg flex items-center justify-center transition-all duration-200"> <i class="fab fa-linkedin"></i> </a> </div> </div> <!-- 快速链接 --> <div> <h4 class="text-lg font-semibold mb-6">快速链接</h4> <ul class="space-y-3"> <li> <a href="/" class="text-gray-300 hover:text-white transition-colors duration-200"> <i class="fas fa-home mr-2"></i>首页 </a> </li> <li> <a href="/post/archive/" class="text-gray-300 hover:text-white transition-colors duration-200"> <i class="fas fa-archive mr-2"></i>归档 </a> </li> <li> <a href="/post/tags/" class="text-gray-300 hover:text-white transition-colors duration-200"> <i class="fas fa-tags mr-2"></i>标签 </a> </li> <li> <a href="/post/about/" class="text-gray-300 hover:text-white transition-colors duration-200"> <i class="fas fa-user mr-2"></i>关于 </a> </li> <li> <a href="/post/contact/" class="text-gray-300 hover:text-white transition-colors duration-200"> <i class="fas fa-envelope mr-2"></i>联系我们 </a> </li> </ul> </div> <!-- 订阅区域 --> <div> <h4 class="text-lg font-semibold mb-6">订阅更新</h4> <p class="text-gray-300 mb-4">获取最新的文章和资讯</p> <div class="flex flex-col space-y-3"> <input type="email" placeholder="您的邮箱地址" class="px-4 py-3 bg-gray-700 border border-gray-600 rounded-lg text-white placeholder-gray-400 focus:outline-none focus:border-blue-500 transition-colors duration-200"> <button class="modern-button bg-gradient-to-r from-blue-500 to-purple-600 hover:from-blue-600 hover:to-purple-700"> <i class="fas fa-paper-plane mr-2"></i>订阅 </button> </div> </div> </div> <!-- 底部信息 --> <div class="border-t border-gray-700 mt-12 pt-8"> <div class="flex flex-col md:flex-row items-center justify-between"> <div class="text-gray-400 text-sm mb-4 md:mb-0"> © 2026 TerryChan' Blog (www.terrychan.org ) </div> <div class="flex items-center space-x-6 text-sm"> <a href="/post/privacy-policy/" class="text-gray-400 hover:text-white transition-colors duration-200"> 隐私政策 </a> <a href="/post/terms-and-conditions/" class="text-gray-400 hover:text-white transition-colors duration-200"> 服务条款 </a> <a href="#" class="text-gray-400 hover:text-white transition-colors duration-200"> 网站地图 </a> </div> </div> </div> </div> <!-- 弹幕交互脚本 --> <script> document.addEventListener('DOMContentLoaded', function() { // 弹幕性能优化:使用事件委托 const danmakuContainer = document.querySelector('.relative.bg-gradient-to-r'); if (!danmakuContainer) return; // 点击波纹效果(事件委托) danmakuContainer.addEventListener('click', function(e) { const target = e.target.closest('a'); if (!target || !target.href.includes('article_list_by_tag')) return; // 创建波纹效果 const ripple = document.createElement('span'); ripple.style.position = 'absolute'; ripple.style.width = '20px'; ripple.style.height = '20px'; ripple.style.background = 'rgba(255, 255, 255, 0.6)'; ripple.style.borderRadius = '50%'; ripple.style.transform = 'translate(-50%, -50%)'; ripple.style.pointerEvents = 'none'; ripple.style.animation = 'ripple 0.6s ease-out'; const rect = target.getBoundingClientRect(); ripple.style.left = (e.clientX - rect.left) + 'px'; ripple.style.top = (e.clientY - rect.top) + 'px'; target.style.position = 'relative'; target.appendChild(ripple); setTimeout(() => ripple.remove(), 600); // 记录点击统计(可选) console.log('弹幕点击:', target.textContent.trim()); }); // 悬停暂停效果(事件委托) let pausedRows = new Set(); danmakuContainer.addEventListener('mouseenter', function(e) { const target = e.target.closest('.animate-danmaku-1, .animate-danmaku-2, .animate-danmaku-3, .animate-danmaku-4, .animate-danmaku-5'); if (target && !pausedRows.has(target)) { target.style.animationPlayState = 'paused'; pausedRows.add(target); } }, true); danmakuContainer.addEventListener('mouseleave', function(e) { const target = e.target.closest('.animate-danmaku-1, .animate-danmaku-2, .animate-danmaku-3, .animate-danmaku-4, .animate-danmaku-5'); if (target && pausedRows.has(target)) { target.style.animationPlayState = 'running'; pausedRows.delete(target); } }, true); // 性能优化的随机效果 let rainbowInterval, twinkleInterval; function startRandomEffects() { // 彩虹效果 rainbowInterval = setInterval(() => { const randomItems = document.querySelectorAll('.animate-danmaku-1 a, .animate-danmaku-2 a, .animate-danmaku-3 a, .animate-danmaku-4 a, .animate-danmaku-5 a'); if (randomItems.length > 0) { const randomIndex = Math.floor(Math.random() * randomItems.length); const randomItem = randomItems[randomIndex]; if (!randomItem.classList.contains('danmaku-rainbow')) { randomItem.classList.add('danmaku-rainbow'); setTimeout(() => { randomItem.classList.remove('danmaku-rainbow'); }, 3000); } } }, 5000); // 闪烁效果 twinkleInterval = setInterval(() => { const twinkleItems = document.querySelectorAll('.animate-danmaku-1 a, .animate-danmaku-2 a, .animate-danmaku-3 a, .animate-danmaku-4 a, .animate-danmaku-5 a'); if (twinkleItems.length > 0) { const randomCount = Math.min(3, twinkleItems.length); const usedIndices = new Set(); for (let i = 0; i < randomCount; i++) { let randomIndex; do { randomIndex = Math.floor(Math.random() * twinkleItems.length); } while (usedIndices.has(randomIndex)); usedIndices.add(randomIndex); const randomItem = twinkleItems[randomIndex]; if (!randomItem.classList.contains('danmaku-twinkle')) { randomItem.classList.add('danmaku-twinkle'); setTimeout(() => { randomItem.classList.remove('danmaku-twinkle'); }, 2000); } } } }, 3000); } // 页面可见性API:优化性能 document.addEventListener('visibilitychange', function() { if (document.hidden) { clearInterval(rainbowInterval); clearInterval(twinkleInterval); } else { startRandomEffects(); } }); // 启动随机效果 startRandomEffects(); // 添加键盘控制(空格键暂停/播放所有弹幕) document.addEventListener('keydown', function(e) { if (e.code === 'Space' && e.target === document.body) { e.preventDefault(); const allRows = document.querySelectorAll('.animate-danmaku-1, .animate-danmaku-2, .animate-danmaku-3, .animate-danmaku-4, .animate-danmaku-5'); allRows.forEach(row => { const currentState = row.style.animationPlayState || 'running'; row.style.animationPlayState = currentState === 'running' ? 'paused' : 'running'; }); } }); }); </script> <!-- 波纹动画样式 --> <style> @keyframes ripple { 0% { width: 20px; height: 20px; opacity: 0.6; } 100% { width: 60px; height: 60px; opacity: 0; } } </style> </footer> </body> </html>