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

Adding image as variable in Hexo (ejs template)

In my .md file I specified blogpost-image as a new front-end variable. In my article.ejs file I have following:
<%- post.blogpost-image %>
And in my .md file I have this path ...…
user4752928
2
votes
1 answer

How to use hexo to pop up a picture

I changed the hexo (landscape theme) sharing button, the following is the code. (HEXO\themes\landscape\layout_partial\article.ejs)
2
votes
3 answers

Hexo changes Custom Domain on Github when deploying to the Github Repository

I created my blog website in Hexo, and I am using the default hosting that Github provides. Github allows you to specify the default name of your domain just like that: As you can see my default url: ponyczek.github.io has been set to…
Adrian Grzywaczewski
  • 868
  • 1
  • 12
  • 25
2
votes
2 answers

Remove index.html from Hexo URL?

In Hexo how do I remove the index.html bit from page.path? My code: Rendered HTML: Thank you in advance
2
votes
0 answers

Hexo - Same title under different categories changing permalink

I have a hexo setup that uses Permalink category/page. My question is that is there any way to use same titles under different categories? For example, I need A "Statistics" page under category "India" and "USA". When I'm trying to do this, hexo is…
2
votes
1 answer

failed to load resource hexo.js

I'm using HexoJS to create a blog. I was able to generate the static files using hexo generate. Even though there are css files and JS files generated, they are not properly linked to the index.html. So, I have to open each html page and correct…
ONE_FE
  • 968
  • 3
  • 19
  • 39
2
votes
1 answer

How to filter posts by tag in Hexo?

Using the static site generator Hexo I need to display all posts which are tagged as featured on the landing page (index.ejs). The tags are defined in the individual post files: title: Lorem tags: - featured - web The code to iterate over all…
Pwdr
  • 3,712
  • 4
  • 28
  • 38
2
votes
3 answers

How can I change order of iteration through the posts in site.posts in layout.ejs in hexo?

I would like to use hexo such that I have a sidebar that appears on every page (a sidebar in layout.ejs) which has links to all my posts in reverse chronological order. In my theme I have a sidebar.ejs snippet that looks like this:
maxfowler
  • 1,168
  • 13
  • 23
2
votes
0 answers

How to disable post processor for some files with custom plugin in hexo?

I am using hexo and I want some files to only be processed by my custom processor. Though I have registered my custom processor and it does process some files(says A.md), the default post processor still processes and renders A.md. How to disable…
Perqin
  • 755
  • 10
  • 27
2
votes
1 answer

Publish Hexo drafts without being listed as Posts

I'm using Hexo as Static Site Generator and I want to process _drafts to public folder but without being listed as post. I want to name.md draft go to public/drafts/name.html so I can show that draft published but not listed. Thanks
Lucas Katayama
  • 4,445
  • 27
  • 34
2
votes
2 answers

hexo:ERROR Deployer not found: github

problem: hexo-blog$ hexo deploy ERROR Deployer not found: github then i do this Hi XXXXXX! You've successfully authenticated, but GitHub does not provide shell access. and hexo-blog$ git remote -v origin …
panda0
  • 192
  • 1
  • 18
2
votes
0 answers

console.log and util.inspect are not printing an object correctly

In only a specific object, when I use console.log or I print the result of util.inspect I got just the number 1 or 2 as the result. How do I now that the object printed is not just the number 1 or 2? I use the debugger inspector to see the…
J. Lennon
  • 3,311
  • 4
  • 33
  • 64
2
votes
0 answers

How to save array of data pages in hexo from node

I'm trying to build a site with Hexo from list of pages from an array of objects instead a folder. I'd like to use hexo just because I don't want to reinvent the wheel and because it seems to be very handful, but I didn't got how to pass a json…
vitto
  • 19,094
  • 31
  • 91
  • 130
2
votes
3 answers

Why does Hexo generation take so long?

As file count increases, Hexo spends more and more time generating the static HTML files using 'hexo g'. Why does Hexo reconstruct every single '.md' file, instead of limiting itself to the files modified? My Hexo version is 3.0.1.
CodingMonkey
  • 135
  • 7
2
votes
2 answers

How to develop with Hexo.io

I am using Hexo.io and like it so far but I am totally baffled by the workflow. This is what I have to do - in one terminal I run hexo server so that I can see the local site. It insist on adding a hello world post (part of the core modules) and no…
cyberwombat
  • 38,105
  • 35
  • 175
  • 251