ben02 / hexo-theme-anatole Goto Github PK
View Code? Open in Web Editor NEWA white and simple Hexo theme, originated from a Farbox theme
License: MIT License
A white and simple Hexo theme, originated from a Farbox theme
License: MIT License
我看到生成的public文件夹下面有catogories文件夹,但没有index文件,加上这个链接后也无法打开
在哪建立这两个页面,是生成html 文件还是 跟归档一样,建立两个这样的目录
點擊文章下方的 evernote 按鈕 卻沒有得到任何反應 (微博, 推特 是正常的)
請問是否已經失效了?
评论插件是否可以用来必力
看到样式表里有关于toc的样式,但是 jade里面没有生成toc的部分。请问后续是否会加上。
extends partial/layout block content .autopagerize_page_element: .content - page.posts.each(function (item) { include mixins +make_post(item, false) - }) include mixins +make_pager(__('prev'), __('next'))
主题改成了 anotole 并且添加了 wiki 里说的几个配置,然后主页显示这个,不知道是怎么回事
你好,我把hexo 默认的主题改为anatole后, 发现有个css文件报404错误,我看了themes下的css文件夹,也没有这个文件:ds-embed.css
hexo 原来的默认的主题是不会要加载这个文件的。
报错信息如下 Cannot read property 'enable' of undefined
导致无法生成页面
给各位像我一样的智障提个醒,如果需要去除 Evernote、weibo、Twitter 的分享按钮,只需要删除 theme\anatole\layout\post.pug
文件 第16 - 22 行
即可
我安装教程安装主题,但是我在预览(hexo server)时遇到以下的问题:
extends partial/layout block content .autopagerize_page_element: .content - page.posts.each(function (item) { include mixins +make_post(item, false) - }) include mixins +make_pager(__('prev'), __('next'))
网页显示这个而不是更换好的主题,不知道我那步出错了?
我的默认主题加载正常,看到您的主题很喜欢,步骤:
安装主题git clone ~~~themes/anatole
更改_config.yml文件,中themes到anatole
hexo clean;hexo generate;hexo server,后来就显示上面的问题。
is there any live demo available?
表示多说快废了。。。所以能不能支持下网易的东西(https://gentie.163.com/index.html),我自己尝试了好多次。。。全部失败噗(hoc117.top)(源码生成成功。。。但是无法显示)(表示我不懂Jade不懂HTML和JS之类的。。。这个Jade靠HTML转Jade)
所以您能不能做个支持呢?谢谢
这样比较方便主题的更新,你觉得呢
Once I transfer this theme, the website simply wont work -> http://prntscr.com/gvrlgy
This is markdown editor for Hexo.
Built with Electron.
Inherit Moeditor, I want to fix it appropriate to Hexo Blog!
_config.yml
support
default theme
settings and need your help !安装呢必要配置出错,jade改名字, 装了改名字之后的版本,但是并不能展示页面
原来多说已经关闭了么
如题,如有打扰很抱歉
点击页面出现爱心效果。
love.js 文件如下:
!function(e,t,a){function r(){for(var e=0;e<n.length;e++)n[e].alpha<=0?(t.body.removeChild(n[e].el),n.splice(e,1)):(n[e].y--,n[e].scale+=.004,n[e].alpha-=.013,n[e].el.style.cssText="left:"+n[e].x+"px;top:"+n[e].y+"px;opacity:"+n[e].alpha+";transform:scale("+n[e].scale+","+n[e].scale+") rotate(45deg);background:"+n[e].color+";z-index:99999");requestAnimationFrame(r)}var n=[];e.requestAnimationFrame=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},function(e){var a=t.createElement("style");a.type="text/css";try{a.appendChild(t.createTextNode(e))}catch(t){a.styleSheet.cssText=e}t.getElementsByTagName("head")[0].appendChild(a)}(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"),function(){var a="function"==typeof e.onclick&&e.onclick;e.onclick=function(e){a&&a(),function(e){var a=t.createElement("div");a.className="heart",n.push({el:a,x:e.clientX-5,y:e.clientY-5,scale:1,alpha:1,color:"rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")"}),t.body.appendChild(a)}(e)}}(),r()}(window,document);
网站的示例页面打不开了啊,404
看错,我自己删掉,躺倒。
css代码高亮不起作用?请问怎么设置?
Unhandled rejection TypeError: /Users/jerry/Develop/Nodejs/qiuxiaochao.com.text/themes/anatole/layout/partial/comments.jade:57
55| })();
56|
> 57| if theme.valine.enable == true
58| a#comments
59| #vcomments(style="margin:0 30px;")
60| script(src='//cdn1.lncld.net/static/js/3.0.4/av-min.js')
Cannot read property 'enable' of undefined
根据默认配置不去改它也应该会直接显示出来吧。我这边不显示哦,一片空白
增加一条if判断就行了,然后在/anatole/languages/zh-cn.yml中增加词条 Categories: 分类
,不过我也遇到一个问题,tab页选中后无样式类active,导致样式与其他不符,求助作者 @Ben02
粘上我的代码。
.page-top.animated.fadeInDown
.nav
li
if is_home()
a.current(href="/")= __('Home')
else
a(href="/")= __('Home')
li
if is_current('Categories')
a.current(href="/categories")= __('Categories')
else
a(href="/categories")= __('Categories')
li
if is_archive()
a.current(href="/archives")= __('Archive')
else
a(href="/archives")= __('Archive')
li
if is_current('about')
a.current(href="/about")= __('About')
else
a(href="/about")= __('About')
.information
.back_btn
li
if is_post()
a.fa.fa-chevron-left(onclick="window.history.go(-1)")
else
a.fa.fa-chevron-left(onclick="window.history.go(-1)",style="display:none;")
.avatar
img(src=theme.avatar)
Originally posted by @nyz123 in #51 (comment)
定制化需求
怎么生成这两个页面啊,用hexo new page 生成后它的默认布局怎么更改? 刚接触 hexo,求指点。
扩展部分/布局块内容.autopagerize_page_element:.content - page.posts.each(function(item){include mixins + make_post(item,false) - })include mixins + make_pager(('prev'),('下一个'))
feed
如题。
hexo server 之后,关于和友链页面都404
已解决
很喜欢你博客的风格,可否为Cabloy-CMS开发一套(免费/付费)主题,然后发布到Cabloy商店里面?
CabloyJS:是一款顶级NodeJS全栈业务开发框架, 基于KoaJS + EggJS + VueJS + Framework7
Cabloy-CMS:是基于CabloyJS全栈业务开发框架开发的动静结合的CMS,可以快速构建企业网站、博客、社区、商城等Web应用
Cabloy商店:包括品类广泛的各类模块,满足不同场景的开发需求
CabloyJS介绍:https://cabloy.com/zh-cn/articles/introduce.html
Cabloy-CMS介绍:https://cabloy.com/zh-cn/articles/cms-introduce.html
Cabloy商店运营模式:https://cabloy.com/zh-cn/articles/store.html
已经解决
TypeError: /Users/Awhisper/Desktop/Hexo/themes/anatole/layout/mixins.pug:24
22| if item.tags
23| i.fa.fa-tag
24| - item.categories.sort('posts').each(function(item) {
25| a.tag(href=config.root + item.path, title= item.name)= item.name + " "
26| - });
27| - item.tags.sort('posts').each(function(item) {
item.categories.sort is not a function
at Object.pug_interp [as make_post] (eval at wrap (/Users/Awhisper/Desktop/Hexo/node_modules/pug-runtime/wrap.js:6:10), :314:17)
at eval (eval at wrap (/Users/Awhisper/Desktop/Hexo/node_modules/pug-runtime/wrap.js:6:10), :429:24)
at template (eval at wrap (/Users/Awhisper/Desktop/Hexo/node_modules/pug-runtime/wrap.js:6:10), :806:183)
at Theme._View.View._compiled.locals [as _compiled] (/Users/Awhisper/Desktop/Hexo/node_modules/hexo/lib/theme/view.js:124:48)
at Theme._View.View.View.render (/Users/Awhisper/Desktop/Hexo/node_modules/hexo/lib/theme/view.js:29:15)
at route.set (/Users/Awhisper/Desktop/Hexo/node_modules/hexo/lib/hexo/index.js:386:29)
at tryCatcher (/Users/Awhisper/Desktop/Hexo/node_modules/bluebird/js/release/util.js:16:23)
at /Users/Awhisper/Desktop/Hexo/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/Users/Awhisper/Desktop/Hexo/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:442:10)
at resume (_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
您好,hexo g 的时候,我遇到了这个错误,注释掉pug文件中的 tag 与 category可以正常使用,但是文章的标签无法正确显示,
我的版本是 node 8.11.1 用的anatole是稳定版,
奇怪的是几周前是正常的,没遇到类似的问题,因此我个人主页线上是正常的,只是现在冲新hexo g 的时候,无法正常生成了
请见谅我浅薄的代码基础,经过几次尝试均失败了
请问,如何将百度的自动推送代码加入进主题呢?
(function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();
还望解答,谢谢!
能够配置nav,里面的内容如何设置
I'm not really seeing any purpose for including jquery, jquery-migrate, or jquery.appear.
Are these just a leftover or something?
首页默认是那文章列表,想用一个新建的page做首页,请问修改呢
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm 提示 jade 被重命名为 pug。
某一个category下的文章多于十篇时点击该category,只显示第一页的十篇文章列表,而没有“下一页”入口。
我尝试新建一个post,然后如下
---
title: 匆匆一年
date: 2017-02-03 18:34:44
tags: 年度总结
desc: 匆匆一年,依然没有大富大贵,依然没有名扬四海。所幸,还有点所得所感,还有一包新鲜的腊肠,还有人陪着一个死胖子走在减肥的不归路上。
---
在首页的描述好像没有正确截取,还是显示的正文的描述,这个是什么原因呢?
使用的 hexo
➜ ~ hexo --version
hexo-cli: 1.0.2
os: Darwin 15.5.0 darwin x64
http_parser: 2.7.0
node: 6.5.0
v8: 5.1.281.81
uv: 1.9.1
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 57.1
modules: 48
openssl: 1.0.2h
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.