Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 16 13:58
    Dueot commented #3772
  • Oct 16 13:52
    Dueot opened #3772
  • Oct 16 11:08
    gadfly3173 commented #3658
  • Oct 16 10:51
    curbengh commented #3764
  • Oct 16 10:40
    YoshinoriN edited #3658
  • Oct 16 10:39
    YoshinoriN commented #3658
  • Oct 16 10:38
    YoshinoriN labeled #3658
  • Oct 16 10:37
    YoshinoriN commented #3658
  • Oct 16 10:37
    YoshinoriN unlabeled #3658
  • Oct 16 10:37
    YoshinoriN unlabeled #3658
  • Oct 16 10:37
    YoshinoriN labeled #3658
  • Oct 16 10:33
    curbengh commented #3770
  • Oct 16 10:27
    YoshinoriN labeled #3766
  • Oct 16 10:27
    YoshinoriN labeled #3766
  • Oct 16 10:25
    YoshinoriN unpinned #3508
  • Oct 16 10:24
    YoshinoriN commented #3771
  • Oct 16 10:24
    coveralls commented #3741
  • Oct 16 10:23
    YoshinoriN edited #3771
  • Oct 16 10:21
    curbengh synchronize #3741
  • Oct 16 10:15
    YoshinoriN labeled #3771
Tony Crowe
@tcrowe
your profile says you're in Holland. if you need to do i18n for Dutch, Deutsch, Mandarin, or something else let me know and i can give examples.
i have done some hexo evangelizing around the ethereum space
i'm trying to get them assimilated into the collective and also get help with our issues and PRs 😅
Pascal Precht
@PascalPrecht
I'm actually german haha
YEa we're using Hexo at Embark.
The website is pure crab at the moment but we're working on it to fix this.
Tony Crowe
@tcrowe
that's awesome. i've seen some progress on status & embark in recent months.
YoshinoriN
@YoshinoriN

@tcrowe
About hexojs/hexo#3444

IMHO, before create bot, we should update issue template. All of hexo maintainer cannot read chinese.

Tony Crowe
@tcrowe
@YoshinoriN Okay. I don't care if people want to use their own language but I can see why people want to discourage it. 😓
@YoshinoriN For example if a user only knows Nihon. Do you want to help them or not?
YoshinoriN
@YoshinoriN

@tcrowe
At first, I not good at English. I'm not sure whether I can explain to you clearly.

For example if a user only knows Nihon. Do you want to help them or not?

Sure 🤗 I wanna to help them.

Also, I'm not gonna ask them to make use English. 😊 But, IMHO that the language of README's is the language the product owner would like everyone to use. So, I think English is better than other language in hexo project.
Hmm, it is very difficult to explain outside of my first language... 😵 I wanna explain more my opinion...
And I have a question. What purpose of non-english tag? My understanding it is ask them to use English. Isn't it?
Tony Crowe
@tcrowe

@YoshinoriN I don't know about non-english tag. I just found it and started using it in case others want to help them.

I tried to use Google Translate to help a few.

YoshinoriN
@YoshinoriN

@tcrowe

I just found it and started using it in case others want to help them.

I see. Maybe @NoahDragon is know. Anyway, I think we should to know cleary purpose of non-english label if we create bot.

I tried to use Google Translate to help a few.

Me too. It's very useful 🤗

YoshinoriN
@YoshinoriN
@tcrowe
Do you know how to stop stale bot for specific issue?
Sometimes people want to stop it. forexample hexojs/hexo#3213
Tony Crowe
@tcrowe

@YoshinoriN Hi :wave:

Yes! You may use these labels to prevent stale:

exemptLabels:
  - bug
  - discussion
  - need-verify
  - pending-reply
  - feature-request
  - enhancement
  - question
  - documentation
YoshinoriN
@YoshinoriN
Thanks!
Pascal Precht
@PascalPrecht

What's the best way to get the first #N posts from page.posts or site.posts ?

I tried e.g. access site.posts[0] using {% set first = site.posts[0] %} but it just doesn't output anything.

While site.posts.length totally gives me the length of the array, site.posts[0].title doesn't output anything..
In fact, any item within site.posts[] or page.posts[] seems to be undefined at the time of rendering
Pascal Precht
@PascalPrecht

Even using nunjuck's (the template engine) first filter doesn't do it {% set first = page.posts | first %}

I must be doing something super wrong here.

YoshinoriN
@YoshinoriN
@PascalPrecht
How about this?
  {{ site.posts.toArray()[0].title }}
  {{ site.posts.toArray()[0].date }}
  {{ site.posts.toArray()[0].content }}
Pascal Precht
@PascalPrecht
I'll try this!
Pascal Precht
@PascalPrecht
This helped though!
thanks a ton man :)
I wanted specifically access posts #n of site.posts, so this is perfect.
YoshinoriN
@YoshinoriN
:smile:
Pascal Precht
@PascalPrecht
@YoshinoriN as you';re around
what is the easiest way to get site.posts ordered in a variable so I can do the expressions you've mentioned above?
e.g. site.posts.toArray()[0] is right now the very first post
but I want it to be the last.
and still use that expression
{% set posts = site.posts.toArray().sort(...) %} doesn't really do it.
YoshinoriN
@YoshinoriN

@PascalPrecht

Now I reading warehouse document. warehouse is hexo's database.
I found last method.

Pascal Precht
@PascalPrecht
That doesn't seem to give me site.posts in reverse order though :)
YoshinoriN
@YoshinoriN

Oh..really??

{%- set x = site.posts.last() %}
{{ x.title }}

Is this code return latest post title?

Pascal Precht
@PascalPrecht
Yes it'll give you the latest but I'd like site.poststo be in reverse order
site.posts[0] is the first post
site.posts[1] is the second and so on
but I want site.posts[0] to be the latest
site.posts[1] to be the second latest
just like page.posts behaves
page.posts and site.posts are not behaving the same.
YoshinoriN
@YoshinoriN
How about this?
    {% for post in site.posts.sort('date','desc') %}
    {{ post.title }}
    {% endfor %}
Pascal Precht
@PascalPrecht
That forces me to iterate over them
I basically need them sorted in a variable