Giter VIP home page Giter VIP logo

jacman's Introduction

Jacman

中文说明

Jacman is a fresh looking and responsive theme for Hexo with more features and some build-in Chinese service based on Pacman.

Jacman support Hexo 3.0 now !

Demo

如何使用 Jacman 主题

Installation

Install

$ git clone https://github.com/wuchong/jacman.git themes/jacman

Jacman requires Hexo 2.7 and above.

Enable

Modify theme setting in blog folder _config.yml to jacman.

Update

cd themes/jacman
git pull origin master

please backup your _config.yml file before update.

Configuration

Modify settings in /themes/jacman/_config.yml. Learn More.

Features

  • menu
    Main navigation menu.
  • widget
    Widgets displaying in sidebar.The category,tag,rss,archive,tagcloud,links,weibo are supported.
  • Image
    Images about favicon, site logo, author image, banner image. Support different image styles like img-logo,img-topic,img-center etc.
  • index
    Two different home page display modes.You can visit Demo to check the difference.
  • author
    Author imformation, used to show your social network links on the bottom right. Including github, stackoverflow, twitter, facebook, linkedin, google+, weibo, douban, zhihu, email.
  • toc
    Show Table Of Contents in article & aside.
  • comments
    duoshuo & disqus & 网易云跟帖 & 畅言 are supported.
  • jiathis
    Build-in share tool or JiaThis share buttons at the bottom of articles.
  • Analytiscs
    Google analytics & Baidu tongji & CNZZ tongji are all supported.
  • Search
    Googlle Custom Search & Baidu Site Search & Tiny Search are supported.
  • totop
    Scroll to top
  • rss
    RSS subscription link (change if using Feedburner).
  • fancybox
    Enable Fancybox
  • custom theme color Mondify theme color in _config.yaml instead of finding unfamiliar stylus files.
  • others You can configure sidebar not show in post pages.

You can learn how to use them from Configuration.

Sites

If you are using Jacman,you can add your site here ! I'll push the available sites here.

License

MIT

jacman's People

Contributors

cheng1999 avatar disoul avatar graysongs avatar imzack avatar mutse avatar quanru avatar wilbeibi avatar wsgzao avatar wucao avatar wuchong avatar zhouyq avatar zoakerc 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jacman's Issues

Start to use branch dev

Beginning from today, I decide to use branch dev . And I will add new features and fix problems in the dev branch first. If they are stable, I will merge them to master.

So if you are focus the newest modifications of jacman, please focus dev.

首页不显示每一篇文章的评论数量

我的首页每一篇文章下面都显示“暂无评论”,或者连“暂无评论”四个字都没有,只有那个灰色的评论小图标,但是实际上每一篇文章进去以后都是有多说评论的,不知道该如何解决?我的网站是http://haomwei.com

关于Fenced code blocks 与 indented code blocks风格的建议

在文章中使用这两种风格的代码块,代码块的背景等这些显示都不同,而且相差特别大,举个例子缩进代码块是灰色背景,而围栏代码块即```围着的代码块,背景是纯黑的,建议统一一下,。

在这里写就是统一的

Fenced code blocks:使用```

class TextQuery {
plubic:
    using LineNo = vector<string>::size_type;
    TextQuery(std::ifstream &);
    QueryResult query(const string&) const;
private:
    shared_ptr<vector<string>> input;
    std::map<string, shared_ptr<std::set<LineNo>> result;
};

Indented code blocks:使用缩进

class TextQuery {
plubic:
    using LineNo = vector<string>::size_type;
    TextQuery(std::ifstream &);
    QueryResult query(const string&) const;
private:
    shared_ptr<vector<string>> input;
    std::map<string, shared_ptr<std::set<LineNo>> result;
};

Hexo2.8+存在的代码前后多出空行问题解决方案

由于在Hexo2.8+中对 util.highlight 文件进行了修改,导致现在大部分主题都存在代码前后多出空行的问题。详见issue hexojs/hexo#774 hexojs/hexo#792 hexojs/hexo#795

虽然目前已经有 fix 了,但是目测还不稳定,推荐大家暂时先用 2.7.1 版本。我也会持续跟踪这个bug,并反馈到这个 issue 下。

可以使用以下命令更换版本

npm uninstall hexo
npm install [email protected] -g

2014-9-30 update
e182a05 commit修复了该问题,大家可以更新到hexo最新版和jacman最新版尝试使用。

修改网站个人介绍后generate出错

我只要在主题目录的_config.yml中一修改作者介绍的那两句话,“Hello, I am Larry Page in Google.”和下面的那一行,在执行hexo generate的时候就会出错,提示如下:
[error] { name: 'HexoError',
reason: 'deficient indentation',
mark:
{ name: null,
buffer: '##### Menu\nmenu:\n Home: /\n Archives: /archives\n About: /about\n History: /history\n## you can create tags and categories folders in ../source.\n## And create a index.md file in each of them.\n## set front-matteras\n## layout: tags (or categories)\n## title: tags (or categories)\n## ---\n\n#### Widgets\nwidgets: \n- category\n- tag\n- links\n- rss\n## provide seven widgets:category,tag,rss,archive,tagcloud,links,weibo\n\n\n#### RSS \nrss: /atom.xml ## RSS address.\n\n#### Image\nimglogo:\n enable: true ## display image logo true/false.\n src: img/logo.png ## .svg and .png are recommended,please put image into the theme folder /jacman/source/img.\nfavicon: img/favicon.ico ## size:32px_32px,.ico is recommended,please put image into the theme folder /jacman/source/img. \napple_icon: img/jacman.jpg ## size:114px_114px,please put image into the theme folder /jacman/source/img.\nauthor_img: img/author.jpg ## size:220px*220px.display author avatar picture.if don't want to display,please don't set this.\n\n#### index post is expanding or not \nindex:\n expand: true ## default is unexpanding,so you can only see the short description of each post.\n excerpt_link: Read More \n \n#### Author information\nauthor:\n intro_line1: "Hello, I am Butcher.”\n intro_line2: “Welcome to my blog, enjoy it.”\n weibo: ## e.g. wuchong1014 or 2176287895 for http://weibo.com/2176287895\n weibo_verifier: ## e.g. b3593ceb Your weibo-show widget verifier ,if you use weibo-show it is needed.\n tsina: ## e.g. 2176287895 Your weibo ID,It will be used in share button.\n douban: ## e.g. wuchong1014 or your id for https://www.douban.com/people/wuchong1014\n zhihu: ## e.g. jark for http://www.zhihu.com/people/jark\n email: [email protected] ## e.g. [email protected]\n twitter: homyung ## e.g. jarkwu for https://twitter.com/jarkwu\n github: tufu9441 ## e.g. wuchong for https://github.com/wuchong\n facebook: ## e.g. imjark for https://facebook.com/imjark\n linkedin: ## e.g. wuchong1014 for https://www.linkedin.com/in/wuchong1014\n google_plus: ## e.g. "111190881341800841449" for https://plus.google.com/u/0/111190881341800841449, the "" is needed!\n stackoverflow: ## e.g. 3222790 for http://stackoverflow.com/users/3222790/jark\n## if you set them, the corresponding share button will show on the footer\n\n#### Toc\ntoc:\n article: false ## show contents in article.\n aside: false ## show contents in aside.\n## you can set both of the value to true of neither of them.\n## if you don't want display contents in a specified post,you can modify front-matter and add toc: false.\n\n#### Links\nlinks:\n 冲田杏梨: http://anri-okita.tumblr.com\n 羽中漫步: http://www.jzwalk.com\n 灰常记忆: http://bestcherish.com\n 怡红院落: http://imnerd.org\n 生活志: http://louishan.com\n 浩子: http://haozer.com\n 雅岚文艺博客: http://www.yalanbooks.net\n Sloger's Blog: http://blog.sloger.info\n\n \n\n#### Comment\nduoshuo_shortname: ## e.g. wuchong your duoshuo short name.\ndisqus_shortname: ## e.g. wuchong your disqus short name.\n\n#### Share button\njiathis:\n enable: false ## if you use jiathis as your share tool,the built-in share tool won't be display.\n id: ## e.g. 1889330 your jiathis ID. \n tsina: ## e.g. 2176287895 Your weibo id,It will be used in share button.\n \n#### Analytics\ngoogle_analytics:\n enable: false\n id: ## e.g. UA-46321946-2 your google analytics ID.\n site: ## e.g. wuchong.me your google analytics site or set the value as auto.\n## You MUST upgrade to Universal Analytics first!\n## https://developers.google.com/analytics/devguides/collection/upgrade/?hl=zh_CN\nbaidu_tongji:\n enable: false\n sitecode: ## e.g. e6d1f421bbc9962127a50488f9ed37d1 your baidu tongji site code\ncnzz_tongji:\n enable: false\n siteid: ## e.g. 1253575964 your cnzz tongji site id\n\n#### Miscellaneous\nShowCustomFont: true ## you can change custom font in variable.styl and font.styl which in the theme folder /jacman/source/css.\nfancybox: true ## if you use gallery post or want use fancybox please set the value to true.\ntotop: true ## if you want to scroll to top in every post set the value to true\n\n\n#### Custom Search\ngoogle_cse: \n enable: false\n cx: ## e.g. 018294693190868310296:abnhpuysycw your Custom Search ID.\n## https://www.google.com/cse/ \n## To enable the custom search You must create a "search" folder in '/source' and a "index.md" file\n## set the 'front-matter' as\n## layout: search \n## title: search\n## ---\nbaidu_search: ## http://zn.baidu.com/\n enable: false\n id: ## e.g. "783281470518440642" for your baidu search id\n site: http://zhannei.baidu.com/cse/search ## your can change to your site instead of the default site\n\u0000',
position: 1292,
line: 41,
column: 2 },
message: 'Process failed: _config.yml',
domain:
{ domain: null,
_events: { error: [Function] },
_maxListeners: 10,
members: [ [Object] ] },
domainThrown: true,
stack: undefined }

