hexojs / hexo-renderer-stylus Goto Github PK
View Code? Open in Web Editor NEWStylus renderer for Hexo
License: MIT License
Stylus renderer for Hexo
License: MIT License
Hi everyone!
I can't compress and show sourcemaps. My _config.yml looks like:
# Hexo Configuration
## Docs: https://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
auto_detect: false
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://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: my-theme
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type:
stylus:
compress: true
sourcemaps:
comment: true
inline: true
sourceRoot: ''
basePath: .
And my stylus sources are in themes/my-themes/source/css
folder!
Someone can help me?
Could you please publish the latest version (0.3.2) to the NPM registry?
And is it possible to publish the newest version to NPM registry when a new version is bumped?
Thanks.
Hi, would it be possible to update minimatch? it is used in the glob module. However glob needs to be updated to. thank you
fryhexo ❯ npm ls minimatch
[email protected] /Users/fry/fryhexo
├─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
fryhexo ❯ npm install hexo-renderer-stylus --save
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[email protected] /Users/fry/fryhexo
└── [email protected]
The link should be:
https://github.com/tj/nib
Now I should do some work based on stylus latest version.
Or others can not use my theme.
Thanks.
When I use "hexo generate", changes to files that are @import into the main .styl file aren't detected. If I edit the main .styl file and "hexo generate", then change it back and "hexo generate" again, I can get it to work, but it just seems like extra work. Is there a setting that I'm missing that tells it to watch for changes to all files?
Thanks, and sorry for the noob question.
Gemini scheme in NexT theme is used.
I was editing sources/_data/mixins.styl
to prettify my site. The original values were copied from the source as a reference.
When I use single line comments, the page glitches. The white background of posts and sidebar disappears, but the exact glitch behavior may change depends on what is commented in which file. The comments do not appear in main.css
after hexo clean && hexo build
//original values:
// desktop() {
// @media (min-width: 992px) {
// {block};
// }
//}
But when I use block comments, the page is rendered correctly. After clean and build, the comments appear in the beginning of main.css
.
/*original values:
desktop() {
@media (min-width: 992px) {
{block};
}
}
*/
I looked into documents of stylus and it says line comments is allowed, thus I think the renderer went into error.
Please add source maps to the renderer
looks here, hexojs/hexo#1133 (comment)
sorry for my poor english
When i call hexo-config('root') from styl file, it return empty because theme lack of 'root' attr. So i think that if hexo-config shoud support get attr from site config file again, or how to handle the root problem?
I can't GET css/style.css when I use [email protected], and I check the code found it block at hexo-renderer-stylus/lib/renderer.js:18&19, the code is var config = this.config.stylus || {}; var self = this.hexo;
, it work s after I change this
to this.hexo
Can this be configured to support Jeet and Rupture without having to hack the renderer.js file?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.