Jacman topic configuration of hexo, hexojacman topic

Source: Internet
Author: User

Jacman topic configuration of hexo, hexojacman topic
For more information, please visit my website or csdn or blog

At this time, the topic I used when building my blog was modified based on pacman. At the same time, I also used wuchong and he was still updating it. Some of my basic configurations at the moment;

To close the article, click:

Use github and hexo to build a static blog
Jacman topic configuration of hexo
Hexo blog Configuration

1 install jacman

Open the terminal in your blog directory and execute the following command:

If you are using windows, open git bash. At the same time, jacman requires that the hexo version be later than 2.7.

git clone https://github.com/wuchong/jacman.git themes/jacman
2. Change your topic to jacman.

Modify the theme attribute in the _ config. yml configuration file under the root directory of your blog and set it to jacman.

theme: jacman
3. Configure config in the main blog directory

Note: Each ':' contains a space. Otherwise, an error occurs.
If you want to use my configuration directly, remember to change my part to yours.
The following direct replication is available:

# Hexo Configuration # Docs: http://hexo.io/docs/configuration.html## Source: https://github.com/hexojs/hexo/# Site title subtitle description author email here is where you can change part of the title: rlovepsubtitle: Coder, Machine learningdescription: peace's blog android | java | html | python | machine learningauthor: Peacelanguage: zh-SwF: w_peace12@163.com # contact email # URL # If your site is put in a subdirectory, set url as 'HTTP: // yoursite.com/child' and root as '/child/' url: http://rlovep.comroot:/permalink: year/: month/: day/: title/permalink_defaults: # Directorysource_dir: sourcepublic_dir: publictag_dir: tagsarchive_dir: Category: categoriescode_dir: downloads/codei18n_dir: langskip_render: # Writingnew_post_name: title. md # File name of new Generation: posttitlecase: false # Transform title into release: true # Open external links in new tabmax_open_file: 100multi_thread: Balance: 0render_drafts: Balance: falsefuture: truehighlight: enable: true line_number: true tab_replace: # Category & Tagdefault_category: uncategorizedcategory_map: tag_map: # Date/Time format # Hexo uses Moment. js to parse and display date # You can customize the date format as defined in # Assets YYYY-MM-DDtime_format: HH: mm: ss # Pagination # Set per_page to 0 to disable paginationper_page: 10pagination_dir: page # Extensions # Plugins: Plugin-hexo-generator-feed-hexo-generator-baidu-sitemap # Themes: jacmanstylus: compress: true # Deployment # Docs: http://hexo.io/docs/deployment.htmlthis is the most important, for the normal creation of the customer deploy: type: git repository: git@github.com: wpeace1212/wpeace1212.github. io. git branch: master
4. config configuration in the topic directory

Here, you can directly copy the available information and modify it with the annotation;
Note: The description must be in English format, especially when # is used;

