Giter Club home page Giter Club logo

maupassant-hexo's Introduction

Maupassant

Build Status GitHub license

大道至简

Preview中文文档

A simple Hexo template with great performance on different devices, ported from a Typecho theme by Cho, forked and modified from icylogic.

template preview

Installation

Install theme and renderers:

$ git clone https://github.com/tufu9441/maupassant-hexo.git themes/maupassant
$ npm install hexo-renderer-pug --save
$ npm install hexo-renderer-sass-next --save

Then change your theme setting in _config.yml to maupassant.

Configuration

Default config:

disqus:
  enable: false ## If you want to use Disqus comment system, please set the value to true.
  shortname: ## Your disqus_shortname, e.g. username
  api: ## You can visit Disqus comments in China mainland without barriers using Disqus API, e.g. https://disqus.skk.moe/disqus/
  apikey: ## Your API key obtained in Disqus API Application, e.g. yk00ZB1fjYGRkrCrDDRYDUjpp26GJWJiJRZQZ5SY0r3th5FMW6pnSzQMnWH7ua7r
  admin: ## Username of your Disqus moderator, e.g. username
  admin_label: ## The text of Disqus moderator badge, e.g. Mod
uyan: ## Your uyan_id. e.g. 1234567
livere: ## Your livere data-uid, e.g. MTAyMC8zMDAxOC78NTgz
changyan: ## Your changyan appid, e.g. cyrALsXc8
changyan_conf: ## Your changyan conf, e.g. prod_d8a508c2825ab57eeb43e7c69bba0e8b
gitalk: ## See: https://github.com/gitalk/gitalk
  enable: false ## If you want to use Gitment comment system please set the value to true.
  owner: ## Your GitHub ID, e.g. username
  repo: ## The repository to store your comments, make sure you're the repo's owner, e.g. gitalk.github.io
  client_id: ## GitHub client ID, e.g. 75752dafe7907a897619
  client_secret: ## GitHub client secret, e.g. ec2fb9054972c891289640354993b662f4cccc50
  admin: ## Github repo owner and collaborators, only these guys can initialize github issues.
valine: ## See: https://valine.js.org
  enable: false ## If you want to use Valine comment system, please set the value to true.
  appid: ## Your LeanCloud application App ID, e.g. pRBBL2JR4N7kLEGojrF0MsSs-gzGzoHsz
  appkey: ## Your LeanCloud application App Key, e.g. tjczHpDfhjYDSYddzymYK1JJ
  notify: false ## Mail notifier, see https://github.com/xCss/Valine/wiki/Valine-评论系统中的邮件提醒设置
  verify: false ## Validation code.
  placeholder: Just so so ## Comment box placeholders.
  avatar: "mm" ## Gravatar type, see https://github.com/xCss/Valine/wiki/avatar-setting-for-valine
  pageSize: 10 ## Number of comments per page.
  guest_info: nick,mail,link ## Attributes of reviewers.
minivaline: ## See: https://github.com/MiniValine/MiniValine
  enable: false ## If you want to use MiniValine comment system, please set the value to true.
  appId: ## Your LeanCloud application App ID, e.g. pRBBL2JR4N7kLEGojrF0MsSs-gzGzoHsz
  appKey: ## Your LeanCloud application App Key, e.g. tjczHpDfhjYDSYddzymYK1JJ
  placeholder: Write a Comment ## Comment box placeholder.
  adminEmailMd5: ## The MD5 of Admin Email to show Admin Flag.
  math: true ## Support MathJax.
  md: true ## Support Markdown.
  # MiniValine's display language depends on user's browser or system environment
  # If you want everyone visiting your site to see a uniform language, you can set a force language value
  # Available values: en  | zh-CN | (and many more)
  # More i18n info: https://github.com/MiniValine/minivaline-i18n
  lang:
waline: ## See: https://waline.js.org/
  enable: false ## If you want to use Waline comment system, please set the value to true.
  serverURL: ## Your server url, e.g. https://your-domain.vercel.app
  pageSize: 30 ## The desired number of comments shown in each page.
  wordLimit: 500 ## Limit the number of words in comments, 0 means no limit.
  requiredMeta: ['nick','mail'] ## Required user information, e.g. ['nick','mail','link']
  count: 5 ## The number comments displayed in the recent_comments widget, default is 10.
utterances: ## See: https://utteranc.es
  enable: false ## If you want to use Utterances comment system, please set the value to true.
  repo: ## The repository utterances will connect to, e.g. tufu9441/comments
  identifier: title ## The mapping between blog posts and GitHub issues.
  theme: github-light ## Choose an Utterances theme which matches your blog.
twikoo: ## See: https://twikoo.js.org
  enable: false ## If you want to use twikoo comment system, please set the value to true.
  envId: ## Tencent CloudBase envId
  region: ## Tencent CloudBase region, e.g. ap-shanghai
  path: ## Article path, e.g. window.location.pathname

google_search: true ## Use Google search, true/false.
baidu_search: false ## Use Baidu search, true/false.
swiftype: ## Your swiftype_key, e.g. m7b11ZrsT8Me7gzApciT
self_search: false ## Use a jQuery-based local search engine, true/false.
google_analytics: ## Your Google Analytics tracking id, e.g. UA-42425684-2
baidu_analytics: ## Your Baidu Analytics tracking id, e.g. 8006843039519956000
microsoft_clarity:  ## Your Microsoft Clarity tracking id, e.g. zg2ctuea9j
fancybox: true ## If you want to use fancybox please set the value to true.
show_category_count: false ## If you want to show the count of categories in the sidebar widget please set the value to true.
toc_number: true ## If you want to add list number to toc please set the value to true.
shareto: false ## If you want to use the share button please set the value to true, and you must have hexo-helper-qrcode installed.
busuanzi: false ## If you want to use Busuanzi page views please set the value to true.
wordcount: false ## If you want to display the word counter and the reading time expected to spend of each post please set the value to true, and you must have hexo-wordcount installed.
widgets_on_small_screens: false ## Set to true to enable widgets on small screens.
canvas_nest:
  enable: false ## If you want to use dynamic background please set the value to true, you can also fill the following parameters to customize the dynamic effect, or just leave them blank to keep the default effect.
  color: ## RGB value of the color, e.g. "100,99,98"
  opacity: ## Transparency of lines, e.g. "0.7"
  zIndex: ## The z-index property of the background, e.g. "-1"
  count: ## Quantity of lines, e.g. "150"
donate:
  enable: false ## If you want to display the donate button after each post, please set the value to true and fill the following items on your need. You can also enable donate button in a page by adding a "donate: true" item to the front-matter.
  github: ## GitHub URL, e.g. https://github.com/Kaiyuan/donate-page
  alipay_qr: ## Path of Alipay QRcode image, e.g. /img/AliPayQR.png
  wechat_qr: ## Path of Wechat QRcode image, e.g. /img/WeChatQR.png
  btc_qr: ## Path of Bitcoin QRcode image, e.g. /img/BTCQR.png
  btc_key: ## Bitcoin key, e.g. 1KuK5eK2BLsqpsFVXXSBG5wbSAwZVadt6L
  paypal_url: ## Paypal URL, e.g. https://www.paypal.me/tufu9441
post_copyright:
  enable: false ## If you want to display the copyright info after each post, please set the value to true and fill the following items on your need.
  author: ## Your author name, e.g. tufu9441
  copyright_text: ## Your copyright text, e.g. The author owns the copyright, please indicate the source reproduced.
love: false ## If you want the peach heart to appear when you click anywhere, set the value to true.
plantuml: ## Using PlantUML to generate UML diagram, must install hexo-filter-plantuml (https://github.com/miao1007/hexo-filter-plantuml).
  render: "PlantUMLServer" ##  Local or PlantUMLServer.
  outputFormat: "svg" ## common options: svg/png
copycode: true ## If you want to enable one-click copy of the code blocks, set the value to true.
dark: false ## If you want to toggle between light/dark themes, set the value to true.
totop: true ## If you want to use the rocketship button to return to the top, set the value to true.
external_css: false ## If you want to load an external CSS file, set the value to true and create a file named "external.css" in the source/css folder.
post_content_length: 180 ## Set the length of the post summary displayed on home page when no description written.

menu:
  - page: home
    directory: .
    icon: fa-home
  - page: archive
    directory: archives/
    icon: fa-archive
  - page: about
    directory: about/
    icon: fa-user
  - page: rss
    directory: atom.xml
    icon: fa-rss

widgets: ## Seven widgets in sidebar provided: search, info, category, tag, recent_posts, recent_comments and links.
  - search
  - info
  - category
  - tag
  - recent_posts
  - recent_comments
  - links

info:
  avatar: /img/avatar.png
  discription: To be a better man.
  outlinkitem:
    - name: twitter
      outlink: https://twitter.com/username
      message: Twitter
    - name: envelope
      outlink: mailto:[email protected]
      message: Email
    - name: github
      outlink: https://github.com/username
      message: Github
    - name: rss
      outlink: /atom.xml
      message: RSS

links:
  - title: site-name1
    url: http://www.example1.com/
    src: https://www.example1.com/favicon.ico
    desc: XXX's Blog
  - title: site-name2
    url: http://www.example2.com/
    src: https://www.example1.com/favicon.ico
    desc: YYY's Blog
  - title: site-name3
    url: http://www.example3.com/
    src: https://www.example3.com/favicon.ico
    desc: ZZZ's Blog

timeline:
  - num: 1
    word: 2014/06/12-Start
  - num: 2
    word: 2014/11/29-XXX
  - num: 3
    word: 2015/02/18-DDD
  - num: 4
    word: More

# Static files
js: js
css: css

# Theme version
version: 1.0.0
  • disqus - Disqus comment system, integrated with DisqusJS API.
  • uyan - Uyan id
  • livere - LiveRe data-uid
  • changyan - Changyan appid
  • gitalk - Gitalk comment system
  • valine - Valine comment system
  • minivaline - MiniValine comment system
  • waline - Waline comment system
  • utterances - Utterances comment system
  • twikoo - Twikoo comment system
  • google_search - Default search engine
  • baidu_search - Search engine for users in China
  • swiftype - Swiftype Search key
  • self_search - A jQuery-based local search engine, with the dependency on the plugin hexo-generator-search
  • google_analytics - Google Analytics tracking id
  • baidu_analytics - Baidu Analytics tracking id
  • microsoft_clarity - Microsoft Clarity tracking id
  • fancybox - Enable Fancybox
  • show_category_count - Show the count of categories in the sidebar widget
  • toc_number - Show the list number of toc
  • shareto - Enable share button, with the dependency on the plugin hexo-helper-qrcode
  • busuanzi - Enable Busuanzi page views
  • wordcount - Enable hexo-wordcount of each post
  • widgets_on_small_screens - Show the widgets at the bottom of small screens
  • canvas_nest - Enable canvas-nest.js dynamic background
  • donate - Enable donate button after each post
  • post_copyright - Enable copyright info after each post
  • love - Enable peach heart when clicking anywhere
  • plantuml - Enable PlantUML to generate UML diagram
  • copycode - Enable one-click copy of code blocks
  • dark - Enable to toggle between light/dark modes of the theme
  • totop - Enable the rocketship to-top button
  • external_css - Enable loading an external CSS file
  • post_content_length - Abstract length of each post
  • menu - Customize your menu of pages here, just follow the format of existied items. Don't forget to create corresponding folders inlcuding index.md in source folder to ensure the pages will correctly display. FontAwesome icon fonts have been integrated, and you can choose other icons which you like here and use them according to the instruction.
  • widgets - Choose and arrange the widgets in sidebar here.
  • info - Set your personal information of the info widget here.
  • links - Edit your blogroll here, and an independent blogroll page can be displayed by setting layout: blogroll of a page.
  • timeline - Show a timeline of the website by setting layout: timeline of a page.
  • Static files - Static files directory, for convenience of CDN usage.
  • Theme version - For automatic refresh of static files on CDN.

Features

Logo

You can set a favicon.ico for your website, please put it into source folder of hexo directory, recommended size: 32px*32px.

You can add a website logo for apple devices, please put an image named apple-touch-icon.png into source folder of hexo directory, recommended size: 114px*114px.

Abstract

You can control the abstract of a post shown at index, by either filling a description: item in front-matter of the post.md, or just inserting a <!--more--> before your hidden content.

Page

Create folders inlcuding index.md in source folder to add pages, and add a layout: page in front-matter of index.md. A tagcloud page can be enabled by setting layout: tagcloud of a page. If you need a single column page without sidebar, just set layout: single-column instead of layout: page.

Table of Contents

TOC in a post can be enabled by adding a toc: true item in front-matter.

Comments

Comment feature of each post and page can be enabled (default) and disabled by adding a comments: true or a comments: false in front-matter. This could be useful when you want comment feature for a guestbook page, but don't want comment feature for a about page.

Syntax Highlighting

Highlighted code showcase is supported, please set the highlight option in _config.yml of hexo directory like this:

highlight:
  enable: true
  auto_detect: true
  line_number: true
  tab_replace:

Math Equation

Add

mathjax: true

in Hexo's _config.yml.

In the post which you would like to use math equation, add mathjax: true in the front-matter. For example:

title: Test Math
date: 2016-04-05 14:16:00
categories: math
mathjax: true
---

The default math delimiters are $$...$$ and \\[...\\] for displayed mathematics, and $...$ and \\(...\\) for in-line mathematics.

However, if your post contains dollar signs ($), and they appear often in non-mathematical parts, in other words, you want to use $ as dollar sign not inline math delimiter, please add

mathjax2: true

in Hexo's _config.yml instead of mathjax: true. Correspondingly, add mathjax2: true to the front-matter of the post in which you would like to use math equation.

Languages

Seven languages are available for this theme currently: Simplified Chinese (zh-CN), Traditional Chinese (zh-TW), English (en), French (fr-FR), German (de-DE), Korean (ko) and Spanish (es-ES). Contributions of translating to other languages will be highly appreciated.

Solutions

  • Check whether your Terminal's current directory is in hexo's root directory which contains source/, themes/, etc.

  • If you have any trouble in using this theme, please feel free to open an issue.

Browsers Support

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
IE9+, Edge last 10 versions last 10 versions last 7 versions last 10 versions

Contributing

All kinds of contributions (enhancements, new features, documentation & code improvements, issues & bugs reporting) are welcome.

Looking forward to your pull request.

Contributors

Thanks for all contributors of this repo.

Maupassant on other platforms:

maupassant-hexo's People

Contributors

0x2ca avatar akazarenn avatar alxstu avatar chenzhongpu avatar cirry avatar cxgreat2014 avatar ekkog avatar flysnoworg avatar francisxkf avatar hiberabyss avatar icylogic avatar imaegoo avatar imliujun avatar justinchuby avatar linw1995 avatar mhuig avatar nfs1a avatar niko-karen avatar phenix93 avatar sabrinaluo avatar suradabang avatar thisiswyatt avatar tomket2 avatar tufu9441 avatar um-li avatar v123582 avatar vic020 avatar xuxiaoyuspallow avatar yiqiok avatar zklhp 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

maupassant-hexo's Issues

关于分类和标签页面的改进

@v123582 现在在某个分类或者标签页面时,导航栏中没有任何一项处于current状态,例如https://www.haomwei.com/categories/technology/ 页面显示效果如下:
qq 20160218100305

但是我希望处在某个分类或者标签页面时,导航栏中的“归档”一项能处于current状态,就像位于真正的归档页面时一样,例如:
qq 20160218101341

我觉得应该是修改layout/_partial/helpers.jade里的一些代码,但是试了好久也没有研究出来,不知你能否有空时帮我看看是否有可能实现呢?谢谢!

希望能够把代码块的字体改成等宽的

在style.scss的756行,原先是
font-family: Menlo;
使用你以前的style.scss改成了
font-family: "Input Mono", "PT Mono", Consolas, Monaco, Menlo, monospace;
代码还是要用等宽字体好看一点。

关于mathjax

很喜欢这个简洁的主题,��请问这个主题能支持mathjax吗?

category tags concatenated without spaces on posts page

Hi -
i was having an issue with your theme where multiple categories assigned to a post were being concatenated without spacing in between them on the posts page.

image

It may be a "hacky" fix, but I inserted a " " in posts.jade, line 13 a(href=url_for(category.path))= " " + category.name to produce the necessary spacing.

image

Wanted to give you a heads up. Thanks for the excellent theme!

关于归档分页

我看到你的Blog Home 可以分页 而 归档没有分页. 我设置了_config.yml的
per_page: 10
pagination_dir: page

好像就回连归档也分页 请问你的Blog怎么设置归档不分页的.

关于添加文章目录和文章分类、订阅

我看到你文章里有写很多问题的解决方案,帮忙解决了不少问题,先表示感谢。 然后,你提到的front-matter没有找到在哪里哦,所以目录和分类没法弄好,另外,订阅功能是怎么弄,需要安装什么吗?有空解答下,谢啦

分割线穿透了目录

理想的情况应该是像这个帖子里的前两条分割线一样
但是由二级标题自动生成的分割线就会穿透目录
总之,****** 的分割线没有问题,## Title自动加入的分割线就会有问题

字体问题

中文字体在chrome感觉好丑,如何修改字体

关于加入fork on github

楼主,我把fork的代码加在了base.jade中,发现这个编译的时候会自动给Img标签,套上一层a标签,目前没有找到在哪编译进去的,您知道吗。

npm install hexo-renderer-sass 失败

npm install hexo-renderer-sass build的时候失败。报的错误都是源代码build的错误,是否node.js版本或者其他什么东西的版本对不上号?我对node.js不熟。望赐教。十分感谢!

config.feed.type undefined

In file layout/base.jade line 8

case config.feed.type

This line introduced such error: Cannot read property 'type' of undefined

I modify you code as follows and it works.

if config.feed
  case config.feed.type
    when "rss2"
      - var feed_type='application/rss+xml'
    when "atom"
    default
      - var feed_type='application/atom+xml'

Maybe you did not meet such problem, but considering the config.feed first may be better.

不显示文章目录

您好哦,我的博客从 Jekkyl 迁移过来,与您的博客相比少了文章目录功能

不知道是我自己格式问题还是设置错误,还请帮忙看看哦

我的博客地址是: 饭窝

我的博客源码: github, hexo-source 分支

安装之后博客主页打不开

安装之后页面打开出现如下文本

extends base - var current_title = page.title || tag.name || category.name || site.title block title title= config.title + ' | ' + config.subtitle block content for post in page.posts.toArray() .post h2.post-title include _partial/helpers a(href=url_for(post.path)) +title(post) .post-meta= post.date.format(config.date_format) if theme.duoshuo a.ds-thread-count(data-thread-key=post.path, href=url_for(post.path) + '#comments') if theme.disqus a.disqus-comment-count(data-disqus-identifier=post.path, href=url_for(post.path) + '#disqus_thread') if post.description .post-content != post.description else if post.excerpt .post-content != post.excerpt else if post.content - var br = post.content.indexOf('\n') if br < 0 .post-content != post.content else .post-content != post.content.substring(0, br) p(class='readmore') a(href=url_for(post.path))= __('Readmore') include _partial/paginator if theme.disqus script(id='dsq-count-scr' src='//#{theme.disqus}.disqus.com/count.js' async)

请问是我缺少什么设置吗?

更新后首页错乱

最近一次更新添加了分享功能,但是开启后没有看到变化,反倒是首页导航图标和边栏位置错乱。

对Markdown的支持不够友好

当有序列表和无序列表嵌套使用的时候 存在bug
image
会出现 这样的布局

还有建议修改 引用标记的样式……
image

无法使用主题

在 0.0.0.0:4000 页面下显示:

extends base - var current_title = page.title || tag.name || category.name || site.title block title title= config.title + " | " + config.subtitle block content for post in page.posts.toArray() .post h2.post-title include _partial/helpers a(href=url_for(post.path)) +title(post) .post-meta= post.date.format(config.date_format) if theme.duoshuo span.ds-thread-count(data-thread-key=post.path) if theme.disqus span.disqus-comment-count(data-disqus-identifier=post.path) if post.description .post-content != post.description else if post.excerpt .post-content != post.excerpt else if post.content - var br = post.content.indexOf('\n') if br < 0 .post-content != post.content else .post-content != post.content.substring(0, br) p(class="readmore") a(href=url_for(post.path))= __('Readmore') include _partial/paginator if theme.disqus script(id='dsq-count-scr' src='//#{theme.disqus}.disqus.com/count.js' async)

about?

where is about/ and where is atom.xml?
How to setting?

markdown支持显示不对

楼主,你又改了什么。。新的主题 md的样式支持的不全了。。这样的不支持了 java 代码也换了

kr-KR.yml error

