Coder Social home page Coder Social logo

siricee / hexo-theme-chic Goto Github PK

View Code? Open in Web Editor NEW
863.0 8.0 175.0 6.92 MB

An elegant, powerful, easy-to-read Hexo theme.

Home Page: https://siricee.github.io/hexo-theme-Chic/

License: Other

HTML 17.01% CSS 11.74% JavaScript 2.38% EJS 11.10% Stylus 57.78%
hexo-theme chic-theme mathjax read-hexo-theme elegant dark-theme demo hexo hexo-blog

hexo-theme-chic's Introduction

Chic theme

Chic, French word meaning 'Elegant' in English.

Author Node Hexo Device Build Status

Documentation language

Contents

Introduction

An elegant, powerful, easy-to-read Hexo theme.

Demo

Features

  • Appropriate blank blocks, elegant but not simple.

  • Light/Dark theme, just one click.

  • Abundant highlight mode.

  • Elaborately selected fonts, best reading experience. 'Microsoft Jhenghei' especially recommended.

  • Auto fit Mobile and Screen responsively.

  • Support MathJax, support formula written in LaTeX.

Installation

cd your-blog/themes
git clone https://github.com/Siricee/hexo-theme-Chic.git Chic
# Modify theme setting in _config.yml to Chic.

Configuration

Click here to spread
# Header
navname: Bentham's Blog

# navigatior items
nav:
  Posts: /archives
  Categories: /category
  Tags: /tag
  About: /about

# favicon
favicon: /favicon.ico

# Profile
nickname: Jeremy Bentham

### this variable is MarkDown form.
description: Lorem ipsum dolor sit amet, **consectetur adipiscing elit.** <br>Fusce eget urna vitae velit *eleifend interdum at ac* nisi.
avatar: /image/avatar.jpeg

# main menu navigation
## links key words should not be changed.
## Complete url after key words.
## Unused key can be commented out.
links:
  Blog: /archives
#  Category:
#  Tags:
#  Link:
#  Resume:
#  Publish:
#  Trophy:
#  Gallary:
#  RSS:
#  AliPay:
  ZhiHu: https://www.zhihu.com/people/sirice
#  LinkedIn:
#  FaceBook:
#  Twitter:
#  Skype:
#  CodeSandBox:
#  CodePen:
#  Sketch:
#  Gitlab:
#  Dribble:
  Instagram:
  Reddit:
#  YouTube:
#  QQ:
#  Weibo:
#  WeChat:
  Github: https://github.com/Siricee

# how links show: you have 2 choice--text or icon.
links_text_enable: false
links_icon_enable: true

# Post page
## Post_meta
post_meta_enable: true

post_author_enable: true
post_date_enable: true
post_category_enable: true
## Post copyright
post_copyright_enable: true

post_copyright_author_enable: true
post_copyright_permalink_enable: true
post_copyright_license_enable: true
post_copyright_license_text: Copyright (c) 2019 <a href="http://creativecommons.org/licenses/by-nc/4.0/">CC-BY-NC-4.0</a> LICENSE
post_copyright_slogan_enable: true
post_copyright_slogan_text: Do you believe in <strong>DESTINY<strong>?
## toc
post_toc_enable: true

# Page
page_title_enable: true

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: MMMM D, YYYY
time_format: H:mm:ss

# stylesheets loaded in the <head>
stylesheets:
  - /css/style.css

# scripts loaded in the end of the body
scripts:
  - /js/script.js
  - /js/tocbot.min.js
    # tscanlin/tocbot: Build a table of contents from headings in an HTML document.
    # https://github.com/tscanlin/tocbot


# plugin functions
## Mathjax: Math Formula Support
## https://www.mathjax.org
mathjax:
  enable: true
  import: demand # global or demand
  ## global: all pages will load mathjax,this will degrade performance and some grammers may be parsed wrong.
  ## demand: Recommend option,if your post need fomula, you can declare 'mathjax: true' in Front-matter

Add 'Tag', 'Category' Page

There is no 'tag' or 'category' page in the site as it initializes. If you need it, please follow the steps below.

  1. execute commands
hexo new page tag
hexo new page category
  1. enter the dictionary
cd source/tag
  1. add 'layout' key
