Questions tagged [hexo]

Hexo is a blog framework powered by Node.js.

Hexo is a blog framework powered by Node.js. It parses posts with Markdown content or other render engines and generates static files with a theme.

280 questions
3
votes
1 answer

How to add canonical link in hexo blog?

I have setup a hexo blog and configure two top level domain pointing to same instance e.g. domain.com and domain.org I want to set canonical URL for the entire site. There is plugin for this but I'm not able to understand what to do as I don't know…
pr4bh4sh
  • 654
  • 3
  • 12
  • 19
3
votes
0 answers

Hexo (and other static-site-generators) front-end dependency-management workflow

Are there any recommended workflows for managing front-end dependencies? I've been reading a lot of articles that recommend moving away from Bower, and on to an npm-only solution like Webpack, but Webpack is a whole new paradigm (loading js, scss,…
KFunk
  • 2,956
  • 22
  • 33
3
votes
4 answers

NodeJS Error: Module version mismatch. Expected 48, got 46

After I upgraded NodeJS and NPM to 6.2.0 and 3.9.3, when I run hexo d -g command to update my blog, I get the following error: Error: Module version mismatch. Expected 48, got 46. at Error (native) at Object.Module._extensions..node…
Yifei Wang
  • 33
  • 1
  • 4
3
votes
3 answers

How do I disable linenums in a markdown codeblock?

I'd like to disable line numbers for just a single block of code in a markdown formatted document. Neither scanning through the related documentation nor searching on google show me the correct incantation for this, though I'm sure it's…
blueberryfields
  • 45,910
  • 28
  • 89
  • 168
3
votes
2 answers

db.json file is created and added to .gitignore using hexo.io

I have been trying to find what a db.json is and why it is being automatically genereated. All the documentation says in hexo.io is: $ hexo clean Cleans the cache file (db.json) and generated files (public). What is this exactly? Since these are…
HelloWorld
  • 10,529
  • 10
  • 31
  • 50
3
votes
2 answers

How to edit CSS and HTML in frameworks such as Hexo using Node.js

I am new to Node.js and decided to try to make a blog website using Hexo. The problem I am having is trying to edit the main style sheet and index files to include a new web font (or any editing in general). The way I figured it would work is I…
Milo
  • 3,365
  • 9
  • 30
  • 44
3
votes
1 answer

Deploy nodejs app to heroku

I used https://github.com/tommy351/hexo to create a blog and hope to deploy to heroku hexo instruction Installation $ npm install hexo -g Quick Start Setup your blog $ hexo init blog $ cd blog $ npm install Start the server $ hexo…
arachide
  • 8,006
  • 18
  • 71
  • 134
2
votes
1 answer

How to change the author of the sidebar of hexo(next theme)?

I've changed the author in the configuration file, but I only get my name changed at the bottom of the website, while the name of the sidebar remains unchanged(following is the unchanged sidebar, and another figure of my name changed at the bottom…
narip
  • 175
  • 7
2
votes
0 answers

hexo deploy finding .js and .css can't be loaded

I use hexo to build my blog, using hexo s to preview in localhost:4000 is fine using hexo d to deploy in a remote cloud storage service,and .js an .css resource can not be loaded I checked F12, finding that resource is all 403 and finding…
Calvino Shaw
  • 481
  • 1
  • 7
  • 10
2
votes
2 answers

Hexo cannot display "next" theme

Noob here. I want to build a personal blog using Hexo with theme next, but I met some problems (no problems with other themes, e.g. landscape). I typed hexo s -g Cmd line returns INFO Validating config INFO Start processing WARN …
CSY
  • 131
  • 1
  • 10
2
votes
1 answer

Can Hexo generate PDF file?

Is there a plugin or some option that instead of using "Hexo generate" static website, I can export pages into pdf? ( I'm using Hexo for tech dox )
t-str-os
  • 57
  • 6
2
votes
0 answers

How to install Disqus on a static website with CSP enabled?

How should one proceed if one needs to implement Disqus through the Universal Code option on a website with Content Security Policy (CSP) enabled, e.g. a static website built with Hexo? According to Mozilla's MDN web docs: Content Security Policy…
2
votes
1 answer

Hexo : How to read query param of the URL in ejs by using hexo framework helpers?

<%- config.url %> will return domain name. <%- url_for(page.path) %> will return remaining URL after domain name but not the query param? Can anyone help me to read query param ? For example : http://localhost:4000/create.html?step=1 <%-…
Murali Krishna
  • 96
  • 1
  • 12
2
votes
0 answers

How is the root index.html generated?

I am building a blog site with Hexo, with my own template and layouts, and I do not understand how the root index.html is supposed to be built. I will have one home page (the index.html above) and posts. My idea was that I would have: an index.html…
WoJ
  • 27,165
  • 48
  • 180
  • 345
2
votes
2 answers

Publishing a blog with hexo gives me a a barebones site, why does it not look the same as when I run `hexo server`

I made a blog with hexo and wrote an article in markdown. I ran hexo server and saw the changes on localhost:4000, but when I ran hexo generate and tried to open the index.html file in the public/ folder, it appeared completely barebones Isn't the…
A_toaster
  • 1,196
  • 3
  • 22
  • 50
1 2
3
18 19