[root@hexo hexoblog]# hexo g && hexo s
ERROR Process failed: languages/kr-KR.yml
YAMLException: end of the stream or a document separator is expected at line 1, column 16:
    reading_label: %s 의 게시물 모음
                   ^
    at generateError (/root/hexoblog/node_modules/hexo/node_modules/js-yaml/lib/js-yaml/loader.js:162:10)
    at throwError (/root/hexoblog/node_modules/hexo/node_modules/js-yaml/lib/js-yaml/loader.js:168:9)
    at readDocument (/root/hexoblog/node_modules/hexo/node_modules/js-yaml/lib/js-yaml/loader.js:1508:5)
    at loadDocuments (/root/hexoblog/node_modules/hexo/node_modules/js-yaml/lib/js-yaml/loader.js:1544:5)
    at Object.load (/root/hexoblog/node_modules/hexo/node_modules/js-yaml/lib/js-yaml/loader.js:1561:19)
    at Hexo.yamlHelper (/root/hexoblog/node_modules/hexo/lib/plugins/renderer/yaml.js:7:15)
    at Hexo.tryCatcher (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/util.js:26:23)
    at Hexo.<anonymous> (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/method.js:15:34)
    at /root/hexoblog/node_modules/hexo/lib/hexo/render.js:51:21
    at tryCatcher (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromiseAtPostResolution (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/promise.js:245:10)
    at Async._drainQueue (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/root/hexoblog/node_modules/hexo/node_modules/bluebird/js/main/async.js:15:14)
    at processImmediate [as _immediateCallback] (timers.js:383:17)

Theme didn't work...

My environment is:

hexo: 3.1.1
os: Linux 3.13.0-32-generic linux x64
http_parser: 2.5.0
node: 5.0.0
v8: 4.6.85.28
uv: 1.7.5
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 56.1
modules: 47
openssl: 1.0.2d

when I try to use hexo g and hexo s then visit localhost:4000 I got this:

extends base - var current_title = page.title || tag.name || category.name || site.title block title title= config.title + " | " + config.subtitle block content for post in page.posts.toArray() .post h2.post-title include _partial/helpers a(href=url_for(post.path)) +title(post) .post-meta= post.date.format(config.date_format) if theme.duoshuo span.ds-thread-count(data-thread-key=post.path) if theme.disqus span.disqus-comment-count(data-disqus-identifier=post.path) if post.description .post-content != post.description else if page.excerpt .post-content != post.excerpt else if post.content - var br = post.content.indexOf('\n') if br < 0 .post-content != post.content else .post-content != post.content.substring(0, br) p(class="readmore") a(href=url_for(post.path))= __('Readmore') include _partial/paginator if theme.disqus script(id='dsq-count-scr' src='//#{theme.disqus}.disqus.com/count.js' async)

Can you help me fix this? thx!

关于在_config.yml文件中取消友情链接配置无效的问题

你好,首先需要感谢你贡献的这个主题,我非常喜欢。。:-D

问题是,我在_config.yml文件中注释了友情链接的配置,但是在hexo generate后,预览界面上依旧还有友情链接的侧边栏,貌似并没有什么作用,请问是哪里出现问题了吗?

Feature request:统一管理静态文件的路径,方便使用CDN

现在模版中这样写法的话,使用 CDN 不是太方便,如果托管在 github 把静态文件用上国内的CDN对网页加载速度提升还是很明显的,之前用过 Next 主题,他把静态文件的路径设置放到了_config.yml 中设置,这样如果这个配置参数设置为 CDN 的URL时,可以直接读取 CDN 的静态文件内容

参考 PR iissnan/hexo-theme-next#4

移动端代码块适配问题

在移动端,代码块超出屏幕宽度后,右边的代码看不见了.不能正常显示,建议增加滚动条,实现代码块的屏幕适配.

你好,我使用你的主题,在本地服务器有问题

页面显示以下代码
extends base - var current_title = page.title || tag.name || category.name || site.title block title title= config.title + " | " + config.subtitle block content for post in page.posts.toArray() .post h2.post-title include partial/helpers a(href=url_for(post.path)) +title(post) .post-meta= post.date.format(config.date_format) span.ds-thread-count(data-thread-key=post.path) if post.description .post-content= post.description else if page.excerpt .post-content= page.excerpt else if post.content .post-content= strip_html(post.content).replace(/^\s/, '').replace(/\s_$/, '').substring(0, 300) p(class="readmore") a(href=url_for(post.path))= __('Readmore') include _partial/paginator

分享区有错误,

my first
2016-01-03 | 分类于 分类
aaa

标签

分享到:
微博
QQ空间
腾讯微博
微信

页面大致是这样,最后那个分享到自动就出现了,而且鼠标移动到【分享到】 又会出现:
分享到:
微博
QQ空间
腾讯微博
微信
新浪微博
QQ空间
搜狐微博
人人网
网易微博
腾讯微博
开心网
豆瓣网
QQ
美丽说
蘑菇街
百度
淘宝
谷歌
微信
点点网
花瓣网
堆糖
有道云笔记
朋友网
Facebook
Twitter
Linkedin
MSN
多说分享插件

没看到有能设置的地方?

在windows下安装hexo-renderer-sass出错

您好,我想尝试一下这个主题。在安装hexo-renderer-sass时出错,通过日志发现,是编译libsass时出错的,原因是不认识uint64_t和uint_fast32,只要包含头文件stdint.h就可以了,但是npm每次安装都会从新下载编译,没有修改的机会,您看有什么办法能解决这个问题。
我的环境是win10,VS2013。
谢谢!

代码块解析的问题

使用 4331ef7 之前的高亮css, 代码块解析是正常的

但是使用新的代码高亮之后,如果是代码块中有代码块的话那么会有不正常,比如

````markdown
```C
#include <stdio.h>
int main(void){
return 0;
}
```

```
#include <iostream>
using std::cout;
using std::endl;
int main(){
cout<<"Hello, world!"<<endl;
return 0;
}
```
````

像这样的代码块,就会多出一个很不自然的滚动条(实际上照常解析的话那个地方根本不需要滚动条)
效果如下1

而使用hexo的codeblock(lang设置为plain)的话,根本解析不出来,变成了

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">&#60;!--&#65532;12--&#62;&#10;&#10;&#60;!--&#65532;13--&#62;</span><br></pre></td></tr></table></figure>

效果如下
2

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.