zchengsite / hexo-theme-oranges Goto Github PK
View Code? Open in Web Editor NEW🍊A simple hexo theme of minimalism
Home Page: https://hexo.theme.oranges.zcheng.site/
License: MIT License
🍊A simple hexo theme of minimalism
Home Page: https://hexo.theme.oranges.zcheng.site/
License: MIT License
Dark/Light Mode转换功能已经添加……在添加过程中发现,base css和markdown css里面有些不一致的地方需要协调,这样黑白转换后看起来颜色比较和谐统一。
As title, in header.ejs
the title variable is showing simplified Chinese instead of Internationalized language.
尝试使用hexo-blog-encrypt
对文章进行加密,但是在加密后不能输入密码,是否有解决办法
大佬的主题真的是很好看,i了,有两个问题希望大佬赐教,new page about后如何编辑about的内容,还有是否会增加分享功能orz~
请问如果想要对页面的图标布局进行位置修改,需要在哪里调整。
因为暗色模式和搜索按钮在右下角不太显眼, 想调整一下位置,但找不到是修改哪个文件。
主题色和访客统计两个功能很好,但是主题色支持下的 navbar 和 目录 两个地方的色块位置可能需要调整,且直角矩形可能没有圆角矩形看着舒服。
另,关于 行间代码
的字体粗细可以在哪里设置呢?个人感觉粗体比细体的代码看着舒服一些,想要修改一下源码,谢谢
有个问题 language的配置我选的zh-CN 但是页面还是英文
原本的footer部分都是统一的添加链接,写了邮件无法实现点击发邮件,所以改了一下,加的有些丑,但是生效了
<div class="footer">
<div class="social">
<ul>
<% for(let item of theme.footer.social){ %>
<% if (item.name == "email") { %>
<li>
<a title="<%- item.name %>" href="mailto:<%- item.path %>">
<i class="iconfont icon-<%- item.icon %>"></i>
</a>
</li>
<% } else { %>
<li>
<a title="<%- item.name %>" href="<%- item.path %>">
<i class="iconfont icon-<%- item.icon %>"></i>
</a>
</li>
<% } %>
<% } %>
</ul>
</div>
<% for(let item of theme.footer.more){ %>
<div class="footer-more">
<% if (item.path) { %>
<a href="<%- item.path %>"><%- item.name %></a>
<% } else { %>
<%- item.name %>
<% } %>
</div>
<% } %>
</div>
经过加密的文章,在用密码打开文章后,会导致文章目录消失
是否可以修改oranges模板字体?
hexo-theme-oranges/layout/post.ejs
Lines 68 to 69 in 1a6c04a
hexo-theme-oranges/layout/post.ejs
Lines 117 to 118 in 1a6c04a
根据 Hexo 文档,page.date
代表 post 发表时间,而 page.updated
是更新时间。
非计算机专业+hexo小白,很久之前是别人帮忙配置的hexo blog,自己没有打理。近期想在blog上发一些文章,第一眼就看到这个主题,喜欢整体的简洁风,喜欢orange图标的像素格的设计,也喜欢文章标题按时间轴的排列,喜欢目录的横栏设计。总之是一见钟情的主题!特地来感谢大佬的设计~(不知道发在issue里面会不会干扰问问题,但是好像找不到别的合适的地方表达我的感恩之情惹)
安装失败:
unable to access 'https://github.com/zchengsite/hexo-theme-oranges.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
我感觉主页的两边有点空,我在右侧放了一个live2d的图案,希望dalao可以考虑一下给左侧开辟一个区域放些插件,比如日历之类的,我看了一下_partial里面好像没有侧栏的ejs
我比较喜欢dark,可是没有找到切换默认配色的配置。
大佬的主题真的是很好看,i了,有两个问题希望大佬赐教,new page about后如何编辑about的内容,还有是否会增加分享功能orz~
我是一个完完全全新人,甚至于昨天才了解hexo.io。因为闲着没事就十分想弄一个个人blog,在bilibili上看了CodeSheep的视频已经成功搭建了,然后就是theme了,你敢信我翻了全部主题,只有两个好看,一个是shoka另一个就是您的oranges!简直太棒了!
最近从hexo转到hugo了,发现还是好喜欢你这个主题,结果hugo上没有
看官方说明和介绍视频(https://hexo.io/docs/variables )里提到可以在自己的post上定义一个customized variable。比如在front-matter里面加入如下代码
---
title: test
customvar: abc
---
在layout的模板里可以直接用<%=page.title%>和<%=page.customvar%>。
我试了,发现官方定义好的变量,比如page.title是可以直接用的,但是自己的定义的变量用不了。
也可以参考这个讨论:hexojs/hexo#3056 (comment)
作者你好,用了oranges这个主题之后文章里的Markdown代码块无法高亮,请问这是bug还是本身就不支持代码高亮?
ERROR TypeError: D:\always\themes\oranges\layout\post.ejs:170
168| <% if(theme.comments.enable) { %>
169|
170| <%- partial("_partial/comments") %>
171|
D:\always\themes\oranges\layout_partial\comments.ejs:1
1| <% if(theme.comments.enable && theme.comments.waline.enable) { %>
2| <script src='//unpkg.com/@waline/client/dist/Waline.min.js'></script>
3|
4|
Cannot read property 'enable' of undefined
at eval (D:\always\themes\oranges\layout_partial\comments.ejs:10:58)
at comments (D:\always\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiledSync (D:\always\node_modules\hexo\lib\theme\view.js:132:24)
at _View.renderSync (D:\always\node_modules\hexo\lib\theme\view.js:59:25)
at Object.partial (D:\always\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (D:\always\themes\oranges\layout\post.ejs:229:17)
at post (D:\always\node_modules\ejs\lib\ejs.js:682:17)
at _View._compiled (D:\always\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (D:\always\node_modules\hexo\lib\theme\view.js:39:17)
at D:\always\node_modules\hexo\lib\hexo\index.js:64:21
at tryCatcher (D:\always\node_modules\bluebird\js\release\util.js:16:23)
at D:\always\node_modules\bluebird\js\release\method.js:15:34
at RouteStream.read (D:\always\node_modules\hexo\lib\hexo\router.js:47:5)
at RouteStream.Readable.read (internal/streams/readable.js:481:10)
at resume (internal/streams/readable.js:977:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21) {
path: 'D:\always\themes\oranges\layout\post.ejs'
配置项里面叫serverUrl,comment.ejs里面叫theme.comments.waline.serverURL,没匹配上导致评论无法显示,我本地改了下名字,特意来给你留个言
编辑代码块时,类型设置为powershell才会有高亮,如果是shell则没有高亮。
麻烦作者帮忙添加下shell高亮的支持,谢谢。
在本地测试一切正常,但是上传到github上就出错了,文件都上传上来了可是就是无法找到,请求指点
在更新主题之后,查看到有waline的相关配置,我将下方waline的JS URL更新为https://unpkg.com/@waline/client@v2/dist/waline.js
把相关的开关打开并配置好waline评论链接后,文章评论直接关闭了,由于我储备的开发知识很少,实在不知道问题出在哪里了,请求帮助,万分感谢
能否在移动端添加一个展开的目录按钮?有的时候写长教程比较需要。膜拜大佬!
我按照waline文档集成了,但是发现无发评论,貌似是跨域问题还是啥的,有空帮我看看呢,麻烦了,然后发现每次加载文章页面的时候有个null的404请求,不晓得咋回事,我的博客地址是:https://blog.codage.info/
大佬有空帮忙看看咋回事呢
cdn.bootcss.com
连接不畅,导致 jQuery 和 Fancybox 资源无法正常加载。希望在 _config.yml
提供开关,切换至 cdnjs.cloudflare.com
或其他平台。 <!-- jquery3.3.1 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- fancybox -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.2/jquery.fancybox.min.css" rel="stylesheet">
<script async src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.2/jquery.fancybox.min.js"></script>
page.date
作为了 "Update Time" 的数值。而 page.updated
才是正确的文章更新时间。哈罗,很喜欢这个主题。想把主页设成自我介绍的post禁用了home。但是通过域名访问网站时还是会自动到index.ejs,有什么办法让网站打开时自动跳转到某个路径么比如localhost:4000/2022/09/17/test/?
谢谢!
出于进一步简洁页面的目的,我对 avatar 的相关代码设置了 enable
,去掉了头像和昵称。
# 用户头像与昵称
avatar:
enable: false
author_photo: /images/avatar.ico
author_nickname: 三尺微命,一介书生
path: /
主页和文章等页面,内容足够多,使页脚可以紧靠页面底部,但是其他一些页面内容不够多,页脚不能紧靠页面底部,实例
请教一个解决方案,谢谢
作者你好,非常喜欢这个oranges主题,请问现在是否支持mathjax语法输入行内和行间公式,我没有设置成功。
您好,很喜欢您的主题,今天发现深色模式在有表格的情况下显示不正常。
以www.blog.com
为博客域名举例:
在 主页 点击 RSS 图标,会跳转到正确的 RSS URL:www.blog.com/atom.xml
在 标签 点击 RSS 图标,会跳转到错误的 RSS URL:www.blog.com/tags/atom.xml
在 任意一篇文章 点击 RSS 图标,会跳转到错误的 RSS URL:www.blog.com/posts/atom.xml
插件:hexo-generator-feed
blog/_config.yml
:
url: http://www.blog.com/
root: /
permalink: posts/:abbrlink.html
theme: oranges
feed:
type: atom
path: atom.xml
limit: 20
hub:
content:
content_limit: 140
content_limit_delim: ' '
order_by: -date
icon: icon.png
autodiscovery: true
template:
blog/themes/oranges/_config.yml
:
# 主题页面导航栏
navbar:
-
name: 主页
enable: true
path: /
key: home
-
name: 标签
enable: true
path: /tags/
key: tags
# 页脚信息
footer:
# social: 社交方式
# more: 更多页脚信息
social:
# RSS
-
name: rss
icon: rss
path: atom.xml
不了解前端知识,个人猜测是页脚的path
设置问题,导致直接拼接到 URL 上
更改blog/themes/oranges/_config.yml
中 RSS 的paht
,更改后发现问题得到解决
# 页脚信息
footer:
# social: 社交方式
# more: 更多页脚信息
social:
# RSS
-
name: rss
icon: rss
path: http://www.blog.com/atom.xml
但是这种方案,不是很美观,在更换域名或某些操作时,需要处理
如LaTex
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.