##### Menu: Home | Home:/archive | Archives:/archives overview | About: /about # you can create 'tags' and 'categories 'folders in '.. /source '. # And create a 'index. md 'file in each of them. # set 'front-matter 'as # layout: tags (or categories) # title: tags (or categories) ###### display part on the right, sort by order. I used the classification, tag, Link, weibo, rsswidgets:-category-tag-links-weibo-rss # Return to the top button, totop. In the lower right corner of the blog, the top button totop: true # if you want to scroll to top in every post set the value to true #### RSS address: /atom. xml ## RSS address. #### Image. Including a variety of images, you can find a variety of images under the source imgfile under the jacman topic, you want to change to your direct change is OK, of course, the name extension is best to use the same imglogo: enable: true ## display image logo true/false. src: img/logo.png ##'. svg 'and '.png' are recommended, please put image into the theme folder '/jacman/source/img '. favicon: img/favicon. ico ## size: 32px * 32px ,'. ico 'is recommended, please put image into the theme folder'/jacman/source/img '. apple_icon: img/jacman.jpg # size: 114 p X * 114px, please put image into the theme folder '/jacman/source/img '. author_img: img/author.jpg # size: 220px * 220px. display author avatar picture. if don't want to display, please don't set this. banner_img: # img/banner.jpg # size: 1920px * 200px +. banner Picture ### Theme Color theme_color: theme: '# 2ca6cb' # the defaut theme color is blue # code highlight topic # available: default | nighthighlight_theme: default ### first Whether to expand the page. The default value is expanded. Read More is displayed. Index: expand: true # default is unexpanding, so you can only see the short description of each post. excerpt_link: Read More ### whether to automatically close the sidebar close_aside: false # close sidebar in post page if truemathjax: false # enable mathjax if true ## Creative Commons License Support, see http://creativecommons.org/### you can choose: by, by-nc, by-nc-nd, by-nc-sa, by-nd, by-sa, zerocreative_commons: non E #### the author information is displayed at the bottom of the website. It mainly includes text descriptions and images. There are also various links including Weibo. Replace it with your id. author: intro_line1: "Hello, I'm onePeace Page in csdn. "## your introduction on the bottom of the page intro_line2:" Stay hungary, stay foolish. "## the 2nd line weibo: 2026326475 ## e.g. wuchong1014 or 2176287895 for http://weibo.com/2176287895 weibo_verifier: 039d33aa # e.g. b3593ceb Your weibo-show widget verifier, if you use weibo-show it is needed. tsina: 2026326475 # e.g. 217628789 5 Your weibo ID, It will be used in share button. douban: # e.g. wuchong1014 or your id for https://www.douban.com/people/wuchong1014 zhihu: wang-he-ping-78 # e.g. jark for http://www.zhihu.com/people/jark email: w_peace12@163.com # e.g. imjark@gmail.com twitter: wpeace1212 # e.g. jarkwu for https://twitter.com/jarkwu github: wpeace1212 # e.g. facebook: 1 wuchong for https://github.com/wuchong 00006871362068 # e.g. imjark for https://facebook.com/100006871362068 linkedin: wpeace1212 # e.g. wuchong1014 for https://www.linkedin.com/in/wuchong1014 google_plus: wpeace1212 # e.g. "111190881341800841449" for https://plus.google.com/u/0/111190881341800841449, the "is needed! Stackoverflow: # e.g. 3222790 for the http://stackoverflow.com/users/3222790/jark## if you set them, the corresponding share button will show on the footer #### directory, whether to display the directory in the article. Displayed on the sidebar; toc: article: true # show contents in article. aside: true # show contents in aside. # you can set both of the value to true of neither of them. # if you don't want display contents in a specified post, you can modify 'front-matter 'and add 'toc: false '. #### link links: developer headlines: http://toutiao.io/peace in csdn: http://blog.csdn.net/peace1213 blog Park: http://www.cnblogs.com/onepeace/#### comments domestic use to say very much Okay. Register an account and write it here as okduoshuo_shortname: rlovep # e.g. wuchong your duoshuo short name. disqus_shortname: # e.g. wuchong your disqus short name. #### share the topic. falsejiathis: enable: false # if you use jiathis as your share tool, the built-in share tool won't be displayed. id: ## e.g. 1889330 your jiathis ID. tsina: # e.g. 2176287895 Your weibo id, It will be used in share button. #### website statistics: I use cnzz to count google_anal Ytics: enable: false id: # google analytics ID. site: # website address. # You MUST upgrade to Universal Analytics first! # Https://developers.google.com/analytics/devguides/collection/upgrade? Hl = zh_CNbaidu_tongji: enable: false sitecode: 140e36c412afe791813036c83f602b ## e.g. e6d1f421bbc9962127a50488f9ed37d1 your baidu tongji site codecnzz_tongji: enable: true siteid: 1255712369 # e.g. 1253575964 your cnzz tongji site id #### MiscellaneousShowCustomFont: true ## you can change m font in 'variable. styl 'and' font. styl 'which in the theme folder'/jacman/source/css '. fancybox: true # if you use gallery post or want use fancybox please set the value to true. #### Custom Search: I use the _cse: enable: false cx: ## e.g. 018294693190868310296: abnhpuysycw your m Search ID. # https://www.google.com/cse/ # To enable the custom search You must create a "search" folder in '/source' and a "index. md "file # set the 'front-matter 'as # layout: search # title: search # --- baidu_search: # http://zn.baidu.com/enable: true id: 16217304412639601221 # e.g. "783281470518440642" for your baidu search id site: http://zhannei.baidu.com/cse/search # your can change to your site instead of the default sitetinysou_search: # http://tinysou.com/enable: false id: # e.g. "4ac092ad8d749fdc6293" for your tiny search id
5. Other Details

To enable Weibo show, you must fill in the tsina and weibo_verifier values under the author attribute, the former is your Weibo ID, the latter is the verification code of your Weibo show, access the http://app.weibo.com/tool/weiboshow in such as location, you can obtain your verifier, for example, my name is 039d33aa.

Author Information

Complete the author information as much as possible. Tsina is your Sina Weibo ID, which is different from the user name or Weibo Homepage Address. When this attribute is enabled, other users will automatically @ you when sharing your article on Weibo. At the same time, it works with weibo_verifier to generate Weibo shows. Intro_line1 and intro_line2 are personal introductions at the bottom of the website. Weibo, twitter, and facebook are used to display social buttons in the lower-right corner of a website.

Toc

Whether to enable the directory function in the article or sidebar. Both can be true or false. At the same time, if you want to disable the directory function in a specific article, you can add a line of toc: false in front-matter at the beginning of the article file. If you want to disable the automatic directory number function in an article, you can add a line of list_number: false to the front-matter at the beginning of the file. In addition, hexo 2.5.2 supports Chinese directories. For better experience, please upgrade your Hexo version.

Comment box

Enter the username that duoshuo_shortname says, and enable the comment system. A more useful comment system in mainland China.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.