Giter VIP home page Giter VIP logo

site's Introduction

site's People

Contributors

bhaskarmelkani avatar curbengh avatar d-sketon avatar deepspaceharbor avatar dependabot-preview[bot] avatar dependabot[bot] avatar ertrzyiks avatar ghaseminya avatar greg-js avatar hclonely avatar itimetraveler avatar jamling avatar jlhwung avatar josanshuo avatar kentaroutakeda avatar leesei avatar lzjqsdd avatar noahdragon avatar noraj avatar rossng avatar segayuu avatar stevenjoezhang avatar sukkaw avatar tcrowe avatar tomap avatar tommy351 avatar twirlfog avatar uiolee avatar xuanwo avatar yoshinorin 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

site's Issues

CSS not loaded when used in a sub directory of a domain.

Hi! When a hexo site is installed in subdirectory of a domain, it fails to retrieve CSS and also I believe JS and other files.
For example, when contents of public folder are uploaded to domain.com/demo/, then CSS files are being retrieved from domain.com/css, instead of domain.com/demo/css.
This is a problem, because it limits its usage in Github pages for a project.
I used the same site in this repository and launched it in gh-pages branch of one of my repositories, no CSS was available, and inspector showed that browser tried to retrieve css from username.github.io, not username.github.io/repository.

Title broken in docs

2016-01-02 11 26 03

https://hexo.io/docs/server.html As you see, the title became: `hexo-server">hexo-server` which should only be `hexo-server`. Also the TOC occurred the same issue.

Is there a way to remove adverts from this theme ?

I would like to use this theme for open source developer workshops, however I would rather not include the adverts that appear at the bottom of the page.

I have looked through all the scripts, deleted them, removed script references from the index.html file and still cant work out how to remove the ads. Can you help ?

Thank you

Scrolling doesn't work beneath the TOC area

Scrolling a page while the cursor is well beneath the TOC area on the right doesn't work - it feels very strange (also made me suspect that there was something wrong with my mouse).
It looks like the bottom margin of the element is causing it:

https://github.com/hexojs/site/blob/master/themes/navy/source/css/_partial/page.styl#L53

.fixed #article-toc-inner {
    position: fixed;
    top: 0;
    bottom: 0
}

Scrolling works as expected when the bottom margin is removed. If the change will not affect anything else, could you please remove the bottom margin?

hexo install 总是一大堆错误,各种Cannot find module

$ hexo install
ERROR Script load failed: scripts\helpers.js
Error: Cannot find module 'htmlparser2'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\cheerio\lib\parse.j                                                                                        s:4:18)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\cheerio\lib\cheerio                                                                                        .js:5:13)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\cheerio\index.js:5:                                                                                        28)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (D:\Work\GitCafe\site\node_modules\hexo\lib\hexo\index.js:213:21)
    at D:\Work\GitCafe\site\scripts\helpers.js:6:15
    at D:\Work\GitCafe\site\node_modules\hexo\lib\hexo\index.js:229:12
    at tryCatcher (D:\Work\GitCafe\site\node_modules\hexo\node_modules\hexo-fs\n                                                                                        ode_modules\bluebird\js\release\util.js:11:23)
