diff --git a/README.md b/README.md index cce9757..38ece8d 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ * Share Qrcode * SEO * Immersive Status Bar +* Article Catalog ## Install @@ -36,7 +37,7 @@ cp -R themes/vexo/_source/* source/ ``` -2. Modify `_config.yml` with your own info. look like this +2. Update project `_config.yml` theme config, look like this ``` themes: vexo @@ -44,11 +45,11 @@ Here theme's name must same as the theme folder name. -3. Or you can copy my theme `_config.yml` into you hexo blog directory , replace default `_config.yml` +3. Modify theme `themes/vexo/_config.yml` with your own info. 4. That's all , hope you will like :) -## Update +## Update Version ``` cd themes/vexo @@ -63,16 +64,20 @@ The **front-matter** of a post looks like that: --- title: "Hello World" date: 2016-06-10 23:00 -banner: http://your-banner-image-link.jpg +banner: your-banner-link.jpg tags: - Movies - Life --- ``` -Add to top of your article markdown file. +Add this to the top of your article markdown file. ## Change Log +**2017-09-21** +* Added article catalog +* Fixed bugs + **2017-08-08** * Added article custom banner * Fixed gitment error diff --git a/_config.yml b/_config.yml index 4d2cc8b..ebb2939 100644 --- a/_config.yml +++ b/_config.yml @@ -16,6 +16,12 @@ menu: highlight: tomorrow +# catalog +catalog: true + +# donate +donate: true + # gitment gitment_owner: yanm1ng gitment_repo: yanm1ng.github.io @@ -30,4 +36,10 @@ baidu_id: about: banner: http://file.muyutech.com/about.jpg avatar: https://avatars3.githubusercontent.com/u/16443628?v=3&s=460 - description: The end is always near. \ No newline at end of file + description: The end is always near. + # Links + weibo_username: yanm1ng + twitter_username: yanm1ng + github_username: yanm1ng + zhihu_username: yummy1121 + douban_username: yanm1ng \ No newline at end of file diff --git a/layout/_partial/catalog.ejs b/layout/_partial/catalog.ejs new file mode 100644 index 0000000..143dd27 --- /dev/null +++ b/layout/_partial/catalog.ejs @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/layout/about.ejs b/layout/about.ejs index a1817d5..8b6e2b3 100644 --- a/layout/about.ejs +++ b/layout/about.ejs @@ -6,40 +6,40 @@

<%- config.author %>

<%- theme.about.description %>

- <% if (config.weibo_username) { %> - + <% if (theme.about.weibo_username) { %> + <% } %> - <% if (config.twitter_username) { %> - + <% if (theme.about.twitter_username) { %> + <% } %> - <% if (config.github_username) { %> - + <% if (theme.about.github_username) { %> + <% } %> - <% if (config.zhihu_username) { %> - + <% if (theme.about.zhihu_username) { %> + <% } %> - <% if (config.douban_username) { %> - + <% if (theme.about.douban_username) { %> + diff --git a/layout/page.ejs b/layout/page.ejs index ea34c9a..13a02fd 100644 --- a/layout/page.ejs +++ b/layout/page.ejs @@ -5,44 +5,61 @@ -
+
+
<%- page.content %>
+ <% if (page.tags && page.tags.length) { %>
Tags: <%- partial('_partial/tag', { tags: page.tags }) %>
<% } %> -
-
- 赏 - - -
- 使用支付宝打赏 + + + <% if (theme.donate) { %> +
+
+ 赏 + + +
+ 使用支付宝打赏 +
+ +
+ 使用微信打赏 +
- -
- 使用微信打赏 -
- +
+

若你觉得我的文章对你有帮助,欢迎点击上方按钮对我打赏

-

若你觉得我的文章对你有帮助,欢迎点击上方按钮对我打赏

-
+ <% } %> + +

扫描二维码,分享此文章

+ <% if (theme.gitment_owner) { %> +
+ <% } else { %> - +
<% } %>
+ + + <% if (theme.catalog) { %> + <%- partial('_partial/catalog') %> + <% } %> +