diff --git a/README.md b/README.md index ef772cb..4c00580 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/exampleSite/config.toml b/exampleSite/config.toml index ed824ad..e91dff2 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -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 = "" diff --git a/images/home_post_mode.jpg b/images/home_post_mode.jpg new file mode 100644 index 0000000..41afa41 Binary files /dev/null and b/images/home_post_mode.jpg differ