ERROR Plugin load failed: hexo-renderer-jade
Error: Cannot find module 'character-parser'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-jade\                                                                                        node_modules\jade\lib\lexer.js:4:23)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-jade\                                                                                        node_modules\jade\lib\parser.js:3:13)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-jade\                                                                                        node_modules\jade\lib\index.js:13:14)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (D:\Work\GitCafe\site\node_modules\hexo\lib\hexo\index.js:213:21)
    at D:\Work\GitCafe\site\node_modules\hexo-renderer-jade\index.js:1:77
    at D:\Work\GitCafe\site\node_modules\hexo\lib\hexo\index.js:229:12
    at tryCatcher (D:\Work\GitCafe\site\node_modules\hexo\node_modules\hexo-fs\n                                                                                        ode_modules\bluebird\js\release\util.js:11:23)
    at Promise._settlePromiseFromHandler (D:\Work\GitCafe\site\node_modules\hexo                                                                                        \node_modules\hexo-fs\node_modules\bluebird\js\release\promise.js:491:31)
    at Promise._settlePromise (D:\Work\GitCafe\site\node_modules\hexo\node_modul                                                                                        es\hexo-fs\node_modules\bluebird\js\release\promise.js:548:18)
    at Promise._settlePromise0 (D:\Work\GitCafe\site\node_modules\hexo\node_modu                                                                                        les\hexo-fs\node_modules\bluebird\js\release\promise.js:593:10)
    at Promise._settlePromises (D:\Work\GitCafe\site\node_modules\hexo\node_modu                                                                                        les\hexo-fs\node_modules\bluebird\js\release\promise.js:676:18)
    at Promise._fulfill (D:\Work\GitCafe\site\node_modules\hexo\node_modules\hex                                                                                        o-fs\node_modules\bluebird\js\release\promise.js:617:18)
    at Promise._resolveCallback (D:\Work\GitCafe\site\node_modules\hexo\node_mod                                                                                        ules\hexo-fs\node_modules\bluebird\js\release\promise.js:418:57)
    at Promise._settlePromiseFromHandler (D:\Work\GitCafe\site\node_modules\hexo                                                                                        \node_modules\hexo-fs\node_modules\bluebird\js\release\promise.js:504:17)
    at Promise._settlePromise (D:\Work\GitCafe\site\node_modules\hexo\node_modul                                                                                        es\hexo-fs\node_modules\bluebird\js\release\promise.js:548:18)
    at Promise._settlePromise0 (D:\Work\GitCafe\site\node_modules\hexo\node_modu                                                                                        les\hexo-fs\node_modules\bluebird\js\release\promise.js:593:10)
    at Promise._settlePromises (D:\Work\GitCafe\site\node_modules\hexo\node_modu                                                                                        les\hexo-fs\node_modules\bluebird\js\release\promise.js:676:18)
    at Promise._fulfill (D:\Work\GitCafe\site\node_modules\hexo\node_modules\hex                                                                                        o-fs\node_modules\bluebird\js\release\promise.js:617:18)
    at D:\Work\GitCafe\site\node_modules\hexo\node_modules\hexo-fs\node_modules\                                                                                        bluebird\js\release\nodeback.js:42:21
ERROR Plugin load failed: hexo-renderer-marked
Error: Cannot find module 'highlight.js/lib/highlight'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-marke                                                                                        d\node_modules\hexo-util\lib\highlight.js:3:12)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-marke                                                                                        d\node_modules\hexo-util\lib\index.js:8:21)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-marke                                                                                        d\lib\renderer.js:6:12)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (D:\Work\GitCafe\site\node_modules\hexo\lib\hexo\index.js:213:21)
    at D:\Work\GitCafe\site\node_modules\hexo-renderer-marked\index.js:5:16
    at D:\Work\GitCafe\site\node_modules\hexo\lib\hexo\index.js:229:12
    at tryCatcher (D:\Work\GitCafe\site\node_modules\hexo\node_modules\hexo-fs\n                                                                                        ode_modules\bluebird\js\release\util.js:11:23)
    at Promise._settlePromiseFromHandler (D:\Work\GitCafe\site\node_modules\hexo                                                                                        \node_modules\hexo-fs\node_modules\bluebird\js\release\promise.js:491:31)
    at Promise._settlePromise (D:\Work\GitCafe\site\node_modules\hexo\node_modul                                                                                        es\hexo-fs\node_modules\bluebird\js\release\promise.js:548:18)
    at Promise._settlePromise0 (D:\Work\GitCafe\site\node_modules\hexo\node_modu                                                                                        les\hexo-fs\node_modules\bluebird\js\release\promise.js:593:10)
    at Promise._settlePromises (D:\Work\GitCafe\site\node_modules\hexo\node_modu                                                                                        les\hexo-fs\node_modules\bluebird\js\release\promise.js:676:18)
    at Promise._fulfill (D:\Work\GitCafe\site\node_modules\hexo\node_modules\hex                                                                                        o-fs\node_modules\bluebird\js\release\promise.js:617:18)
    at Promise._resolveCallback (D:\Work\GitCafe\site\node_modules\hexo\node_mod                                                                                        ules\hexo-fs\node_modules\bluebird\js\release\promise.js:418:57)
    at Promise._settlePromiseFromHandler (D:\Work\GitCafe\site\node_modules\hexo                                                                                        \node_modules\hexo-fs\node_modules\bluebird\js\release\promise.js:504:17)
    at Promise._settlePromise (D:\Work\GitCafe\site\node_modules\hexo\node_modul                                                                                        es\hexo-fs\node_modules\bluebird\js\release\promise.js:548:18)
    at Promise._settlePromise0 (D:\Work\GitCafe\site\node_modules\hexo\node_modu                                                                                        les\hexo-fs\node_modules\bluebird\js\release\promise.js:593:10)
    at Promise._settlePromises (D:\Work\GitCafe\site\node_modules\hexo\node_modu                                                                                        les\hexo-fs\node_modules\bluebird\js\release\promise.js:676:18)
    at Promise._fulfill (D:\Work\GitCafe\site\node_modules\hexo\node_modules\hex                                                                                        o-fs\node_modules\bluebird\js\release\promise.js:617:18)
    at D:\Work\GitCafe\site\node_modules\hexo\node_modules\hexo-fs\node_modules\                                                                                        bluebird\js\release\nodeback.js:42:21
ERROR Plugin load failed: hexo-renderer-stylus
Error: Cannot find module './nodes'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-stylu                                                                                        s\node_modules\stylus\lib\lexer.js:13:13)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-stylu                                                                                        s\node_modules\stylus\lib\parser.js:11:13)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-stylu                                                                                        s\node_modules\stylus\lib\renderer.js:12:14)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-stylu                                                                                        s\node_modules\stylus\lib\stylus.js:11:16)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-stylu                                                                                        s\node_modules\stylus\index.js:4:5)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-renderer-stylu                                                                                        s\lib\renderer.js:1:76)
ERROR Plugin load failed: hexo-server
Error: Cannot find module 'ms'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-server\node_mo                                                                                        dules\connect\node_modules\debug\debug.js:14:20)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-server\node_mo                                                                                        dules\connect\node_modules\debug\node.js:15:28)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-server\node_mo                                                                                        dules\connect\index.js:16:13)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\Work\GitCafe\site\node_modules\hexo-server\lib\ser                                                                                        ver.js:3:15)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (D:\Work\GitCafe\site\node_modules\hexo\lib\hexo\index.js:213:21)
    at D:\Work\GitCafe\site\node_modules\hexo-server\index.js:21:4
    at D:\Work\GitCafe\site\node_modules\hexo\lib\hexo\index.js:229:12
    at tryCatcher (D:\Work\GitCafe\site\node_modules\hexo\node_modules\hexo-fs\n                                                                                        ode_modules\bluebird\js\release\util.js:11:23)
    at Promise._settlePromiseFromHandler (D:\Work\GitCafe\site\node_modules\hexo                                                                                        \node_modules\hexo-fs\node_modules\bluebird\js\release\promise.js:491:31)
    at Promise._settlePromise (D:\Work\GitCafe\site\node_modules\hexo\node_modul                                                                                        es\hexo-fs\node_modules\bluebird\js\release\promise.js:548:18)
    at Promise._settlePromise0 (D:\Work\GitCafe\site\node_modules\hexo\node_modu                                                                                        les\hexo-fs\node_modules\bluebird\js\release\promise.js:593:10)
    at Promise._settlePromises (D:\Work\GitCafe\site\node_modules\hexo\node_modu                                                                                        les\hexo-fs\node_modules\bluebird\js\release\promise.js:676:18)
    at Promise._fulfill (D:\Work\GitCafe\site\node_modules\hexo\node_modules\hex                                                                                        o-fs\node_modules\bluebird\js\release\promise.js:617:18)
