Update the readme to add the introduction of the Home Post Mode

This commit is contained in:
Covey 2018-09-16 21:23:27 +08:00
parent fd5a5e9afd
commit e153ca1555
3 changed files with 22 additions and 0 deletions

View File

@ -84,6 +84,27 @@ HUGO_ENV=production hugo --gc --minify
This theme write style with scss, So you must download and install the “extended” Sass/SCSS version
# Home Post model
If you want to show posts on index instead of a personal profile, just open config.toml in the base of the Hugo site, add the following line to config.toml
```toml
[params]
home_mode = "post" # post or other
```
### Displaying Featured Image
```toml
---
date: 2018-08-29
title: "This One Goes to 11!"
description: "With Go 1.11, Hugo finally gets support for variable overwrites in templates!"
categories: ["Releases"]
featured_image: https://raw.githubusercontent.com/gohugoio/hugoDocs/master/content/en/news/0.48-relnotes/featured-hugo-48-poster.png
---
```
![hugo-theme-LeaveIt-Host_post](https://raw.githubusercontent.com/liuzc/LeaveIt/master/images/home_post_mode.jpg)
# Questions, ideas, bugs, pull requests?
All feedback is welcome! Head over to the [issue tracker](https://github.com/liuzc/LeaveIt/issues).

View File

@ -45,6 +45,7 @@ preserveTaxonomyNames = true
avatar = "/images/me/avatar.jpeg" # Author's avatar
subtitle = "我会更好,因为我没有停止" # Subtitle
cdn_url = "" # Base CDN URL
home_mode = "" # post or other
google_verification = ""

BIN
images/home_post_mode.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB