Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 30 15:49

    SukkaW on master

    feat(helper/toc): more flexible… (compare)

  • Jun 30 15:49
    SukkaW closed #5010
  • Jun 30 15:00
    edgexie commented #4268
  • Jun 30 14:36
    coveralls commented #5010
  • Jun 30 13:29
    github-actions[bot] commented #5010
  • Jun 30 13:29
    renbaoshuo opened #5010
  • Jun 30 12:57

    SukkaW on master

    chore(test/extend/tag): async f… (compare)

  • Jun 30 12:57
    SukkaW closed #5003
  • Jun 30 12:56

    SukkaW on master

    feat(helper/is): add `is_home_f… (compare)

  • Jun 30 12:56
    SukkaW closed #5006
  • Jun 25 06:34
    stevenjoezhang transferred #5009
  • Jun 25 05:15
    yuanoOo edited #5009
  • Jun 25 05:15
    yuanoOo edited #5009
  • Jun 25 05:15
    yuanoOo edited #5009
  • Jun 25 05:14
    yuanoOo edited #5009
  • Jun 25 05:14
    yuanoOo edited #5009
  • Jun 25 05:13
    yuanoOo opened #5009
  • Jun 25 00:18
    kebuAAA commented #5004
  • Jun 24 23:13
    coveralls commented #5008
  • Jun 24 23:11
    github-actions[bot] commented #5008
David Antler
@dantler
Is there any way to use a filter/hook to prevent a .jpg file in my source directory from being generated in the public folder? Looking for an example somewhere.
I've tried hexo.extend.filter.register('before_generate', ...) to remove the route but that didn't work.
David Antler
@dantler
@tcrowe Seems like a good idea! Unfortunately "exclude" it doesn't seem to work for me. :(
David Antler
@dantler
Using a plugin that takes a .jpg asset file and produces resized copies. It would be cool if I could somehow exclude the original asset and keep the copies. 🤔
gautamz07
@gautamz07
@tcrowe was just going through this issue here ::- https://github.com/hexojs/hexo/pull/3544/files
what framework do you guys use for testing ?
David Antler
@dantler
@gautamz07 I just implement my own "Hello world"-tier site specific to reproduce the thing I'm debugging. ¯_(ツ)_/¯
gautamz07
@gautamz07
@YoshinoriN How do i PM you buddy !
@dantler hope u were successful , iám kinnda new to hexo so still kindda figuring stuff out :P
Conan_1996
@BlameKidd
你们谁知道在hexo里怎么修改gitter的框的大小 他总是上下占满整个屏幕 我想调一下 但是找不到地方
Amir Rustamzadeh
@amirrustam
Anyone using Hexo with Contentful: https://www.contentful.com/
If yes, are there any plugins or integrations out there?
RYeah Sh
@pantchox
Hi guys, who ever has a blog or post on Medium stuff that are related to programming, I am working on a new publishing platform, its my side project and i worked reallllly hard on it - I would love for your feedback! if you love publishing and curating content - PLEASE PM ME :)
if my message is not following chat room rules i will delete it! thanks.
Borche
@DeepSpaceHarbor_twitter
is it safe to use hexo.model api in my plugin?
I've seen it in the code of other plugins but it's not documented in the official website.
Borche
@DeepSpaceHarbor_twitter
Context: I'm trying to get all posts. According to the api docs, hexo.locals.get('posts') should help, but that api is returning only the first post, the rest of the posts are null.
hexo.model("Post") does the job, but it's not documented.
yoshinorin
@yoshinorin
@DeepSpaceHarbor_twitter
I'm not familiar with hexo model api. But, probably yes. I think post.js test code and warehouse api document will help you.
warehouse is data model for hexo.
GoogTech
@GoogTech
hello everybody
i am a Junior and come from China ~
it's my hexo blog for learning programming : https://yubuntu0109.github.io/
GoogTech
@GoogTech
there have any suggesstions for me ?
Hanyuu Lu
@HanyuuLu
Cool.
It seems that your link named test is not accessable?
GoogTech
@GoogTech
yes
Hanyuu Lu
@HanyuuLu
Your link to weibo pointed to your personal website.
I am an undergraduate in Nanjing and followed you in GitHub.
Your blogs are excellent and I learnt a lot.
GoogTech
@GoogTech
@HanyuuFurude
thanks for your appreciation, the link will be updated tonight ~ 🍻
sorry,a little late to reply .
Lokendra Sharma
@l0k3ndr
I guess, I think I kinda did a mistake. I recently started using hexo, and really it's useful. But I didn't knew that the code was not saved in my github.io repository. I thought it just commits the whole thing there. So I deleted my local copy, thinking later on I will get it back from my github. but when I checked now, I don't know how to setup hexo back again from the repo.
LiuBenben
@hibbb
@l0k3ndr It seems like that you used the deploy tool in hexo, but it only upload the generated files to the remote repo. If you delete the local files, the sourse files will disappeared forever.
Lokendra Sharma
@l0k3ndr
@liubenbencom Yes :( V_V V_V I had to recreate the source. This time I created a separate repo. I mean I just didn't knew that hexo won't save it. stupid of me to make that assumption.
Sergey Kryvets
@skryvets

How to properly regsiter a filter?
Following documentation on the website:

hexo.extend.filter.register('before_post_render', function (data) {
  console.log(Object.keys(data))
  console.log(data)
  data.title = data.title.toUpperCase()
  return data
})

Doesn't log anything which means it's not being executed.

I created a "scripts" folder and put this code in there, inside my-script.js file
kurt willis
@willisk
a little late, but is your scripts folder located in root/scripts and not in root/source/scripts?
Igal Tabachnik
@hmemcpy
Hello! I have a question about deploying. I noticed that every time my blog is deployed to gh-pages (using the deployer plugin), all of the old posts become "Edited" with the same date. Shouldn't only the changed posts become edited? How does hexo detect changes?
任我行
@FuShaoLei
I'm developing a theme recently,and i have some problem.one of problem is how to show all catigories and post,i mean like this```
categories1 - post1,categories2 - post2
GhostBasenji
@GhostBasenji
Hi everyone. I liked hexo. There is a bit of a problem. I chose the theme Aloha. There are no "Archive", "Tags", or "Categories"categories. And all. I don't know where to dig or what to write. I'm sorry if I disturbed you.
Ángel Cervera Claudio
@angelcervera

Hi all. One problem rendering this simple markdown:

```text
Hello
```

{% post_link recycled_homemade_cluster 'Recycled homemade cluster' %}

```text
Hello
```

{% post_link recycled_homemade_cluster 'Recycled homemade cluster' %}

image.png
Why is rendering it correctly the second time, but it is not doing it the first time?
Rukshan Ranatunge
@rukshn
Hi can anyone tell me if there is a way to select the fist n number of posts?
Falon Darville
@falondarville
@rukshn can you elaborate on what you're trying to do? I might be able to help
Sergey Zwezdin
@sergeyzwezdin
Hello!
Are there any filter in Hexo that runs before starting generating?
I see there is before_generate, but it runs after before_post_render.
I’d like to have something that runs before before_post_render on every site rebuild, i.e. if I run hexo server and change anything, I’d like to have a filter that runs before everything starting generating.
Sergey Zwezdin
@sergeyzwezdin

Anyone using Hexo with Contentful: https://www.contentful.com/

@amirrustam have you found anything?