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

Failing to deploy website on Netlify when trying to use alternate hexo theme

·Trying "git clone" lead to the following message when deploying: failed during stage 'preparing repo': Error checking out submodules:fatal: No url found for submodule path 'themes/ocean' in .gitmodules ·Trying "git submodule add" lead to the…
Dzx
  • 61
  • 1
  • 4
4
votes
1 answer

Permalink in const_url

In my config file I basically have permalink: :inLink/:title/ which makes the following possible: https://example.com/hello/post-1 (= all good!) So, inLink = hello in my markdown file. Now I have this line also … const post_url =…
user4752928
4
votes
0 answers

hexo, pug: howto create pug content that uses a pug layout from the theme

How can I move blocks from pug templates in source into pug templates in a theme? New to hexo. Working on a hexo-theme-bootstrap4-starterkit theme. Made some pug template using pug -w index.pug. Trying to move my content out of…
Michael Cole
  • 15,473
  • 7
  • 79
  • 96
4
votes
2 answers

How to implement a tabbed codeblock tag for Hexo

I am trying to create tabbed code-blocks (as a tag plugin) in hexo but I cannot figure out where to put my js function. I thought I could load the function using the js helper but I don't know where to include the helper. I tried, and failed, to add…
Dan
  • 45,079
  • 17
  • 88
  • 157
4
votes
3 answers

How to use Markdown to display timeline?

I would like to display timeline information using markdown, how to do? By the way, I want to make it in hexo.
chenzhongpu
  • 6,193
  • 8
  • 41
  • 79
4
votes
1 answer

How do i control post publish dates with hexo?

I'd like to schedule some posts to be published in the future, and migrate some posts from other sites, which were published in the past. I've tried modifying the unix file creation date for my source files, but that doesn't seem to do the right…
blueberryfields
  • 45,910
  • 28
  • 89
  • 168
4
votes
1 answer

Hexo excerpt not working after update

I just updated my Hexo blog to the latest version. After updating, the tag seems to stop working. Instead of showing an excerpt on the homepage it just shows all the content. I am using the Next theme. I found an issue on the hexo…
4
votes
3 answers

How can I tell Hexo to ignore a file when creating posts?

In source/_posts I have post.md and post/ directory to hold assets for post.md. In post/ I have js/main.min.js which is being used in post.md to illustrate something. Hexo is picking up the main.min.js and creating a post for it. How can I get…
justin
  • 3,357
  • 1
  • 23
  • 28
4
votes
5 answers

Node.js ERROR Error: Cannot find module 'bluebird'

When I try this,it throw an error,how can I solve it? $ hexo generate ERROR Error: Cannot find module 'bluebird' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require…
Lihz
  • 59
  • 1
  • 1
  • 2
4
votes
1 answer

Hexo: How do you change language?

I have read doc below, but didn't get how. http://hexo.io/docs/localization.html Anyone knows exacly how ? I want my blog in either japanese or english. I tried: set lang: to ja-jp set lang: to en
toshi0383
  • 396
  • 1
  • 2
  • 12
3
votes
2 answers

.ejs formatting in VSCode

This is my problem - its unreadable In order to get .ejs working in general, I've so far added the following. I also have format on save and prettier. I'm looking for proposals to get better formatting of this so that I can read…
Simon H
  • 20,332
  • 14
  • 71
  • 128
3
votes
1 answer

hexo with tailwind and postcss

I'm trying to use tailwind with hexo. It looks from https://tailwindcss.com/docs/installation/#using-tailwind-with-postcss that I need wire up postcss so I have based myself on https://github.com/chuangker/hexo-renderer-postcss I tried changing the…
Simon H
  • 20,332
  • 14
  • 71
  • 128
3
votes
1 answer

what is `__()` (double underscore) function in hexo?

I'm learning to build a hexo theme recently, but I am confused about __() function. I didn't find answer in hexo doc. I have no idea this is in-built or what? this code is from theme-minos: <% let words =…
Kexin Li
  • 218
  • 2
  • 10
3
votes
2 answers

How to Rename post in Hexo

How can I rename published post in hexo? Currently, I am deleting existing post and creating the new one by copying contains from an old post. is there any better way of doing this?
Niraj Sonawane
  • 10,225
  • 10
  • 75
  • 104
3
votes
2 answers

How to use nunjuck `include` in post?

I'm playing around with hexo, I'm testing the nunjuck syntax which work for a small loop. However I can't find how to include a file, I might be wrong in the location of my file (currently next to the .md, in /source/_posts). Environment Info Node…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
1
2
3
18 19