From 819d29838dfa39df732b8c9e6e487c1e763ac2e8 Mon Sep 17 00:00:00 2001 From: yanm1ng Date: Fri, 22 Sep 2017 15:00:50 +0800 Subject: [PATCH] Update README.md --- README.md | 15 ++++++++++----- _config.yml | 8 +++++++- layout/about.ejs | 20 ++++++++++---------- 3 files changed, 27 insertions(+), 16 deletions(-) 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 5463868..ebb2939 100644 --- a/_config.yml +++ b/_config.yml @@ -36,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/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) { %> +