• 主题模板
  • 【Joe2.0】Halo-theme-joe2.0 主题发布 🚀🚀🚀

gugu 目前不支持自己配置,后面可以和轮播图一样支持配置指定的分类

    luoxx 这里应该确实有问题,后面再优化一下


    请问底部添加这种样式怎么居中呢,添加style貌似不起作用

      authon 在主题设置里的css加的这段

      .github-badge {
      		display: inline-block;
      		border-radius: 4px;
      		text-shadow: none;
      		font-size: 12px;
      		color: #fff;
      		line-height: 15px;
      		background-color: #ABBAC3;
      		margin-bottom: 5px;
                       text-align:center;
      	}
      	.github-badge .badge-subject {
      		display: inline-block;
      		background-color: #4D4D4D;
      		padding: 4px 4px 4px 6px;
      		border-top-left-radius: 4px;
      		border-bottom-left-radius: 4px;
      	}
      	.github-badge .badge-value {
      		display: inline-block;
      		padding: 4px 6px 4px 4px;
      		border-top-right-radius: 4px;
      		border-bottom-right-radius: 4px;
      	}
      	.github-badge .bg-brightgreen {
      		background-color: #4DC820 !important;
      	}
      	.github-badge .bg-orange {
      		background-color: #FFA500 !important;
      	}
      	.github-badge .bg-yellow {
      		background-color: #D8B024 !important;
      	}
      	.github-badge .bg-blueviolet {
      		background-color: #8833D7 !important;
      	}
      	.github-badge .bg-pink {
      		background-color: #F26BAE !important;
      	}
      	.github-badge .bg-red {
      		background-color: #e05d44 !important;
      	}
      	.github-badge .bg-blue {
      		background-color: #007EC6 !important;
      	}
      	.github-badge .bg-lightgrey {
      		background-color: #9F9F9F !important;
      	}
      	.github-badge .bg-grey, .github-badge .bg-gray {
      		background-color: #555 !important;
      	}
      	.github-badge .bg-lightgrey, .github-badge .bg-lightgray {
      		background-color: #9f9f9f !important;
      	}
      	body{
      		font-family: Georgia, -apple-system, 'Nimbus Roman No9 L', 'PingFang SC', 'Hiragino Sans GB', 'Noto Serif SC', 'Microsoft Yahei', 'WenQuanYi Micro Hei', 'ST Heiti', sans-serif;
      	}

        qinhua 老哥,你有空试一下更新到1.5.0版本看看,我发现我更新到1.5.0之后,joe主题发文章总显示内部服务器错误,发不出内容,然后我现在切回1.4.17版本了。一切正常(我用的是Docker,然后NginxProxyManager做的反向代理的)

          gugu 我这边测试可以,看下错误日志是什么

          • gugu 回复了此帖

            按文档设置
            location / {
            gzip_static on; # 静态压缩
            add_header Cache-Control public,max-age=60,s-maxage=60; # 配置缓存
            proxy_set_header HOST $host;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass http://127.0.0.1:8090;
            }

            这样就全部缓存了呀
            怎么设置才能只缓存前台博客
            不缓存后台管理呢
            具体怎么操作呢
            望告知,万分感谢🙏

            更新了1.5.0之后,我的Joe主题右边的目录栏点击貌似有的无法正常跳转了,不知道是不是我一个人的问题,

            目录点击可以【正常跳转】的:
            https://blog.laoda.de/archives/mac-app-2021#视频
            https://blog.laoda.de/archives/host-static-sites-on-npm#推荐阅读

            目录点击【无法正常跳转】的:
            https://blog.laoda.de/archives/cheap-vps-racknerd#购买建议和注意事项
            https://blog.laoda.de/archives/useful-script#docker相关
            https://blog.laoda.de/archives/backup-server-series#视频

            类似的还有很多,需要一一点开才能知道,没啥规律

            环境信息

            版本:1.5.0
            数据库:H2 1.4.199 (2019-03-13)
            运行模式:production
            启用主题:Joe2.0
            User Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15

            Joe主题最新版本

              还有发现一个就是代码块如果是“plain text”,复制按钮会失效,如果是“bash”,则可以正常复制。

                gugu 这个代码块复制按钮的问题也是升级halo1.5后出现的吗?

                • gugu 回复了此帖

                  gugu
                  通过查看这篇文章,了解到是由于 Halo 1.5 中对中文锚点进行了编码,导致前台无法通过元素 id 获取相应元素,从而无法得到相关元素的滚动位置导致的。

                  只要在获取之前使用 decodeURIComponent 方法解码一下即可。后续一并做适配。

                  qinhua 现在是升级了1.5.0出现的,不过我之前也没注意过...