Giter Club home page Giter Club logo

hexo-theme-raytaylorism's Issues

首页文章链接出现问题

你好,当我测试这一主题的时候,发现首页以及归档页生成的文章链接出现了问题,即http://后面直接跟上了相对路径,缺少了域名部分。原本应该是http://domain.com/date/post.html,变成了http:///date/post.html。我换回默认的landscape主题,没有这一问题。
我查看了一下对应的几个模版文件,发现官方生成链接时使用的函数是<%- url_for(post.path) %>,而这一主题用的是<%- config.root %><%- item.path %>,当我把后者都改成<%- url_for(item.path) %>时问题就解决了。
我总结出的原因是:由于默认config.root是根目录‘/’,这样原代码会在原有相对路径前又加上了‘/',导致网站不能正确生成文章路径。不知我的分析是否正确,还请多指教。

toc滚动按了没用

没有discuss,我就开个issue了
由于Materialize的问题,toc中含unicode字符就会无法点击滚动(估计是他们没想着会有中日韩等语言的使用者)

这么修:
在materialize.min.js(目前项目使用的版本v0.97.6)中
替换

a('a[href="#'+a(c).attr("id")+'"]').click(function(b){b.preventDefault();var c=a(this.hash).offset().top+1

a('a[href="#'+a(c).attr("id")+'"]').click(function(b){b.preventDefault();var c=a(decodeURIComponent(this.hash)).offset().top+1

效果参见 https://word.donot.help/p/2016-06-14-talk-about-this-blog.html

最新版hexo deploy -g报错

H:\hexo\hexo>hexo deploy -g
[info] Files loaded in 0.090s
[error] HexoError: Render failed: index.html
TypeError: H:\hexo\hexo\themes\raytaylorism\layout\index.ejs:80
78|
79|

80| <%- partial('_partial/feature_guide') %>
81|

H:\hexo\hexo\themes\raytaylorism\layout_partial\feature_guide.ejs:53
51| var
52| //新功能特征值,以此识别一个功能点

53| FEATURE_CODE = '<%= config.new_feature_guide.hash_code %
',
54| //新功能高亮提醒的jQuery查询字符串
55| FEATURE_DOM = $('<%= config.new_feature_guide.query_stri
ng %>'),
56| //新功能描述

Cannot read property 'hash_code' of undefined
at eval (eval at (C:\Users\rd_bruce_sha\AppData\Roaming\npm\node
_modules\hexo\node_modules\ejs\lib\ejs.js:236:14), :29:2324)
at eval (eval at (C:\Users\rd_bruce_sha\AppData\Roaming\npm\node
_modules\hexo\node_modules\ejs\lib\ejs.js:236:14), :29:6059)
at C:\Users\rd_bruce_sha\AppData\Roaming\npm\node_modules\hexo\node_modules
ejs\lib\ejs.js:249:15
at Object.exports.render (C:\Users\rd_bruce_sha\AppData\Roaming\npm\node_mod
ules\hexo\node_modules\ejs\lib\ejs.js:287:13)
at Object.module.exports [as ejs](C:Usersrd_bruce_shaAppDataRoamingnpm
node_moduleshexolibpluginsrendererejs.js:5:14)
at Object.exports.renderSync (C:\Users\rd_bruce_sha\AppData\Roaming\npm\node
_modules\hexo\lib\render.js:143:29)
at render (C:\Users\rd_bruce_sha\AppData\Roaming\npm\node_modules\hexo\lib\p
lugins\helper\partial.js:28:22)
at Object.module.exports [as partial](C:Usersrd_bruce_shaAppDataRoaming
npmnode_moduleshexolibpluginshelperpartial.js:41:12)
at eval (eval at (C:\Users\rd_bruce_sha\AppData\Roaming\npm\node
_modules\hexo\node_modules\ejs\lib\ejs.js:236:14), :29:3075)
at eval (eval at (C:\Users\rd_bruce_sha\AppData\Roaming\npm\node
_modules\hexo\node_modules\ejs\lib\ejs.js:236:14), :29:3121)

多行代码显示问题

语法高亮的主题在手机上显示比较乱,上面是数字,下面是代码,但是用手机看你的博客没有这个问题,不知道是不是我配置错误

page.excerpt问题

有个非常奇怪的bug:
就是使用了这个主题后page.excerpt返回的false,即首页没有摘要,也不显示READ MORE

接入google广告

hey,可否考虑一下把网站接入Google广告,能不能告诉我怎么实现?

标题栏添加侧滑栏按钮

请问是否能将右下角的悬浮按钮,里面的第二个按钮(侧滑栏按钮),移到标题栏左上角位置呢?这样就能跟Android常用功能保持一致,而且右下角只放一个一级按钮(回到顶部按钮)会比较好,二级菜单感觉操作比较烦琐。

如何修改版面大小?

我想修改 page页和 文章阅读的宽度大小。感觉现在的页面太窄了。 请问能否告知是在哪个文件中修改?

手机适配问题

你好,我用你主题发表文章后,在手机浏览时,打开文章,在有代码的地方,行号单独占了一块,代码又单独占了一块,应该是代码插件的原因,我能力有限,改不了,希望你能解决一下,拜谢。

新版v2主题内测须知

内测说明

基本上该说明的都在文档里面详细说明了,仔细阅读下文档一般可以解决你的问题。如果是文档里面没说的或者说不明白的,可在底下直接回帖反馈。

**博客主题是个性化非常强的东西,每个人都有自己的审美,本主题也是按照我自己个人喜好来设计,因此试用过后如果发现不喜欢不想用,完全没关系,测试主题完全来去自由,hexo也还有一大堆其他的主题可选。**总之,主题的UI风格基本上不会再有大改动,后续将会持续新功能的开发和bug的修复。当然,如果你喜欢我的主题并愿意用到你自己的博客里,我将感到非常荣幸,我们可以携手将本主题建设得更好。

使用过程中有任何使用问题、bug、改进意见、功能请求、文档疏漏等等,都可以在这底下回帖反馈。

推荐个性化UI配置

  • 主题颜色替换(相当于换肤,替换成你自己喜欢的颜色看起来会有不一样的感觉,当然要遵循Material Design Color的规范),参见文档-样式-主题颜色配置
  • 代码语法高亮主题替换(默认使用的是prettify-tomorrow-night-eighties.css主题),参见文档-插件-代码语法高亮

测试内容

包括但不限于以下几点:

  • 主题颜色替换
  • 首页幻灯片
  • 读书页面
  • 侧滑栏头部
  • 多说插件
  • 外部链接

文章正文宽度

Hi,请教一个问题,能否把文章的正文宽度调节得更宽一点,我感觉这个宽度太窄了

Markdown语法支持问题

在用markdown写文章的时候,比如标题“# 标题”,井号与标题名称之间必须空格,不空格无法识别标题。还有,使用表格的时候,有时候也无法识别

生成静态文件后没有使用主题

在编辑过程中使用hexo server命令时一切正常。在关闭server之后,使用hexo generate生成静态文件后,打开public文件夹下面的index.htm,发现页面没有被主题渲染。情况如图:

issue

已经按照readme中的进行设置。

最新版Hexo应用主题时出错

错误信息如下:

debug] 15:25:42.624 Render tag: tags/blog/
[error] 15:25:42.693 HexoError: Render failed: archives/index.html
ReferenceError: c:\github_blog\themes\raytaylorism\layout\archive.ejs:1

1| <%- partial('_partial/archive', {pagination: config.archive}) %>

c:\github_blog\themes\raytaylorism\layout_partial\archive.ejs:23
21| <% } else { %>
22|

23| <% for (var i = 0, len = years.length; i < len; i++) { %>
24|


25| <%= years[i] %>
26|

years is not defined
at eval (eval at (c:\Users\Hongbin\AppData\Roaming\npm\node_modules\hexo\node_modules\ejs\lib\ejs.js:237:14), :40:666)
at eval (eval at (c:\Users\Hongbin\AppData\Roaming\npm\node_modules\hexo\node_modules\ejs\lib\ejs.js:237:14), :40:1253)
at c:\Users\Hongbin\AppData\Roaming\npm\node_modules\hexo\node_modules\ejs\lib\ejs.js:250:15
at Object.exports.render (c:\Users\Hongbin\AppData\Roaming\npm\node_modules\hexo\node_modules\ejs\lib\ejs.js:288:13)
at module.exports (c:\Users\Hongbin\AppData\Roaming\npm\node_modules\hexo\lib\plugins\renderer\ejs.js:5:14)
at Object.exports.renderSync (c:\Users\Hongbin\AppData\Roaming\npm\node_modules\hexo\lib\core\render.js:131:12)
at render (c:\Users\Hongbin\AppData\Roaming\npm\node_modules\hexo\lib\plugins\helper\partial.js:28:22)
at Object.module.exports as partial
at eval (eval at (c:\Users\Hongbin\AppData\Roaming\npm\node_modules\hexo\node_modules\ejs\lib\ejs.js:237:14), :29:35)
at eval (eval at (c:\Users\Hongbin\AppData\Roaming\npm\node_modules\hexo\node_modules\ejs\lib\ejs.js:237:14), :29:103)

分页Bug

我在_config.yml添加了
archive_generator:
per_page: 0
tag_generator:
per_page: 0
category_generator:
per_page: 0
这些代码后,在本地浏览正常分页,上传后,打开网站没有分页,文章显示不全,
删除这些代码,在上传后,就正常了

把json的值设为null,页面就无法正常打开。

你好,我按照readme里面说的,比如 我不需要about页面中打赏的图片,我把about.json里面reward的字段改写成"reward":null,可是改了之后about页面就不能正常打开了。有一些页面也是。。我感觉自己没有操作错误啊。

代码框仍然会越界

首先我确认了我的语法是绝对无误的。但是代码长度达到一定行数以后(10)代码框的行号那一栏比代码栏要长一截。

搜索失效

在搜索框里搜索关键字只能出来关联的字,不出来文章

標籤頁及分類頁的標題網址錯誤

以 tag php 來舉例,網址應為 https://{domain.com}/tags/php
但點進該網址後,php 這個標籤上的網址顯示為 https://{domain.com}/tags/php/tags/php/
因此點進入後,會發生 404 Error

screenshot 2016-03-30_00-37-50

分类目录优化

个人建议:能否在分类目录栏加上类似树状结构的线条,现在看起来虽然有分级的感觉,但是不够直观,也不够美观=。=

怎样启用小部件

  1. _config.yml配置文件中的widgets 能启用吗?
  2. blogrolls 这个设置了 ,在哪来看可以看到啊?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.