A-limon.github.io
a-limon / pacman Goto Github PK
View Code? Open in Web Editor NEWPacman is a flat and responsive design theme for Hexo.
Home Page: http://yangjian.me/pacman
License: MIT License
Pacman is a flat and responsive design theme for Hexo.
Home Page: http://yangjian.me/pacman
License: MIT License
rt
另外,能不能在文章页面中加上 返回开头 的小插件啊
主题很精美!很赞!希望能更好~
谢谢!
在使用多说的评论那里,为什么只需要设置short_name
而不需要填写多说的密钥
这样会不会造成short_name公开了评论混乱的情况?
代码高亮配置
highlight:
enable: true
要写到themes/pacman/_config.yml
里吗?
我在根目录_config.yml
里配置了,代码高亮css不生效,即themes/pacman/source/css/style.styl
这段代码
if highlight
@import '_base/code'
没执行
您好,您的主题真的是非常赞!在我使用的时候发现了一个小的细节问题:
在Archive页面中,如果文章的标题字数过多,各个方块高度就不一样,看起来就不整齐,我现在的处理方法是把超过的字省略掉:
font-size: 1.5em;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
white-space: nowrap;
Hexo有pacman更精采
在文件pacman/source/css/_partial/article.styl
中找到如下代码
ul li>code,ol li>code,p code,strong code,em code
font-family font-mono
background color-code
color darken(color-font,10%)
border 1px solid darken(color-code,10%)
padding 0 5px
margin 0 2px
font-size 90%
white-space nowrap
text-shadow 0 1px #fff
然后删掉
white-space nowrap
并加上
word-wrap break-word
修改后的代码如下
ul li>code,ol li>code,p code,strong code,em code
font-family font-mono
background color-code
color darken(color-font,10%)
border 1px solid darken(color-code,10%)
padding 0 5px
margin 0 2px
font-size 90%
text-shadow 0 1px #fff
word-wrap break-word
想要改一个archive的titile,看ejs的代码是一个page.*的变量
找了半天没找到在哪...是全局变量吗?比如page.category,page.archieve
When I write in the _config.yml
#### Author information
author:
google_plus: 116338260303228776998
intro_line1: "Hello ,I'm Larry Page in Google." ## eg: "Hello ,I'm Larry Page in Google."
intro_line2: "This is my blog,believe it or not." ## eg: "This is my blog,believe it or not."
weibo: ## e.g. 436062867 for http://weibo.com/436062867
twitter: test ## e.g. yangjiansky for https://twitter.com/yangjiansky
github: test ## e.g. A-limon for https://github.com/A-limon
facebook: test ## e.g. yangjian for https://favebook.com/yangjian
tsina: ## e.g. 1664838973 Your weibo ID,It will be used in share button.
我直接git clone到themes目录下,并没有做任何修改。发现有如下问题:
以上问题在light主题都不会出现。
我的版本信息:
sunnogo@a3e420:~/github/hexo$ hexo version
hexo: 2.3.0
os: Linux 3.8.0-34-generic linux ia32
http_parser: 1.0
node: 0.11.10-pre
v8: 3.22.24.5
uv: 0.11.15
zlib: 1.2.3
modules: 13
openssl: 1.0.
PS:我是一个对前端一点都不了解的嵌入式码农,超喜欢这个主题,但是却不知道改哪。很期待您的回复。
主题非常好,特别感谢,期待尽快支持hexo 3并能支持修改导航栏高度,谢谢
近期因工作原因,好久没有继续完善主题。感谢社区中的其他同学的pull requests和对issue的回答和处理。
计划开发一个新版以支持最新的Hexo3.0。 如果你有什么意见或想法,可以在此回复,谢谢。
When I use this excellent theme, I found the author image on the foot did not shown, and I checked the css styles and found "background: no-repeat url("img/author.jpg") left top;"
, then I went through the code and found this line background no-repeat url(root+author-img) left top
in file source/css/_partial/footer.styl
, it seems the value of root is ""(empty), so I added a root: /
configuration item in _config.yml
and it worked as the styles changed to "background: no-repeat url("/img/author.jpg") left top;"
. Is it a bug or I missed some configuration?
自己感觉贝米(baye.me)的评论系统更简洁,也支持gravatar。想添加贝米的评论系统。但是自己改了半天总是添加不上,特来求助theme的原作者。
感谢!
最近一次git pull
之后出现如下错误,但是如果新建一个 Hexo 项目,用 Pacman 主题则没问题。
TypeError: /home/zzz/blog_hexo/themes/pacman/layout/layout.ejs:85
83|
84|
85| <%- partial('_partial/header') %>
86|
/home/zzz/blog_hexo/themes/pacman/layout/_partial/header.ejs:20
18| <% } %>
19|
20| <% if (theme.google_cse.enable){ %>
21|
22| Search
23|
Cannot read property 'enable' of undefined
at eval (eval at (/usr/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:237:14), :29:1321)
at eval (eval at (/usr/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:237:14), :30:115)
at /usr/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:250:15
at Object.exports.render (/usr/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:288:13)
at module.exports (/usr/lib/node_modules/hexo/lib/plugins/renderer/ejs.js:5:14)
at Object.exports.renderSync (/usr/lib/node_modules/hexo/lib/core/render.js:131:12)
at render (/usr/lib/node_modules/hexo/lib/plugins/helper/partial.js:28:22)
at Object.module.exports as partial
at eval (eval at (/usr/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:237:14), :29:3285)
at eval (eval at (/usr/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:237:14), :29:3710)
非常感谢你的pacman主题,有一个问题,我使用hexo new
创建的帖子会加上title,layout,data,tag
这几个标头,除了title和tag在paceman主题上使用正常,data,layout加上就不正常了,有时候我修改内容的时候还希望blog能够按照创建的顺序排序,所以我觉得data还是蛮重要的。
不知道是不是我设置的问题,使用标签显示摘要,不起作用。使用其他主题是正常的。
我在variable.styl中并没有找到可以修改logo大小的属性,请问作者这个是不可调整的吗?
ie8下边好像很多东西都显示不出来
使用这个主题后,但就是作者的头像不显示,请问如何设置呢?
hello,I love your theme very much. And I found that you start update your theme(that's great ). But, there are still some bugs or questions ,such as , the search box , and how to resize the post font size , and how to change duoshuo's theme .
如题
hello,your pacman theme looks very beautiful.And I want to know how to hide the sidebar defaultly.
在hexo issue中提到了代码高亮问题,我也遇到了这个,后来看到_config.yml中缺少
highlight:
enable: true
我是在这样改着用的。
*斜体*
会显示为**粗体**
应该是这样的
斜体 粗体
jacman,landscape等主题无此问题
我是小白,不会改,就提交下问题吧:-)
楼主好,非常欣赏您的Pacman主题,但在 Mac 上尝试半天一直显示错误,无法解决。具体描述如下:
当前的显示界面如下图:
重新按照您的博客教程安装,发现在“修改博客目录下_config.yml文件”这一项没有找到所谓的“同时请设置stylus属性中的compress值为true。”我在_config.yml 文件中,没有搜索到stylus,故无法设置其属性。
另,ejs,stylus,marked插件都已装好,package.json文件如下:
"name": "hexo-site", "version": "2.8.3", "private": true, "dependencies": { "hexo-generator-feed": "^0.2.1", "hexo-generator-sitemap": "^0.2.0", "hexo-renderer-ejs": "^0.1.0", "hexo-renderer-marked": "^0.1.0", "hexo-renderer-stylus": "^0.1.0" }
我是第一次安装自己的博客系统,纯小白一个,忘楼主不吝赐教!多谢了!
另,安装另一个主题 modernist ,界面显示是正常的。
我用了基于pacman的主题,目前无法按照code显示
现在的主题并没有切换语言的地方
如题。。。我这测试的有点问题。
你好,我是用了Pacman主题,但是为什么代码的显示和你的不一样呢,不是黑底的,还是白的。。。求助
最近觉得pacman的代码高亮不是很酷炫啊,想换成google-code-prettify,但是CSS和JS代码不知道加在哪啊?有人可以告诉我一下吗?
你好,我想修改code
标签的样式,即markdown里用引号围起来的段的颜色。
但是不知道再哪里修改。
我尝试在code.styl中添加如下片段,但是失败了。
.article-content
code
font-family font-mono
background highlight-red
text-shadow: 0 1px #fff //none
padding: 0 0.3em //0
我想知道具体应该去哪里修改。
fork你的主题 文章没有toc呢 在配置里设置了True也没有 Thx
我在自己blog的根目录下的source下加上可categories和tags两个文件夹
并且分别得加上了index.md
layout: tags
和
layout: categories
但是我的主页还是没有分类和标签两个东西
但是我还是可以进 http://127.0.0.1:4000/categories/ 和 http://127.0.0.1:4000/tags/
@A-limon @fmagnan @htynkn @AndriyLin @bitdeli-chef
RT 其他主题不会出现这种问题。是md生成的html被当做一个字符串编码了么?求解 谢谢~
我的搜索框输入内容查找不起作用,需要怎么修改呢??
您好,我看到您的博客根目录下有个为 Pacman 架设的demo,http://yangjian.me/pacman
但是我看了您博客的源码https://github.com/A-limon/a-limon.github.com,并没有找到有为pacman专建的文件。请问您是如何实现http://yangjian.me/pacman的?
页面中多说的js一直加载不成功: http://static.duoshuo.com/embed.js
建议把这个功能下线了吧.
<p itemprop="description" ><%= strip_html(item.excerpt).replace(/^\s*/, '').replace(/\s*$/, '').substring(0, 140) %></p>
使用 <%= strip_html(item.content) ...
的方式,是否會造成如果文章是代碼開頭,導致 <
>
... 等類似的字符直接被顯示出來。
後來在修改的部分,我採用 <%- strip_html(item.content) ...%>
取代。
pcaman 設計真的太好了!自己開的一個暗色系的 moman
教程里好像没有提到这一点
操作系统是 Ubuntu 12.04.3 LTS
[email protected] /home/jacarri/git/test2
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
└─┬ [email protected]
├── [email protected]
└─┬ [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
└─┬ [email protected]
└── [email protected]
jacarri@ubuntu:~/git/test2$ sudo hexo s --debug
[debug] 18:38:54.687 Config file loaded from /home/jacarri/git/test2/_config.yml
[debug] 18:38:54.694 Version info checked successfully
[debug] 18:38:54.726 Loading database.
[debug] 18:38:54.784 Processed: draft.md (3ms)
[debug] 18:38:54.784 Processed: page.md (2ms)
[debug] 18:38:54.786 Processed: photo.md (4ms)
[debug] 18:38:54.786 Processed: post.md (3ms)
[debug] 18:38:54.819 Plugin loaded successfully: hexo-renderer-ejs
[debug] 18:38:54.870 Plugin loaded successfully: hexo-renderer-marked
[debug] 18:38:54.967 Plugin loaded successfully: hexo-renderer-stylus
[debug] 18:38:54.970 Script load successfully: fancybox.js
[debug] 18:38:55.002 Processed: _posts/hello-world.md (5ms)
[debug] 18:38:55.023 Processed: source/font/FontAwesome.otf (2ms)
[debug] 18:38:55.023 Processed: source/font/coveredbyyourgrace-webfont.eot (0ms)
[debug] 18:38:55.024 Processed: source/font/coveredbyyourgrace-webfont.svg (0ms)
[debug] 18:38:55.025 Processed: source/font/coveredbyyourgrace-webfont.ttf (1ms)
[debug] 18:38:55.029 Processed: source/font/coveredbyyourgrace-webfont.woff (0ms)
[debug] 18:38:55.030 Processed: source/font/fontawesome-webfont.eot (1ms)
[debug] 18:38:55.030 Processed: source/font/fontawesome-webfont.svg (0ms)
[debug] 18:38:55.032 Processed: source/font/fontawesome-webfont.ttf (0ms)
[debug] 18:38:55.032 Processed: source/font/fontawesome-webfont.woff (0ms)
[debug] 18:38:55.033 Processed: source/img/author.jpg (0ms)
[debug] 18:38:55.034 Processed: source/img/favicon.ico (0ms)
[debug] 18:38:55.035 Processed: source/img/logo.svg (0ms)
[debug] 18:38:55.035 Processed: source/img/pacman.jpg (0ms)
[debug] 18:38:55.036 Processed: source/js/jquery-2.1.0.min.js (0ms)
[debug] 18:38:55.036 Processed: source/css/style.styl (0ms)
[debug] 18:38:55.036 Processed: source/css/_base/code.styl (0ms)
[debug] 18:38:55.037 Processed: source/css/_base/font.styl (0ms)
[debug] 18:38:55.037 Processed: source/css/_base/public.styl (0ms)
[debug] 18:38:55.038 Processed: source/css/_base/variable.styl (0ms)
[debug] 18:38:55.038 Processed: source/css/_partial/article.styl (0ms)
[debug] 18:38:55.038 Processed: source/css/_partial/aside.styl (0ms)
[debug] 18:38:55.039 Processed: source/css/_partial/duoshuo.styl (0ms)
[debug] 18:38:55.039 Processed: source/css/_partial/footer.styl (0ms)
[debug] 18:38:55.039 Processed: source/css/_partial/gallery.styl (0ms)
[debug] 18:38:55.040 Processed: source/css/_partial/header.styl (1ms)
[debug] 18:38:55.040 Processed: source/css/_partial/helper.styl (0ms)
[debug] 18:38:55.040 Processed: source/css/_partial/index.styl (0ms)
[debug] 18:38:55.041 Processed: source/fancybox/blank.gif (1ms)
[debug] 18:38:55.041 Processed: source/fancybox/fancybox_loading.gif (0ms)
[debug] 18:38:55.042 Processed: source/fancybox/[email protected] (1ms)
[debug] 18:38:55.042 Processed: source/fancybox/fancybox_overlay.png (0ms)
[debug] 18:38:55.043 Processed: source/fancybox/fancybox_sprite.png (1ms)
[debug] 18:38:55.043 Processed: source/fancybox/[email protected] (0ms)
[debug] 18:38:55.044 Processed: source/fancybox/jquery.fancybox.css (0ms)
[debug] 18:38:55.044 Processed: source/fancybox/jquery.fancybox.js (0ms)
[debug] 18:38:55.045 Processed: source/fancybox/jquery.fancybox.pack.js (0ms)
[debug] 18:38:55.045 Processed: source/fancybox/helpers/fancybox_buttons.png (0ms)
[debug] 18:38:55.046 Processed: source/fancybox/helpers/jquery.fancybox-buttons.css (1ms)
[debug] 18:38:55.046 Processed: source/fancybox/helpers/jquery.fancybox-buttons.js (0ms)
[debug] 18:38:55.047 Processed: source/fancybox/helpers/jquery.fancybox-media.js (0ms)
[debug] 18:38:55.047 Processed: source/fancybox/helpers/jquery.fancybox-thumbs.css (0ms)
[debug] 18:38:55.048 Processed: source/fancybox/helpers/jquery.fancybox-thumbs.js (0ms)
[debug] 18:38:55.055 Processed: layout/archive.ejs (39ms)
[debug] 18:38:55.062 Processed: layout/category.ejs (46ms)
[debug] 18:38:55.063 Processed: layout/index.ejs (47ms)
[debug] 18:38:55.066 Processed: layout/layout.ejs (49ms)
[debug] 18:38:55.067 Processed: layout/page.ejs (50ms)
[debug] 18:38:55.067 Processed: layout/post.ejs (50ms)
[debug] 18:38:55.067 Processed: layout/tag.ejs (50ms)
[debug] 18:38:55.068 Processed: layout/_widget/archive.ejs (51ms)
[debug] 18:38:55.068 Processed: layout/_widget/category.ejs (51ms)
[debug] 18:38:55.075 Processed: layout/_widget/links.ejs (58ms)
[debug] 18:38:55.076 Processed: layout/_widget/rss.ejs (59ms)
[debug] 18:38:55.079 Processed: layout/_widget/tag.ejs (60ms)
[debug] 18:38:55.091 Processed: layout/_widget/tagcloud.ejs (73ms)
[debug] 18:38:55.095 Processed: layout/_partial/after_footer.ejs (77ms)
[debug] 18:38:55.095 Processed: layout/_partial/archive.ejs (77ms)
[debug] 18:38:55.100 Processed: layout/_partial/article.ejs (82ms)
[debug] 18:38:55.100 Processed: layout/_partial/categories.ejs (82ms)
[debug] 18:38:55.100 Processed: layout/_partial/footer.ejs (82ms)
[debug] 18:38:55.101 Processed: layout/_partial/google_analytics.ejs (82ms)
[debug] 18:38:55.101 Processed: layout/_partial/head.ejs (82ms)
[debug] 18:38:55.101 Processed: layout/_partial/header.ejs (82ms)
[debug] 18:38:55.101 Processed: layout/_partial/pagination.ejs (82ms)
[debug] 18:38:55.102 Processed: layout/_partial/search.ejs (83ms)
[debug] 18:38:55.102 Processed: layout/_partial/sidebar.ejs (83ms)
[debug] 18:38:55.102 Processed: layout/_partial/tags.ejs (82ms)
[debug] 18:38:55.102 Processed: layout/_partial/post/article.ejs (82ms)
[debug] 18:38:55.106 Processed: layout/_partial/post/catetags.ejs (86ms)
[debug] 18:38:55.107 Processed: layout/_partial/post/comment.ejs (87ms)
[debug] 18:38:55.107 Processed: layout/_partial/post/footer.ejs (87ms)
[debug] 18:38:55.107 Processed: layout/_partial/post/gallery.ejs (87ms)
[debug] 18:38:55.107 Processed: layout/_partial/post/header.ejs (87ms)
[debug] 18:38:55.108 Processed: layout/_partial/post/jiathis.ejs (88ms)
[debug] 18:38:55.108 Processed: layout/_partial/post/pagination.ejs (87ms)
[debug] 18:38:55.112 Theme config loaded
[debug] 18:38:55.113 Processed: _config.yml (98ms)
[debug] 18:38:55.130 Processed: languages/default.yml (115ms)
[debug] 18:38:55.131 Processed: languages/zh-CN.yml (115ms)
[debug] 18:38:55.132 Processed: languages/zh-TW.yml (116ms)
[debug] 18:38:55.163 Generator: archive (18ms)
[debug] 18:38:55.163 Generator: category (0ms)
[debug] 18:38:55.164 Generator: home (1ms)
[debug] 18:38:55.165 Generator: page (1ms)
[debug] 18:38:55.166 Generator: post (1ms)
[debug] 18:38:55.167 Generator: tag (0ms)
[debug] 18:38:55.176 Generator: asset (8ms)
[info] 18:38:55.187 Hexo is running at http://0.0.0.0:4000/. Press Ctrl+C to stop.
[debug] 18:39:01.964 Render index:
GET / 200 89.024 ms - -
GET /img/logo.svg 200 15.274 ms - -
GET /js/jquery-2.1.0.min.js 200 71.496 ms - -
比如Archive初始地址为localhost:4000/archive,但是进入一个博客文章后即变为localhost:4000/日期/博客标题/archive格式,结果链接就失效了
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.