New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化随机背景图代码 #7

Merged
merged 2 commits into from Nov 17, 2015

Conversation

Projects
None yet
2 participants
@netcan

netcan commented Nov 17, 2015

No description provided.

@MOxFIVE

This comment has been minimized.

Show comment
Hide comment
@MOxFIVE

MOxFIVE Nov 17, 2015

Owner

简洁不少,谢谢优化!

Owner

MOxFIVE commented Nov 17, 2015

简洁不少,谢谢优化!

MOxFIVE added a commit that referenced this pull request Nov 17, 2015

Merge pull request #7 from netcan/master
优化随机背景图代码 stringObject.replace(regexp/substr,replacement)

@MOxFIVE MOxFIVE merged commit ded4e97 into MOxFIVE:master Nov 17, 2015

@netcan

This comment has been minimized.

Show comment
Hide comment
@netcan

netcan Nov 18, 2015

客气了。。正在用您的主题。。
还不太会用Github。。
想问一下文章归档那怎么才能不分页?(´・_・`)

netcan commented Nov 18, 2015

客气了。。正在用您的主题。。
还不太会用Github。。
想问一下文章归档那怎么才能不分页?(´・_・`)

@MOxFIVE

This comment has been minimized.

Show comment
Hide comment
@MOxFIVE

MOxFIVE Nov 18, 2015

Owner

https://github.com/hexojs/hexo-generator-archive
把下面代码添加到 Hexo 根目录下的 _config.yml 配置文件即可,0就是不分页:

archive_generator:
  per_page: 0

首页与标签页文章数量配置类似:

index_generator:
  per_page: 10

tag_generator:
  per_page: 20
Owner

MOxFIVE commented Nov 18, 2015

https://github.com/hexojs/hexo-generator-archive
把下面代码添加到 Hexo 根目录下的 _config.yml 配置文件即可,0就是不分页:

archive_generator:
  per_page: 0

首页与标签页文章数量配置类似:

index_generator:
  per_page: 10

tag_generator:
  per_page: 20
@netcan

This comment has been minimized.

Show comment
Hide comment
@netcan

netcan Nov 18, 2015

恩,谢谢了,之前没怎么关注generator插件。。

netcan commented Nov 18, 2015

恩,谢谢了,之前没怎么关注generator插件。。

@netcan

This comment has been minimized.

Show comment
Hide comment
@netcan

netcan Nov 19, 2015


想建议一下您实现类似这个归档页面,文章一多的话可以按月份/天数处理。。
没学过js所以太会搞。。

netcan commented Nov 19, 2015


想建议一下您实现类似这个归档页面,文章一多的话可以按月份/天数处理。。
没学过js所以太会搞。。

@MOxFIVE

This comment has been minimized.

Show comment
Hide comment
@MOxFIVE

MOxFIVE Nov 19, 2015

Owner

谢谢建议。归档页面目前比较简陋,一是我用得少,二是我的文章也少。已经在考虑做一个检索方便,条目清晰的归档页面,实现日期未知,不用期待~

Owner

MOxFIVE commented Nov 19, 2015

谢谢建议。归档页面目前比较简陋,一是我用得少,二是我的文章也少。已经在考虑做一个检索方便,条目清晰的归档页面,实现日期未知,不用期待~

@netcan

This comment has been minimized.

Show comment
Hide comment
@netcan

netcan Nov 20, 2015


搜索功能初步完成,不过是PHP的。。

netcan commented Nov 20, 2015


搜索功能初步完成,不过是PHP的。。

@MOxFIVE

This comment has been minimized.

Show comment
Hide comment
@MOxFIVE
Owner

MOxFIVE commented Nov 20, 2015

@netcan

This comment has been minimized.

Show comment
Hide comment
@netcan

netcan Nov 20, 2015

昨天看到这个项目,js静态搜索,没折腾成,您有兴趣的话可以看看。。https://github.com/Tipue/Tipue-Search
主要是Sitemap收录太慢了。。

netcan commented Nov 20, 2015

昨天看到这个项目,js静态搜索,没折腾成,您有兴趣的话可以看看。。https://github.com/Tipue/Tipue-Search
主要是Sitemap收录太慢了。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment