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
65
votes
4 answers

How to create horizontal line in Markdown (using hexo framework)

I'm using the hexo framework and tried adding "---" or "***" in my .md file to get a horizontal line to show up, but it's not working. Also tried enabling gfm markdown in my _config.yml file: marked: gfm: true pedantic: false sanitize:…
Joan
  • 905
  • 2
  • 9
  • 15
33
votes
2 answers

How do I escape three backticks surrounded by a codeblock in markdown?

First, I'd like to say that I've read some recommended questions that may seem to answer my question, but they're all about escape single backtick in markdown. I've tried but none of them seem to work. Here's what I've tried. 1.Double backtick -…
Calios
  • 806
  • 9
  • 23
22
votes
3 answers

How do I delete a post in hexo

I am using to write my blog, I meet a trouble that I can not delete a post in blog. I just find create a post in command, but I could not find the delete or drop command. How can I delete a post in properly? What command should I use? In…
hyyy
  • 221
  • 2
  • 3
12
votes
4 answers

npm ERR! Cannot read properties of null (reading 'matches')

After I installed hexo, I used npm install to complete the packages in package.json, but he reported an error, the content of the error is as follows ❯ node --version v18.12.1 ❯ npm --version 9.1.3 ❯ npm install ············ npm WARN dev…
Sam Ma
  • 121
  • 1
  • 4
11
votes
3 answers

Global Node Packages Installed to Wrong Directory

I'm trying to install Hexo globally using npm. When I run npm install -g hexo-cli I'm informed that it was installed to /Users/myusername/.node/bin/hexo -> /Users/myusername/.node/lib/node_modules/hexo-cli/bin/hexo The problem comes in when I…
Punt Speedchunk
  • 613
  • 1
  • 5
  • 12
11
votes
4 answers

How to add route for Hexo?

In the theme _config.yml has two default route: / and /archieves. Is there possible to add a route like /about? I tried to add /about in _config.yml, but Cannot GET /about/ shows.
Leo Gao
  • 629
  • 1
  • 6
  • 17
8
votes
2 answers

Stopping GitLab from skipping Git submodules during CI job?

I'm testing out deploying a Hexo site on GitLab Pages. I'm currently using a theme that someone has posted to GitHub, and thus have a Git submodule in the themes folder of my Hexo project such that the top-level .gitmodules file looks…
Jonathan Jeffrey
  • 432
  • 1
  • 3
  • 12
8
votes
6 answers

Add Favicon to Hexo Blog

I have made a Hexo blog. I can't however find out where to add the favicon. I have tried adding it to different folders but it isn't being found. Does anyone know where it should be added or if there is anything else I need to update.
Brian Douglas
  • 141
  • 1
  • 4
6
votes
1 answer

node-sass: File to import not found or unreadable: ./node_modules/

This is my project files/folders structure: myproject/ themes/ mytheme/ .node_modules/ source/ css/ mytheme.sass _config.yml package.json So, I modified my…
Jonathan
  • 375
  • 1
  • 7
  • 18
6
votes
1 answer

How do I more efficiently insert footnotes into a Hexo post?

I have been trying to insert footnotes into my Hexo posts (written in Markdown, if their markup language is relevant). I come from a background of using Jekyll to power my websites and when I used Jekyll I would add [^n] (where n is a positive…
Josh Pinto
  • 1,453
  • 4
  • 20
  • 37
6
votes
2 answers

How do I configure pm2 to run hexo?

I've used pm2 in the past for my express apps. I really like it. How do I get it to run hexo. Hexo starts with hexo server rather than with a js entry point.
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
6
votes
1 answer

How to create a pagination system in Hexo

I love using Hexo.. :) I've setup custom page. Is it possible to show all post in my page as paginated? Using site.posts got me all post without pagination. What should I do to get all post as paginated from page? Thanks.
rahmat
  • 1,727
  • 16
  • 35
5
votes
1 answer

How to use Vue.js in Hexo (static site generator)?

I would like to use vue.js for parts of a template in my hexo theme. How can I compile my .vue-files to be used in my template (in dev and production)? I’m not talking about server side rendering, vue.js should run on the client side (but would also…
Pwdr
  • 3,712
  • 4
  • 28
  • 38
5
votes
5 answers

hexo change folder structure when generate static files

First of all, thanks Hexo. Here is my question: I set post_asset_folder to true in the Hexo configuration file. Then I run: $ hexo new first. then: $ ls source/_posts/ first/ first.md hello-world.md I added a pic named pic.png into…
seekkAn
  • 51
  • 3
4
votes
1 answer

How to add login with google on my Hexo Blog?

I recently created a blog using Hexo and using the Aurora theme. I would like to know how to add the connection with google so that we can leave comments. I haven't found anything on the internet as a plugin or tutorial to implement this
Lolix Dudu
  • 313
  • 2
  • 15
1
2 3
18 19