// source\tag\index.md
---
title: Tag
layout: tag
---
  1. Do so with the category page with Category as title and category as layout.

MathJax (Render LaTeX formula)

Related config file (Chic/_config.yml):

# plugin functions
## Mathjax: Math Formula Support
## https://www.mathjax.org
mathjax:
  enable: true
  import: global # global or demand
  ## global: all pages will load mathjax,this will degrade performance and some grammers may be parsed wrong.
  ## demand: if your post need fomula, you can declare 'mathjax: true' in Front-matter

mathjax uses the keywords below:

  • enable: value true enables mathjax (default value true); value false disables it.
  • import: this key sets mathjax load method, options can be global or demand.
    • global: global import, all pages will load script. It's convenient, but it may cause some MarkDown grammars to be parsed wrong. For example, consecutive $$ will be rendered as a formula; Besides, global import will waste performance in pages without any formula.
    • demand: [Recommended] Import mathjax when you need it. After you set this value, if you need to use formula, just declare it in the post Front-matter. Here is an example:
      ---
      title: MathJax Test
      date: 2019-07-05 21:27:59
      tags:
      mathjax: true # add this statement, MathJax will be enabled in this post.
      ---

LaTeX grammars will not be illustrated in this doc. In Chic theme, single '$' rounded statement is regarded as inline formula like $f(x)=ax+b$; double '$' rounded statement is regarded as block formula like $$f(x)=ax+b$$. More information please read LaTeX doc and Formula test page in Demo Site.

Image-title

You have 2 methods to import images in your posts:

  • image import with GFM (without image-title)
    ![pic](picUrl)
    
  • hexo built-in image tag (with image-title)
    {% img [class names] /path/to/image [width] [height] '"alt text" "title text"' %}
    

So if you want to import as fast as possible, you can use GFM, and this way will also get the best adaptability.

If you want to display image-title, you should use hexo built-in image tag.

  • "alt text" is used when the image doesn't load or something went wrong in that image (404).
  • "title text" will be displayed below the image.

You can preview image-title and sample code in Demo site

Customize

  • Highlight Style: Enter hexo-theme-Chic\themes\Chic\source\css\style.styl change stylesheet with key word _highlight in link in _highlight dictionary.

  • Customize stylesheets in this stylus file:

    hexo-theme-Chic\themes\Chic\source\css\custom.styl

  • Customize javascripts in the dictionary:

    hexo-theme-Chic\themes\Chic\source\js

    Then add declaration in _config.ymlusing the keyword 'script'.

