Giter Site home page Giter Site logo

pacman's Introduction

A-limon

A-limon.github.io

pacman's People

Contributors

bitdeli-chef avatar htynkn avatar ptbsare avatar qingxiangchayun avatar xuankanglin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pacman's Issues

代码高亮

代码高亮配置

highlight:
  enable: true

要写到themes/pacman/_config.yml里吗?
我在根目录_config.yml里配置了,代码高亮css不生效,即themes/pacman/source/css/style.styl这段代码

if highlight
  @import '_base/code'

没执行

【细节】Archive页面

您好,您的主题真的是非常赞!在我使用的时候发现了一个小的细节问题:

在Archive页面中,如果文章的标题字数过多,各个方块高度就不一样,看起来就不整齐,我现在的处理方法是把超过的字省略掉:

font-size: 1.5em; 
overflow: hidden; 
text-overflow: ellipsis; 
word-break: break-all;
white-space: nowrap;

行内代码过长不会自动换行

行内代码不换行的解决方案

在文件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

No Google+ button at the bottom.

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.

The only github twitter and Facebook appears.No Google+
2014-06-23 9 30 08

2013-12-22master分支版本的页面显示问题

我直接git clone到themes目录下,并没有做任何修改。发现有如下问题:

  1. h1没有缩进,没有像h2、h3那样特殊处理;
  2. 表格没有缩进,表格默认没有画边框;
  3. 有序列表默认没有缩进,且列表的编号未显示出来。
  4. code会显示两行行号

效果图:
pacman

以上问题在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:我是一个对前端一点都不了解的嵌入式码农,超喜欢这个主题,但是却不知道改哪。很期待您的回复。

希望能更好的支持markdown的表格

希望能更漂亮的支持markdown表格,和代码。如图:
markdown table
pacman代码显示做的挺漂亮的,但是能不能更好的和markdown列表匹配一下,比如居中显示啦,边界不要超过列表的标志。
markdwon code

真心感觉这个模板,很漂亮。赞!!!

pacman主题新版开发计划

近期因工作原因,好久没有继续完善主题。感谢社区中的其他同学的pull requests和对issue的回答和处理。
计划开发一个新版以支持最新的Hexo3.0。 如果你有什么意见或想法,可以在此回复,谢谢。

the default author image not shown

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?

TypeError

最近一次git pull之后出现如下错误,但是如果新建一个 Hexo 项目,用 Pacman 主题则没问题。

TypeError: /home/zzz/blog_hexo/themes/pacman/layout/layout.ejs:85
83|
84|

85| <%- partial('_partial/header') %>
86|


87|

88| <%- body %>

/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还是蛮重要的。

    some problems

    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 .

    pacman代码高亮的问题

    在hexo issue中提到了代码高亮问题,我也遇到了这个,后来看到_config.yml中缺少
    highlight:
    enable: true
    我是在这样改着用的。

    斜体会处理为粗体

    *斜体*会显示为**粗体**
    应该是这样的
    斜体 粗体
    jacman,landscape等主题无此问题
    我是小白,不会改,就提交下问题吧:-)

    pacman 主题打开显示错误,求指教!

    楼主好,非常欣赏您的Pacman主题,但在 Mac 上尝试半天一直显示错误,无法解决。具体描述如下:
    当前的显示界面如下图:

    pacman-1

    重新按照您的博客教程安装,发现在“修改博客目录下_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 ,界面显示是正常的。

    语言切换

    现在的主题并没有切换语言的地方

    hexo构建失败

    使用hexo构建失败了。报错如下:
    qq20140716-2 2x

    可能是主题的问题,换成官方的主题就不会失败了。

    你好,我是用了Pacman主题

    你好,我是用了Pacman主题,但是为什么代码的显示和你的不一样呢,不是黑底的,还是白的。。。求助

    markdown code color

    你好,我想修改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
    

    我想知道具体应该去哪里修改。

    TOC

    fork你的主题 文章没有toc呢 在配置里设置了True也没有 Thx

    摘要處理的細節

    _/partial/article.ejs

    <p itemprop="description" ><%= strip_html(item.excerpt).replace(/^\s*/, '').replace(/\s*$/, '').substring(0, 140) %></p>
    

    使用 <%= strip_html(item.content) ... 的方式,是否會造成如果文章是代碼開頭,導致 &lt &gt ... 等類似的字符直接被顯示出來。

    後來在修改的部分,我採用 <%- strip_html(item.content) ...%> 取代。

    pcaman 設計真的太好了!自己開的一個暗色系的 moman

    打开首页时,获取style.css,一直获取不到

    操作系统是 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 - -
    

    default

    为什么博客菜单栏地址会变

    比如Archive初始地址为localhost:4000/archive,但是进入一个博客文章后即变为localhost:4000/日期/博客标题/archive格式,结果链接就失效了

    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.