Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In 3.0.0-rc.4, can not apply responsive theme like jacman, pacman #1059

Closed
yyz20002008 opened this issue Feb 18, 2015 · 27 comments
Closed

In 3.0.0-rc.4, can not apply responsive theme like jacman, pacman #1059

yyz20002008 opened this issue Feb 18, 2015 · 27 comments

Comments

@yyz20002008
Copy link

according the command in https://github.com/hexojs/hexo
I create hexo folder but not blog folder
I run

$ hexo init // in hexo folder

then

$ npm install

then

$ hexo g
$ hexo s

Right the original theme landscape works fine.
Then I want to change theme to jscman.
I install upon commands in https://github.com/wuchong/jacman

$ git clone https://github.com/wuchong/jacman.git themes/jacman
$cd themes/jacman
$git pull origin master

Then I change _config.yml file in hexo folder:
theme: jacman
I open git base in hexo folder
run
$ hexo clean
$ hexo g
$ hexo s
it doesn't work. I found it can not find style.css file.
image

I read the solution in 2.0.0-rc3, but it doen't work in this version.

@Xuanwo
Copy link
Contributor

Xuanwo commented Feb 18, 2015

in RC-4, you can see #1054

@yyz20002008
Copy link
Author

I ran this two instructions
npm install hexo-cli -g
npm install hexo@beta --save

but it doesn't work

@Xuanwo
Copy link
Contributor

Xuanwo commented Feb 18, 2015

can i see your _config.yml?
maybe there are somgthing wrong.

@yyz20002008
Copy link
Author

////Thanks. Happy the Goat Year!

///# Hexo Configuration

Docs: http://hexo.io/docs/configuration.html

Source: https://github.com/hexojs/hexo/

///# Site
title: Hexo
subtitle:
description:
author: John Doe
language:
timezone:

///# URL

If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'

url: http://yoursite.com
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:

///# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

///# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
tab_replace:

///# Category & Tag
default_category: uncategorized
category_map:
tag_map:

///# 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: YYYY-MM-DD
time_format: HH:mm:ss

///# Pagination

Set per_page to 0 to disable pagination

per_page: 10
pagination_dir: page

///# Extensions

Plugins: https://github.com/hexojs/hexo/wiki/Plugins

Themes: https://github.com/hexojs/hexo/wiki/Themes

theme: jacman

///# Deployment

Docs: http://hexo.io/docs/deployment.html

deploy:
type:

@Xuanwo
Copy link
Contributor

Xuanwo commented Feb 18, 2015

maybe your should run npm install hexo-renderer-stylus --save

@Xuanwo
Copy link
Contributor

Xuanwo commented Feb 18, 2015

make your _config.yml like this:

theme: examlpe
exclude_generator:
plugins:
- hexo-renderer-stylus

it seems like that the hexo hadn't excute your css file.

@yyz20002008
Copy link
Author

I think there is no white space after "exclude_generator:" and "plugins:".
It looks like there is a whiter space between "-" and "hexo-renderer-stylus".
But it still doesn't work

@Xuanwo
Copy link
Contributor

Xuanwo commented Feb 18, 2015

use other theme to have a test that make sure your setting is right.

@yyz20002008
Copy link
Author

I tested my hexo works in theme of "air" and "light", but doesn't work in "jacman" and "pacman", which are responsive themes.
I would very appreciate if anyone coulde give me a hint.

@wuchong
Copy link
Member

wuchong commented Feb 23, 2015

maybe you have not install npm successfully ? try $ sudo npm install again ?

it looks like the hexo-renderer-stylus problem

@wuchong
Copy link
Member

wuchong commented Feb 24, 2015

run npm ls in your hexo folder , and post the result here

@wuchong
Copy link
Member

wuchong commented Feb 27, 2015

is there any error message in the terminal?

@yyz20002008
Copy link
Author

The issue is that style.css can not be found. But how can I fix this?

@wuchong
Copy link
Member

wuchong commented Feb 28, 2015

I have not so many output with npm ls . I mean is there any error after hexo s ?

发自我的 iPhone

在 2015年2月27日,23:20,yyz20002008 [email protected] 写道:

Actually when I run "npm ls", there is no error. Do you think this result is normal?


Reply to this email directly or view it on GitHub.

@yyz20002008
Copy link
Author

sorry, I just got what you mean.
The error is
\\\\\\\\\\\\\\\\\\\\\\\\\
ERROR Asset render failed: css/style.css
TypeError: hexo/themes/pacman/source/css/_base/variable.styl:54:43
50| //comment
51| duoshuo = hexo-config("duoshuo.enable")
52|
53| //highlight
54| highlight = hexo-config("highlight.enable")
-------------------------------------------------^
55|

Cannot read property 'enable' of undefined
\\\\\\\\\\\\\\\\\\\\\\\\\\
I read this issue:zhyu/yaht#1
But I have highlight in my _config.yml

@wuchong
Copy link
Member

wuchong commented Feb 28, 2015

please use ``` include your output and file content. your response is unreadable

发自我的 iPhone

在 2015年2月28日,12:19,yyz20002008 [email protected] 写道:

sorry, I just got what you mean.

The error is
ERROR Asset render failed: css/style.css
TypeError: hexo/themes/pacman/source/css/_base/variable.styl:54:43
50| //comment
51| duoshuo = hexo-config("duoshuo.enable")
52|
53| //highlight
54| highlight = hexo-config("highlight.enable")
-------------------------------------------------^
55|

Cannot read property 'enable' of undefined

I read this issue:zhyu/yaht#1

But I have

highlight:
enable: true
line_number: true

tab_replace:

in my _config.yml


Reply to this email directly or view it on GitHub.

@yyz20002008
Copy link
Author

it looks good right now?

@wuchong
Copy link
Member

wuchong commented Feb 28, 2015

reinstall your hexo to version 2.8.3 which is stable for all I know

发自我的 iPhone

在 2015年2月28日,12:26,yyz20002008 [email protected] 写道:

it looks good right now?


Reply to this email directly or view it on GitHub.

@yyz20002008
Copy link
Author

Do you know how can I install version 2.8.3? right now command I know to install hexo is only "npm install hexo-cli -g"

@wuchong
Copy link
Member

wuchong commented Feb 28, 2015

npm uninstall hexo -g
npm install [email protected] -g

发自我的 iPhone

在 2015年2月28日,12:53,yyz20002008 [email protected] 写道:

Do you know how can I install version 2.8.3? right now command I know to install hexo is only "npm install hexo-cli -g"


Reply to this email directly or view it on GitHub.

@yyz20002008
Copy link
Author

Thanks.Right now jacmen works. It is very nice.
I may update hexo when there is a stable version of hexo 3.0.
qq 20140328201256

@wuchong
Copy link
Member

wuchong commented Feb 28, 2015

congratuations

发自我的 iPhone

在 2015年2月28日,13:10,yyz20002008 [email protected] 写道:

Thanks.Right now jacmen works. It is very nice.
I may update hexo after he release a stable version of hexo.


Reply to this email directly or view it on GitHub.

@yyz20002008 yyz20002008 changed the title In 3.0.0-rc.4, I still can not find style.css after installing jacman In 3.0.0-rc.4, can not apply responsive theme like jacman, pacman Mar 4, 2015
@tommy351
Copy link
Member

Add highlight setting to _config.yml or update to [email protected].

@wuchong
Copy link
Member

wuchong commented Mar 11, 2015

@tommy351 thank u.

A question:

How to get the highlight setting in blog/_config.yml ?

hexo-config("highlight.enable") can only get settings in themes/jacman/_config.yml

@Xuanwo
Copy link
Contributor

Xuanwo commented Mar 20, 2015

in Hexo 3.0, There is a highlight setting ~

@12obin
Copy link

12obin commented Jan 23, 2016

I install hexo on windows 10, I am going to use hueman theme, but the result is not like the demo
error-hueman-theme-hexo

@LOUSANPANG
Copy link

问题描述 🌹

  1. 之前也是旧版本,好久没更新,今天重新更新了下hexo
    "hexo": "^4.2.1",
    "hexo-deployer-git": "^2.1.0",
    "hexo-generator-archive": "^1.0.0",
    "hexo-generator-category": "^1.0.0",
    "hexo-generator-index": "^1.0.0",
    "hexo-generator-json-content": "^4.2.3",
    "hexo-generator-tag": "^1.0.0",
    "hexo-renderer-ejs": "^0.1.0",
    "hexo-renderer-marked": "^0.1.0",
    "hexo-renderer-stylus": "^0.1.0",
    "hexo-server": "^1.0.0"
  1. hexo g 报css解析不出来
  2. 降级
    ···
    npm install [email protected] -g
    npm install [email protected]
    [email protected]
    [email protected]
    ···
  3. 降级后,报 primordials is not defined
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants