Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/liuzc/LeaveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCovey <liuzc89@gmail.com>2018-09-16 16:23:27 +0300
committerCovey <liuzc89@gmail.com>2018-09-16 16:23:27 +0300
commite153ca1555ac32d6ace27c9b315af4029b65a7b7 (patch)
treeceb5e9a99c0eea5d2f1a27da68bc1c0b26f5d2e9
parentfd5a5e9afd91352f13f3aafaf0f3e29f4546a701 (diff)
Update the readme to add the introduction of the `Home Post Mode`
-rw-r--r--README.md21
-rw-r--r--exampleSite/config.toml1
-rw-r--r--images/home_post_mode.jpgbin0 -> 327207 bytes
3 files changed, 22 insertions, 0 deletions
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
--- /dev/null
+++ b/images/home_post_mode.jpg
Binary files differ