FAQ

  1. I deployed my site on a second-level url (such as username.github.io/blog), and my css, avatar and other sources are missing (404 error)

    Answer: You need to change some URLs in root config keyword. For instance:

    # (blog/_config.yml)
    
    # URL
    ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
    url: https://siricee.github.io/hexo-theme-Chic/  # this is your deploy url.
    root: /hexo-theme-Chic/  # this is your root folder url.
    permalink: :year/:month/:day/:title/
    permalink_defaults:
  2. How to set the dark theme as default for whole site automatically?

    Answer: You need to change some code in themes\Chic\source\js\script.js, function doucument.ready as shown below.

    document.ready(
     function () {
         // ...Omit part of the code
         const isDark = currentTheme === 'dark';
         // change this line to
         // const isDark = currentTheme !== 'dark';

    Now, you have already set the dark theme as default successfully.

  3. More questions will be added...

Gallery

screely-1560228577821.png screely-1560228791041.png screely-1560228621288.png screely-1560228761180.png

smartmockups_jwrd4ru3.png

smartmockups_jwrd9y4r.png

LICENSE

Chic © @Sirice

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

hexo-theme-chic's People

Contributors

damientseng avatar duliu1990 avatar evilcult avatar hlwjia avatar isxiaoxin avatar neverbot avatar sean-baek avatar siricee 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

hexo-theme-chic's Issues

Font Problem

Please tell me how to change the font in this theme.

请告知如何修改主题中的字体。

关于头像图片的问题

您好,我有几个问题想向你请教一下。
1.我修改了主页头像,并把头像文件放在themes\Chic\source\image目录下,但头像加载过慢甚至有时候会出现头像加载失败,想请问一下该怎么解决,谢谢:)
2.能不能在posts categories tags about 上再加上别的,比如说photos,pictures等,谢谢。

你好!我有两个问题!!

问题1:文章底部的Author怎么设置
问题2:怎么更改页面右上方Posts,Categories等等标签的名称??我在配置文件中修改成中文,页面可以显示中文,但这时候,点击头像无法跳转到文章页面!!不知道为什么!试了很多次发现只要改名就会出错,请问应该如何修改!

如何在HEXO中添加页面

想问问 Categories,Tags,About这些页面怎么做的啊,还有怎么进一步的去加新的功能,没学过web有点懵逼啊

Hide the checkbox in the upper right corner

Hi, I love this theme.
But in the latest version chrome, there is a checkbox in the upper-right corner, so I add a hidden tag in the header.ejs to remove it.
If you don't add it intentionally, please take a look and remove it XD!

代码高亮可以根据dark或light来选择主题

Chic对黑暗模式对支持非常棒,美中不足的地方是如果我选择亮色主题,在dark mode下就会比较突兀,大佬是否可以支持下代码高亮双主题根据dark or light来切换

另,检索功能+1

Archive页ejs报错

  • hexo new page archive
  • 在_config.yml中nav加入Archive: /archive
  • //source/archive/index.md 加入layout: archive
  • hexo s --debug
  • 点击Archive

Error:

    1| <div class="post-wrap archive">
    2|     <% var last_year = ''; %>
>>  3|     <% page.posts.each(function (post) { %>
    4|         <% var cur_year = post.date.year(); %>
    5|
    6|         <% if(last_year !== cur_year){ %>

Cannot read property 'each' of undefined

如何添加博客评论以及访客数目统计?

非常喜欢这款主题, 为您点赞.
我在尝试自己添加 Disqus 的评论模块,但是对前端一窍不通的小白感觉有点困难.
不知道您有没有计划添加博客评论/访客统计? 或者能不能给一个大致的指导? 非常感谢

如何在该主题中添加数学公式支持?

您好!我试用了您的主题之后感觉这款主题很不错,不过好像并没有自带数学公式渲染支持,但是我在一般写作过程中数学公式支持还是非常重要的。我在尝试按照以下几篇博文教程配置均没有成功:

  1. hexo中插入数学公式
  2. Hexo 的 Next 主题中渲染 MathJax 数学公式
  3. 在Hexo中渲染MathJax数学公式

所以想请教以下作者如何给本主题添加数学公式支持?谢谢您~~

请问作者,如何优化搜索引擎的显示内容?

image
1.如图,我想让他显示成 某某的博客 之类的,应该在何处修改?(或者在何处修改能避免他自动生成对网站的描述)
2.主页的<title>,还有meta name这种在何处设置?
谢谢您的回答。

如何打造更具个性化的about页面,是否考虑加入搜索功能

经过昨晚上的学习与摸索,已经成功的将tags与 Categories页面弄出来了,但是还有一些小的问题希望得到帮助。

  1. about页面如何设置的更好看,我在百度上看到有人说直接在about/index.md里面编辑然后hexo会渲染出来,请问是否还有其他的方式,或者有什么好的建议。
  2. 请问后期是否会加入搜索功能,本来想自己尝试添加的但是对web前端相关的知识完全小白担心弄不好。
  3. 非常赞成作者对于博客应该有个封面的看法,这可能也是我一眼相中这款主题的原因,希望继续加油。

关于主题动态背景的问题请教

Hello, 在使用过程中有这么一个问题想请教一下, 我想在博客中添加canvas的动态背景, 类似您博客这样的效果就不错😃。
GitHub中我找到了canvas-nest.js,并且修改了主题目录layout下的layout.ejs添加了引用<script src="https://cdn.bootcss.com/canvas-nest.js/2.0.4/canvas-nest.js"></script>, 但是效果不太满意,主要原因如下:

  1. 直接引用的线条, 透明度效果等对整体简洁的布局有影响
  2. 我直接修改的layout.ejs是对全局影响的, 但是我觉得在文章阅读页面的动态背景有点破坏阅体验,我想在文章页面屏蔽这种效果

于是想请教一下您的方案是如何设计的,感谢😆

标题中添加代码大小将不一致

如果在h1,h2,h3,h4,h5标题中添加inline code,code的大小无法和标题大小一致。

image

可以在css/_page/_post/post_code.styl.post-content下添加

h1,h2,h3,h4,h5
    code
      font-size inherit

解决
image

同样的, 要是在list里面使用inline code可能也会出现问题,我也是手动添加了大小配置。

如何解决文章标题较长时categories页面标题显示不全的问题?

作者你好,我使用你的主题已经一周了,非常喜欢此主题的极简风。但在使用过程中,碰到了如下的问题。

问题描述

使用背景

  • 手机端或者桌面版浏览器宽度缩放到比较窄时
  • 文章标题较长

问题

  • 电脑上没有滚动条用来看全标题
  • 手机上无法触摸看全标题

图片

电脑端

希望达到的效果

  • 电脑端上当标题长度超出宽度的时候,每一个category下能否可以加一个滚动条,往右滚动时,一个category的所有标题一起移动?
  • 手机端同理,能否实现通过触摸移动就可以看全标题?

非常感谢作者的辛苦努力,如果作者有其他的细节问题,我会尽快给出😀。

Missing tag index page

I cloned chic theme into themes folder. Added some tags into one of the posts. Started server by running 'hexo server'. When I click the tags link in the main navbar I get the "Cannot GET /tag/" displayed at the page. The individual tag pages are displayed correctly when I click on a specific tag. So the page with -Tag Cloud- title in the demo seems to be missing in my setup. Am I missing something?

如何添加评论系统

您好很喜欢您的主题但是使用的时候发现没有集成评论系统相关的内容
因为对底层内容不是很清楚所以想请教您如何能添加评论系统?

添加评论功能

大神能不能写个添加评论的脚本,有的时候互动评论也蛮重要的呢?

请问如何美化页面排版

作者你好,我非常喜欢你这个主题,极简而且有封面。

问题描述

我打算把这个做成自己的个人学术主页,于是我自己新建了一个名字叫 about的页面,然后用markdown写出来的界面如下(麻烦作者打开链接看一下about 界面)。 链接:https://yuanyimao.github.io/

图片

image
这个排版看起来有点太朴素了/(ㄒoㄒ)/~~,我不需要什么其他功能,但不知道应该如何入手修改。比如修改字体?修改字号?调整行间距?作者能给一些建议吗?

可能希望达到的效果

image
image
当然也不一定非要是上面这种样子,就是能够稍微美观一点就可以了,我可能会添加我的照片,希望作者能够给一点修改的意见。非常感谢作者的辛苦努力,如果作者有其他的细节问题,我会尽快给出😀。

markdown 标题显示#号

markdown 格式的标题,# 符号是不是依然还显示出来了,不知道是我写的问题还是什么问题,我看官方的hello world 那篇标题的# 符号也显示出来了

Space after apostrophe ( ' )

With the fonts shipped with this layout, there is an awkward space after each apostrophe:

image

In the source code, it's a regular apostrophe:
Awesome Hexo-theme built by Siricee. Since I’m not great at designing, adopted this. :-)
Although it's not ( ' ), but converted to ( ’ ).

If I change the CSS to disable all fonts except Arial, everything works. So this seems to be an issue with the fonts used.

See also:

手机dark模式异常

手机上将主题更改成dark模式时,会出现短暂的light模式闪屏现象。

创建tag和category页面时报错

您好,根据您的文档,我用hexo new page增加了tag和category, 并在md文档中添加了label。但在hexo generate命令后有报错。报错信息如下:

ERROR Invalid or unexpected token in "/Users/leef/Desktop/fisher/homepage/themes/Chic/layout/category.ejs"
SyntaxError: Invalid or unexpected token in "/Users/leef/Desktop/fisher/homepage/themes/Chic/layout/category.ejs"
    at new Function (<anonymous>)
    at exports.compile (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:242:14)
    at Object.exports.render (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:284:66)
    at Hexo.<anonymous> (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/index.js:14:24)
    at Hexo.tryCatcher (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.ret (eval at makeNodePromisifiedEval (/Users/leef/.nvm/versions/node/v10.9.0/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
    at Promise.then.text (/Users/leef/Desktop/fisher/homepage/node_modules/hexo/lib/hexo/render.js:61:21)
    at tryCatcher (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromiseCtx (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:611:10)
    at _drainQueueStep (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:142:12)
    at _drainQueue (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:693:18)
    at tryOnImmediate (timers.js:664:5)
    at processImmediate (timers.js:646:5)
ERROR Invalid or unexpected token in "/Users/leef/Desktop/fisher/homepage/themes/Chic/layout/tag.ejs"
SyntaxError: Invalid or unexpected token in "/Users/leef/Desktop/fisher/homepage/themes/Chic/layout/tag.ejs"
    at new Function (<anonymous>)
    at exports.compile (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:242:14)
    at Object.exports.render (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:284:66)
    at Hexo.<anonymous> (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/index.js:14:24)
    at Hexo.tryCatcher (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.ret (eval at makeNodePromisifiedEval (/Users/leef/.nvm/versions/node/v10.9.0/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
    at Promise.then.text (/Users/leef/Desktop/fisher/homepage/node_modules/hexo/lib/hexo/render.js:61:21)
    at tryCatcher (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromiseCtx (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:611:10)
    at _drainQueueStep (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:142:12)
    at _drainQueue (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:693:18)
    at tryOnImmediate (timers.js:664:5)
    at processImmediate (timers.js:646:5)
ERROR Invalid or unexpected token in "/Users/leef/Desktop/fisher/homepage/themes/Chic/layout/tag.ejs"
SyntaxError: Invalid or unexpected token in "/Users/leef/Desktop/fisher/homepage/themes/Chic/layout/tag.ejs"
    at new Function (<anonymous>)
    at exports.compile (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:242:14)
    at Object.exports.render (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:284:66)
    at Hexo.<anonymous> (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/index.js:14:24)
    at Hexo.tryCatcher (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.ret (eval at makeNodePromisifiedEval (/Users/leef/.nvm/versions/node/v10.9.0/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
    at Promise.then.text (/Users/leef/Desktop/fisher/homepage/node_modules/hexo/lib/hexo/render.js:61:21)
    at tryCatcher (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromiseCtx (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:611:10)
    at _drainQueueStep (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:142:12)
    at _drainQueue (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:693:18)
    at tryOnImmediate (timers.js:664:5)
    at processImmediate (timers.js:646:5)
ERROR Invalid or unexpected token in "/Users/leef/Desktop/fisher/homepage/themes/Chic/layout/tag.ejs"
SyntaxError: Invalid or unexpected token in "/Users/leef/Desktop/fisher/homepage/themes/Chic/layout/tag.ejs"
    at new Function (<anonymous>)
    at exports.compile (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:242:14)
    at Object.exports.render (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:284:66)
    at Hexo.<anonymous> (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/index.js:14:24)
    at Hexo.tryCatcher (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.ret (eval at makeNodePromisifiedEval (/Users/leef/.nvm/versions/node/v10.9.0/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
    at Promise.then.text (/Users/leef/Desktop/fisher/homepage/node_modules/hexo/lib/hexo/render.js:61:21)
    at tryCatcher (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromiseCtx (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:611:10)
    at _drainQueueStep (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:142:12)
    at _drainQueue (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:693:18)
    at tryOnImmediate (timers.js:664:5)
    at processImmediate (timers.js:646:5)

在server中尝试点开某个tag也会报错,错误如下:

Unhandled rejection SyntaxError: Invalid or unexpected token in "/Users/leef/Desktop/fisher/homepage/themes/Chic/layout/tag.ejs"
    at new Function (<anonymous>)
    at exports.compile (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:242:14)
    at Object.exports.render (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/node_modules/ejs/lib/ejs.js:289:10)
    at Hexo.<anonymous> (/Users/leef/Desktop/fisher/homepage/node_modules/hexo-renderer-mathjax/index.js:14:24)
    at Hexo.tryCatcher (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.ret (eval at makeNodePromisifiedEval (/Users/leef/.nvm/versions/node/v10.9.0/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
    at Promise.then.text (/Users/leef/Desktop/fisher/homepage/node_modules/hexo/lib/hexo/render.js:61:21)
    at tryCatcher (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromiseCtx (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/promise.js:611:10)
    at _drainQueueStep (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:142:12)
    at _drainQueue (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/leef/Desktop/fisher/homepage/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:693:18)
    at tryOnImmediate (timers.js:664:5)
    at processImmediate (timers.js:646:5)

想请问是什么原因呢?谢谢!

Theme doesn't fully load

I have installed the theme to [domain]/themes/Chic, and I have modified the theme setting in [domain]/_config.yml to Chic.
image

The issue here is that the theme doesn't fully load. There is no code inside the webpage. Only the favicon of Hexo (from [domain]/themes/Chic/source/favicon.ico) has loaded.
image

Note that in [domain]/_config.yml, the URL setting is fine, and it works for other themes.
image

I use Gitlab for my blog.
Did I do anything wrong?

Some questions about homepage messages

I want to add message function on the basis of this topic through the third party platform (LiveRe). I have been fumbling for a long time and I don't know how to change it. Please consult the setup plan. Thank you.

How to custom the tags page layout?

Dear Siricee,
I am very happy with your Chic theme. However, recently I met with some problems with it. I try to create a new page with tags and its belonging blogs hyperlinks like that in Aath theme. What I current get is this style effect: https://docnan.github.io/tags/
It is ugly with all the tabs align to the very left side. How do I change the layout of this page? I am new to htlm/css web page designing. Do you have any suggestions?
Thanks very much!

Nan

怎么删除多余且已经无用的标签或者分类?

开始尝试搭自己的博客, 找到了您这个主题很喜欢, 感谢设计出这个主题~
现想咨询一个问题: 如下图, 这些标签是测试生成的, 现在我想删除这些标签
image

我尝试过修改 生成的tag/index.html文件删除多余的标签, 可是无效, 其他的资源文件我也看了一下, 不知道修改哪里才能生效.

关于三个问题的请教

Hello,你好,关注你了你的主题,觉得非常棒,但是仍有3个问题想请教一下:
1.利用markdown语言编辑一级标题的时候,这个标题为什么会有个#号? 我可以在哪串代码里面去除,作为标题,感觉有个#号怪怪的。
2. 我的无序标签可以和正文格式一样顶格吗?这里明显看到没有顶格,当然这个问题不知道是你主题的代码设置是这样,还是markdown里面可以设置?如果是后者,知道的话还希望不吝赐教.
3.关于注释块问题,我觉得是不是过于太高了,理论上编辑的注释块的文本应该是我标注了的红线高度,请问这个我可以在哪里调节呢?
最后,非常感谢你有时间回答我的问题,这个主题确实太棒了~!~感动到哭。
problem

添加链接选项

我如果想要添加 _config.yml 里边的 links 选项,应该怎么操作

tag.ejs和category.ejs编译错误

在“hexo g”运行后,tag.ejs和category.ejs最会报错。例如:
ERROR Render HTML failed: category/index.html SyntaxError: Invalid or unexpected token in "E:\\myblog\\themes\\Chic\\layout\\category.ejs" at new Function (<anonymous>) at exports.compile (E:\myblog\node_modules\hexo-renderer-mathjax\node_modules\ejs\lib\ejs.js:242:14) at Object.exports.render (E:\myblog\node_modules\hexo-renderer-mathjax\node_modules\ejs\lib\ejs.js:284:66) at Hexo.<anonymous> (E:\myblog\node_modules\hexo-renderer-mathjax\index.js:14:24) at Hexo.tryCatcher (E:\myblog\node_modules\bluebird\js\release\util.js:16:23) at Hexo.ret (eval at makeNodePromisifiedEval (C:\Users\ASUS\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\bluebird\js\release\promisify.js:184:12), <anonymous>:13:39) at Promise.then.text (E:\myblog\node_modules\hexo\lib\hexo\render.js:60:20) at tryCatcher (E:\myblog\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (E:\myblog\node_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (E:\myblog\node_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromiseCtx (E:\myblog\node_modules\bluebird\js\release\promise.js:641:10) at _drainQueueStep (E:\myblog\node_modules\bluebird\js\release\async.js:97:12) at _drainQueue (E:\myblog\node_modules\bluebird\js\release\async.js:86:9) at Async._drainQueues (E:\myblog\node_modules\bluebird\js\release\async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (E:\myblog\node_modules\bluebird\js\release\async.js:15:14) at runCallback (timers.js:705:18) at tryOnImmediate (timers.js:676:5) at processImmediate (timers.js:658:5)
麻烦问一下是什么问题导致的

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.