经过反复试验,我确定只要修改了这里就会出现这种状况,把那两句话恢复原状后回到正常。

comment插件不显示

在pc上评论不显示 但是在pad和iphone上可以显示 目录也是这样 这是什么问题

Jacman对Google+的解析问题

就以我的为例
设置了g+的ID之后,文章的“作者链接”点进去就是g+的页面,但是很奇怪我的显示的是404
(1)https://plus.google.com/115880271286802330000?rel=author?rel=author
但是这个链接是可以正常访问的
(2)https://plus.google.com/115880271286802328613/posts
而wuchong你的作者链接,也是(1)这么显示的,但是点击之后会跳转到(2),所以可以正常访问
不知道是我的问题还是怎么回事

另外,觉得这种设置不是很合理,还是改成访问about页面最好
跟页面底部的作者那个链接一致,想看g+的可以直接访问页面底部的g+图标

很抱歉我不会改代码,只好提提建议了

可以增加swiftype搜索吗?

谷歌搜索速度慢,百度的又不支持直接用github地址,我只好用了tinysou做页面搜索。。。

有个swiftype做的很好,跟tinysou很相似,甚至比tinysou更好用,只不过是英文的。。

我发现tinysou有个问题。。就是在弹出搜索结果后,它会改变当前页面的url,这时候如果刷新页面,就又会弹出搜索结果,很不爽。。。swiftype就不会这样😊

其实我原本想把tinysou改成在新页面显示结果,但是搞了好久也弄不好。。

所以总结起来就是两个需求∶

  1. 把tinysou改成新页面显示
  2. 增加swiftype
    能增加任意一个功能就好了😁

after_footer.ejs 57 58行

h = $('article h2')
ah = $('article h2'),
两个都一样的不科学啊,下面应该是h3吧,我文章内容没有加h2标题都是h3的然后生成的目录被隐藏掉了

首页无法显示公式

在首页中,文章中的mathjax公式都显示不出来,请问是我设置不对么还是什么原因呢。

首页是自动生成的还是自己手写?

gh-pages中的index.html是怎么生成的

我的只能进入每个文章,文章的url都是日期+题目那种
我知道首页对应的是index.html,这个是得自己手写吗?

Markdown里四个空格的代码框会溢出

一行前面加四个空格会变成代码框,但在jacman里多了会溢出

hello world!

在code.styl里加下面这句overflow auto就好了
$code-block
background highlight-background
margin 0.5em 0
padding 1em 2%
overflow auto
color highlight-foreground
line-height line-height
font-size font-size

另外
代码框在手机端很小,个人感觉pacman的处理比较好

文章title中#的转义问题

直接使用#,会导致该字符及以后内容消失。
比如

title: Codeforces Beta Round #72

会变成

title: Codeforces Beta Round 

如果加上反斜杠转义,会变成

title: Codeforces Beta Round \#72

何以教我?

关于h1标签

在首页,站点名及文章标题都是h1标签,似乎不是很合适

代码高亮是要再自已添加吗?

我下载了此主题生成站点后,算是正常,但所有的代码块都是白底黑字没有样式。看DEMO的代码块是黑底彩字很漂亮,这个是要自己额外添加高亮模块吗?

if you want to build a 'about me' page

  • open the _config.yml in the root directory.
    add
about_dir: about

in the url block.

and create a new folder in soruce named about.
Then create a index.md in about folder.

归档页面中的一个细微问题

你好!
发现了个问题。当博客目录下的_config.vml中的语言为空时,此时应该为英语,但是archive页面中的左边部分,日期显示仍然为中文。
希望解决下!
谢谢!

微信社交按钮是否需要?

有网友向我反馈,希望在右下角的社交按钮处添加一个微信按钮,点开会弹出微信二维码。

有多少人需要这个功能呢?

关于google analysis 无法添加

我在配置文件里面设置了 google analysis ,但是没有js标签。 后来发现head.ejs里面没有加入这段js,请问下是什么原因。

关于subsite子目录的遗留问题

新的fix用过了,感谢
不过还遗留了一个问题,就是页面底部的作者链接并没有加上子目录前缀,会跳转到主站的about
在没设置G+的情况下,文章里的作者链接也是

disqus error

问题1:It looks like there was a problem: Error: Not enough data
1

问题2:

放在md文件中,不起作用.

问题3:
图片文章在首页显示不出来啊
3

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.