Usage: hexo <command>

Commands:
  clean     Removed generated files and cache.
  config    Get or set configurations.
  deploy    Deploy your website.
  generate  Generate static files.
  help      Get help on a command.
  init      Create a new Hexo folder.
  list      List the information of the site
  migrate   Migrate your site from other system to Hexo.
  new       Create a new post.
  publish   Moves a draft post from _drafts to _posts folder.
  render    Render files with renderer plugins.
  version   Display version information.

Global Options:
  --config  Specify config file instead of using _config.yml
  --cwd     Specify the CWD
  --debug   Display all verbose messages in the terminal
  --draft   Display draft posts
  --safe    Disable all plugins and scripts
  --silent  Hide output on console

For more help, you can use 'hexo help [command]' for the detailed information
or you can check the docs: http://hexo.io/docs/

How to add scripts to head of files generated.

Is there an easier way to add elements to head of files? like a custom style sheet or javascript file for a contact form, etc.
This might be possible via templates and stuff, but it'd be an overkill and not customisable, is there a way in which a line could be added to head in Markdown file and the line will then be added to head of html? Or some other approach?

Sorry for resulting in the site down for about 2 hours

Hello, everyone, I'm @Xuanwo, and I made a mistake today morning which made the dite down for about 2 hours.
Thank @zhangwenan 's report, ref hexojs/hexo#1642 , I convert my commit and rebuild the site, but because the site use cloudflare as CDN, so until now, the site may still have some problem.

That's all. And this mistake makes me think more.

We should modify the build script that when we meet an error, we should stop the build instead of uploading the wrong page. I will pull a request late about this.

ref: https://travis-ci.org/hexojs/site/builds/95942765

I hope my mistake will not lead to a disaster, 😞 .

An Email from KeyCDN

Hi guys

I've seen that you're all contributing to hexo.io which is a awesome framework that I've been using as well!
At KeyCDN we're interested in a closer integration with hexo.io and KeyCDN. What do you think?

KeyCDN is operating a high-performance content delivery network (CDN) made in Switzerland that supports the next generation web protocol HTTP/2. We are dedicated to make content delivery smarter and less expensive with a true pay-as-you-go pricing model (no charges for HTTP requests and free custom SSL).Looking forward to your feedback.

Kind regards,
Jonas
https://www.keycdn.com

What do you think?

Better Documentation for filter/generator intended order of operation.

There is currently little to no documentation on the intended order of the many phases of filter/generator operations.

There are two minifiers I know of that do not work well with other plugins as they execute prior to the other plugins. One example I ran into recently is the hexo-generator-amp plugin which will execute after the minifier plugins and thus create content that is not minified.

It is obviously possible to dig into the source (or set breaks in a debugger) to interpret what WILL happen, but if there is ever a bug that alters the desired flow this may not be apparent to others.

It would also be a good idea to include some best practice documentation for plugin developers. One recommendation is to make sure to expose priority of plugins to the site configuration so the author can easily adjust priority of competing plugins.

RTL for docs translation

Hello dears,
How can I add an Arabic translation to the
docs if it doesn't supports RTL?
Or can I modify the navy theme to supports RTL?

Is it possible to use hexo docs site theme?

I want to build a project docs site and I'm very fascinated with hexo docs site https://hexo.io/docs/. It is almost perfect for project docs:

  • Left Navigation: show all article titles grouped by category
  • Right Navigation: show all anchors (headers) in this article
  • Clear and light render style

Unfortunately my website and front-end knowledge is so poor that I cannot find out a minimal set of code can be used to a new site to satisfy my needs as above.

I've tried to search by the "navy" name implied by the theme folder in this repo, but found nothing.

Is there an easy way to use this theme into my project? For example, just install by clone or copy few files and change some necessary configs.

API documentation missing information on available global and command options.

Such as --cwd and --config

Again, this is specifically for the API:

var Hexo = require('hexo');
var hexo = new Hexo(process.cwd(), {});
hexo.init().then(function(){
  hexo.call('generate', {}).then(function(){
    // ...
  });
});

and etc. The options used for the command line version exist for the javascript API version or am I confused at the usage of the API?

themes are gone

as first time user of hexo, i wanted to check out the themes section on the site.... i get a 404.

i did some digging and i saw on https://github.com/hexojs/hexojs.github.io that on jan 1, 2018 the themes folder is gone but the commit before that has it !

please bring it back, thanks and happy new year !

Translate the documentation to portuguese.

Hey guys, I used Hexo to build my blog and recently I started to build my personal website with it and i'm really interested in translating the docs to portuguese which is my native language.

I want to know want do you think about this idea.

頁面錯誤

permalink 文章 永久連結 的格式 :year/:month/:day/:title/

{% note info 網站存放在子目錄 %} 如果您的網站存放在子目錄中,例如 http://yoursite.com/blog,則請將您的 url 設為 http://yoursite.com/blog 並把 root 設為 /blog/。 {% endnote %}

post_asset_folder 啟動 Asset 資料夾 false

把檔案庫(repository)複製到電腦上,並安裝相依套件。
{% code %} $ git clone https://github.com//site.git $ cd site $ npm install {% endcode %}

應該是$ git clone https://github.com/hexojs/site

languages
語言資料夾。請參見 本地化 (i18n)

(連結標題為「國際化(i18n)」)

improve search

The results I´m getting when are try to search the docs using the search box are very irrelevant.
Try searching for "categories"

how to render 'note' tag using in this site

I found this site using some expending markdown tags such as {% note warn Mac 用户 %} 您在编译时可能会遇到问题,请先到 App Store 安装 Xcode,Xcode 完成后,启动并进入 **Preferences -> Download -> Command Line Tools -> Install** 安装命令行工具。 {% endnote %}

But the hexo can't render them directly, some error occurred when I added them to my post markdown. How to fix this problem? thanks.

codeblock tag not available in swig template

Here is the doc: https://hexo.io/docs/tag-plugins.html
It show usage of

{% codeblock %}
alert('Hello World!');
{% endcodeblock %}

image

but it's not available in hexo v3.1.1

$ hexo -v

hexo: 3.1.1
os: Darwin 15.2.0 darwin x64
http_parser: 2.5.0
node: 4.2.2
v8: 4.5.103.35
uv: 1.7.5
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 56.1
modules: 46
openssl: 1.0.2d
$ cat package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.1.1"
  },
  "dependencies": {
    "hexo": "^3.1.1",
    "hexo-generator-archive": "^0.1.3",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-tag": "^0.1.2",
    "hexo-renderer-ejs": "^0.1.0",
    "hexo-renderer-stylus": "^0.3.0",
    "hexo-renderer-marked": "^0.2.6",
    "hexo-server": "^0.1.2"
  }
}

If it was provided in older version & removed from v3.x. then the document should be updated too.
or should I npm install a module to get it right, it should be documented too.

Double TOC in chrome

When open bookmark bar in zh-cn/docs, and scroll to bottom, it happens.

Chrome 60.0.3112.90,the latest Chrome too.

bug

I found it ups to the screen resolution(2560*1440 2K)

Missing list of available values on Hexo helpers' options.

The default values are shown but not all available values are shown. (How will we know what else is accepted?)

Example for:

<%- list_tags([options]) %>
Option Description Default
orderby Order of categories name
style Style to display the tag list. list displays tags in an unordered list. list

What other values are available other than name or list?

Configuration docs

At site/source/docs/configuration.md you don't list a config spec for 'disqus_shortname' I think others will appreciate if you write about the spec without resorting to look at the comment section

---Update: Found the older issue which was the same question which is solved.

Horisontal scroll on all pages

Screenshot

screen shot 2017-03-20 at 9 42 30 pm

It seems like .mobile-nav-dimmer is causing the problem, since if you display none it, the scroll goes away.

Advise users to add the source to the github repository

Hello everyone!

In the docs, there's no advice about this question. If you deploy on Github Pages, the Master will be cleared and you'll loose all of your files. If you teach the users to create a new branch (for example, called source), they'll keep their source code and deploy in a Github repository.

Thanks!

Persian translation of the site

Hi
I am interested in providing a Persian translation for this site.
I add new locale in local repo then PR for change...

How to remove the search box without causing scroll bug ?

I've tried many ways to remove the search bar since I don't want it in my site, including:

  1. remove the algolia segment in _config.yml
  2. remove the corresponding script in after_footer.swig
  3. change the css of the search box to hide it.

However, once the search box is not displayed or the script in after_footer is removed, the strange thing happen:
click on one news link in the news page, then swipe back to the previous page, I can't scroll up and down !

I use safari on mac. Any helps are welcomed. Thank you!

[Question]: Unhandled rejection TypeError: Cannot read property 'name' of undefined

I am using scripts/helper.js to help me accomplish something I want.

But it always failed, saying Unhandled rejection TypeError: Cannot read property 'name' of undefined

'name' is : https://github.com/hexojs/site/blob/master/scripts/helpers.js#L147
Here's the log:

Unhandled rejection TypeError: Cannot read property 'name' of undefined
    at Object.<anonymous> (/home/gabriel/Documents/git_project/Gabirel.github.io/scripts/helpers.js:147:14)
    at wrapper (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/._lodash@4.17.4@lodash/lodash.js:4968:19)
    at Object.eval [as tpl] (eval at precompile (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/._swig@1.4.2@swig/lib/swig.js:498:13), <anonymous>:7:127)
    at compiled (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@swig/lib/swig.js:619:18)
    at Object.eval [as tpl] (eval at precompile (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@swig/lib/swig.js:498:13), <anonymous>:95:173)
    at compiled (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@swig/lib/swig.js:619:18)
    at Object.eval [as tpl] (eval at precompile (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@swig/lib/swig.js:498:13), <anonymous>:736:163)
    at compiled (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@swig/lib/swig.js:619:18)
    at Theme._View.View._compiled (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@hexo/lib/theme/view.js:127:30)
    at Theme._View.View.View.render (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@hexo/lib/theme/view.js:29:15)
    at /home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@hexo/lib/hexo/index.js:390:25
    at tryCatcher (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@bluebird/js/release/util.js:16:23)
    at /home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@bluebird/js/release/method.js:15:34
    at RouteStream._read (/home/gabriel/Documents/git_project/Gabirel.github.io/node_modules/[email protected]@hexo/lib/hexo/router.js:134:3)
    at RouteStream.Readable.read (_stream_readable.js:350:10)
    at resume_ (_stream_readable.js:739:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

I do have the file: source/_data/languages.yml

en: English
zh-tw:
  name: 正體中文
  disqus_lang: zh_TW
zh-cn:
  name: 简体中文
  disqus_lang: zh

Just add new content in English version

When I update the document of zh-cn, I have a idea that we can just add new content in english version, and other languages just keep pace with english version. In this way, it will make the translation work easier.

Disqus attribute left out of documentation

Unless I'm missing something, information on the attribute disqus_shortname is left out of the documentation. I really think this should be included there or at least with an empty value in _config.yml.

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.