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
0
votes
1 answer

Hexo for magazine site

I would like to develop a magazine site using Hexo, I plan to have interviews for my posts. I chose to use .html and not .md as I wanted my _posts to be styled (titles floating left and images right and so on...) now each post has a lot of html,…
Emma Stone
  • 135
  • 1
  • 11
0
votes
1 answer

How to get rid of "categories" in url in hexo

In Hexo I would like to get rid of categories in the url. right now it looks like: localhost:4000/categories/artists localhost:4000/categories/projects I would like to strip categories so that the urls…
Pwdr
  • 3,712
  • 4
  • 28
  • 38
0
votes
1 answer

How to embed the html5 page in hexo?

The question is just like the title said. I want to know how to embed a html5 page with a src folder contains the images and a js folder contains the javascrpts in hexo framework.
truejasonxiefans
  • 179
  • 2
  • 12
0
votes
1 answer

Stuck with hexo variables scope

I have been code a Hexo theme recently, now I stuck with the variables. I read the doc, but could not get much info. For example: On the last paragraph of the variables of the doc: Tag (tag): Same as index layout but add the following…
sfy
  • 2,810
  • 1
  • 20
  • 22
0
votes
1 answer

Error in hexo deploy to heroku

I am trying to do a hexo deploy to heroku, but this error shows up: remote: Building source: remote: remote: -----> Failed to detect set buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz remote:…
Cherenkov
  • 485
  • 1
  • 8
  • 16
0
votes
1 answer

If/else front matter in Hexo

I have a markdown file in Hexo with the following in the front matter: --- title: something blog post tags: - local - world categories: - news date: 2016-07-27 15:08:51 twitter: twittername facebook: --- I have added two test variables…
0
votes
1 answer

How to pass custom variable to partial in hexo?

I want to create an alternating layout using the static site generator hexo – the text of every second post on an overview page should be on the right. The partial I’m using needs to pass on a custom variable like textOrientation = "left" to the…
Pwdr
  • 3,712
  • 4
  • 28
  • 38
0
votes
2 answers

Hexo for multiple sites?

What's the best way of creating multiple Hexo sites? I wanted to redo all of my sites (I have around 10 sites in total) would I just run: $ hexo init site1 $ hexo init site2 $ hexo init site3 ... and so on? Is there a better way of dealing with…
Hanna
  • 13
  • 4
0
votes
2 answers

Better Hexo title tag

I have setup my posts in Hexo and assigned tags to each post. However the title tag is not capitalizing the way I would like. This is the rendered HTML: Viewing pizza | My site But I would to achieve this: Viewing Pizza | My…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/ejs" class="post-tag grid--cell" title="show questions tagged 'ejs'" rel="tag">ejs</a> <a href="../../questions/tagged/hexo" class="post-tag grid--cell" title="show questions tagged 'hexo'" rel="tag">hexo</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 26 '16 at 08:13">asked Aug 26 '16 at 08:13</time> <a href="../../users/5898548/user5898548" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5898548.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user5898548" /> </a> <div class="s-user-card--info"> <a href="../../users/5898548/user5898548" class="s-user-card--link">user5898548</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">73</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badges">7</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-38707297"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/38707297/extending-markdown-tags-without-processing-the-code" class="question-hyperlink">Extending Markdown tags without processing the code</a></h3> <div class="excerpt">I am working with Hexo - a nodeJS based static blogging CMS, I am extending the hexo API to register a new block tag called tabblock, see here: hexo.extend.tag.register('tabblock', function (args, content) { var tabNumber =…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/node.js" class="post-tag grid--cell" title="show questions tagged 'node.js'" rel="tag">node.js</a> <a href="../../questions/tagged/markdown" class="post-tag grid--cell" title="show questions tagged 'markdown'" rel="tag">markdown</a> <a href="../../questions/tagged/hexo" class="post-tag grid--cell" title="show questions tagged 'hexo'" rel="tag">hexo</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 01 '16 at 20:10">asked Aug 01 '16 at 20:10</time> <a href="../../users/4620733/george-edwards" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4620733.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="George Edwards" /> </a> <div class="s-user-card--info"> <a href="../../users/4620733/george-edwards" class="s-user-card--link">George Edwards</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">8,979</li> <li class="s-award-bling s-award-bling__gold" title="20 gold badges">20</li> <li class="s-award-bling s-award-bling__silver" title="78 silver badges">78</li> <li class="s-award-bling s-award-bling__bronze" title="161 bronze badges">161</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-38660655"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/38660655/paginate-none-index-page-in-hexo" class="question-hyperlink">Paginate none index page in Hexo</a></h3> <div class="excerpt">In Hexo, how do I paginate a page that's not the index? I have a page called: blog.md under pages, and have created a new file called blog.ejs in my layouts folder. In the blog.md front matter I added: layout: blog And added to blog.ejs: <ul> <%…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/node.js" class="post-tag grid--cell" title="show questions tagged 'node.js'" rel="tag">node.js</a> <a href="../../questions/tagged/ejs" class="post-tag grid--cell" title="show questions tagged 'ejs'" rel="tag">ejs</a> <a href="../../questions/tagged/hexo" class="post-tag grid--cell" title="show questions tagged 'hexo'" rel="tag">hexo</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jul 29 '16 at 13:54">asked Jul 29 '16 at 13:54</time> <a href="../../users/5898548/user5898548" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5898548.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user5898548" /> </a> <div class="s-user-card--info"> <a href="../../users/5898548/user5898548" class="s-user-card--link">user5898548</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">73</li> <li class="s-award-bling s-award-bling__bronze" title="7 bronze badges">7</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-37755300"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/37755300/github-page-not-working-with-hexo" class="question-hyperlink">Github Page not working with hexo?</a></h3> <div class="excerpt">I am recently developing my personal blog using Hexo framework but I have problem pushing my web content to Github Page Service to host my web application. I buy a domain name for my website. I am following the Hexo deployment instruction here but…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/git" class="post-tag grid--cell" title="show questions tagged 'git'" rel="tag">git</a> <a href="../../questions/tagged/github" class="post-tag grid--cell" title="show questions tagged 'github'" rel="tag">github</a> <a href="../../questions/tagged/github-pages" class="post-tag grid--cell" title="show questions tagged 'github-pages'" rel="tag">github-pages</a> <a href="../../questions/tagged/hexo" class="post-tag grid--cell" title="show questions tagged 'hexo'" rel="tag">hexo</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jun 10 '16 at 18:48">asked Jun 10 '16 at 18:48</time> <a href="../../users/3259795/user3259795" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3259795.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user3259795" /> </a> <div class="s-user-card--info"> <a href="../../users/3259795/user3259795" class="s-user-card--link">user3259795</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">17</li> <li class="s-award-bling s-award-bling__bronze" title="3 bronze badges">3</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-37640893"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/37640893/how-to-run-hexo-in-subdirectory" class="question-hyperlink">how to run hexo in subdirectory</a></h3> <div class="excerpt">As title, I want to run hexo in http://here/blog, so I tried edit _config like this: url: http://here/blog root: /blog/ but after hexo generate, the link in the index.html look like this <script src="/js/pace.js"></script> but not <script…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/node.js" class="post-tag grid--cell" title="show questions tagged 'node.js'" rel="tag">node.js</a> <a href="../../questions/tagged/express" class="post-tag grid--cell" title="show questions tagged 'express'" rel="tag">express</a> <a href="../../questions/tagged/subdirectory" class="post-tag grid--cell" title="show questions tagged 'subdirectory'" rel="tag">subdirectory</a> <a href="../../questions/tagged/hexo" class="post-tag grid--cell" title="show questions tagged 'hexo'" rel="tag">hexo</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jun 05 '16 at 10:33">asked Jun 05 '16 at 10:33</time> <a href="../../users/5934999/edison-chen" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5934999.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="edison Chen" /> </a> <div class="s-user-card--info"> <a href="../../users/5934999/edison-chen" class="s-user-card--link">edison Chen</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">47</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="3 bronze badges">3</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-36926216"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/36926216/how-to-use-hexojs-with-a-different-source-dir-and-base-dir" class="question-hyperlink">How to use hexojs with a different source_dir and base_dir?</a></h3> <div class="excerpt">I have developed an open source API documentation tool using hexo.js called "Whiteboard" - https://github.com/mpociot/whiteboard Right now it works by cloning the repository, modifying the source folder content and basically running hexo serve or…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/javascript" class="post-tag grid--cell" title="show questions tagged 'javascript'" rel="tag">javascript</a> <a href="../../questions/tagged/node.js" class="post-tag grid--cell" title="show questions tagged 'node.js'" rel="tag">node.js</a> <a href="../../questions/tagged/hexo" class="post-tag grid--cell" title="show questions tagged 'hexo'" rel="tag">hexo</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 28 '16 at 21:57">asked Apr 28 '16 at 21:57</time> <a href="../../users/1076964/marcel-pociot" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1076964.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Marcel Pociot" /> </a> <div class="s-user-card--info"> <a href="../../users/1076964/marcel-pociot" class="s-user-card--link">Marcel Pociot</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">118</li> <li class="s-award-bling s-award-bling__bronze" title="6 bronze badges">6</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-36497424"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/36497424/node-app-failed-on-heroku" class="question-hyperlink">Node app failed on Heroku</a></h3> <div class="excerpt">I've managed to push https://github.com/hexojs/hexo to heroku but when I view app at http://warm-shelf-26895.herokuapp.com/ it failed completely. I'm new to this can anybody tell me what went wrong and how to solve this ? TQ $heroku…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/heroku" class="post-tag grid--cell" title="show questions tagged 'heroku'" rel="tag">heroku</a> <a href="../../questions/tagged/hexo" class="post-tag grid--cell" title="show questions tagged 'hexo'" rel="tag">hexo</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 08 '16 at 10:34">asked Apr 08 '16 at 10:34</time> <a href="../../users/2714555/reezal-aq" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2714555.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Reezal AQ" /> </a> <div class="s-user-card--info"> <a href="../../users/2714555/reezal-aq" class="s-user-card--link">Reezal AQ</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">117</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="13 bronze badges">13</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/hexo_page=16" rel="prev" title="Go to page 16">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/hexo_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/hexo_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/hexo_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/hexo_page=18" rel="" title="Go to page 18">18</a> <a class="s-pagination--item" href="../../questions/tagged/hexo_page=19" rel="" title="Go to page 19">19</a> <a class="s-pagination--item" href="../../questions/tagged/hexo_page=18" rel="next" title="Go to page 18"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>