Skip to content
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

那个作品的界面怎么配 #51

Open
lwugang opened this issue Apr 17, 2018 · 2 comments
Open

那个作品的界面怎么配 #51

lwugang opened this issue Apr 17, 2018 · 2 comments

Comments

@lwugang
Copy link

lwugang commented Apr 17, 2018

那个作品的界面怎么配

@GeekaholicLin
Copy link
Owner

GeekaholicLin commented Apr 25, 2018

@lwugang 首先很抱歉,最近因为毕业论文,所以很少看github,请原谅现在才回复。

emmm....其次,作品界面有很大一部分是以硬编码形式写的,而且自己制定了一些规则,所以并不是很通用。

如果实在是想配置,我只能根据我印象和自己代码的理解来回答你,毕竟有点久远。如果有任何问题,可以继续在这个issue下面提出,谢谢~

  1. 运行命令hexo new page "demo"或直接在你的source目录下(不是主题的source)创建demo文件夹,文件夹下边创建文件index.md,编辑内容的type为demo,可以参考我的博客源文件及结构

  2. 然后在source目录(同上)创建_data文件夹,文件夹下面创建demo.yml数据文件,数据文件的格式可以参考我的数据文件。第一个Netease为显示的title,后面是数组,请保持字段一样!另外,注意url字段的地址!

  3. 运行,在地址后面加上/demo查看效果,如果想放在导航栏,请参考导航栏的配置。

  4. 有任何问题记得反馈~


附上大概的结构图:

image

@lwugang
Copy link
Author

lwugang commented May 7, 2018

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants