diff options
author | Yuanfei He <lhe868@gmail.com> | 2020-07-10 18:41:02 +0300 |
---|---|---|
committer | Yuanfei He <lhe868@gmail.com> | 2020-07-10 18:41:02 +0300 |
commit | 606710596151df463b609e6846b9da15901a360c (patch) | |
tree | 6082aacd4ad95cdf50d1dca823b38a633b74de67 | |
parent | c3addcfb2ffd1e870997049f66bb456888e1bd46 (diff) |
:pencil: update readme
-rw-r--r-- | README.md | 53 |
1 files changed, 47 insertions, 6 deletions
@@ -6,6 +6,14 @@ This is a [hugo](https://gohugo.io/) static blog engine theme, if you like this [See Demo](https://heyuanfei.com) +# Features + + - Blog + - Modern、Responsive + - Syntax highlight + - Emoji😄,Disqus + - Post thumbnail images + # Installation Inside the folder of your Hugo site run: @@ -20,35 +28,41 @@ Modify your configuration: ``` baseurl = "site url" title = "Site Name" -languageCode = "zh-CN" +languageCode = "site language code" copyright = "Copyright right infomation." themesdir = "themes" theme = "hugo_eiio" Paginate=15 +MetaDataFormat = "toml" PaginatePath="page" pygmentsuseclasses = true disqusShortname = "user id" googleAnalytics='google analytics code' -preserveTaxonomyNames = false -disablePathToLower = true hasCJKLanguage = true +preserveTaxonomyNames = false +disablePathToLower =false +enableEmoji = true +enableInlineShortcodes = true +enableRobotsTXT = true + [taxonomies] category = "categories" tag = "tags" - + summaryLength = 250 # default 70 [params] - hljsStyle="atom-one-dark" #code highlightjs css style . See [Style List](https://github.com/highlightjs/highlight.js/tree/master/src/styles "CSS Style list") + hljsStyle="github" #code highlightjs css style . See [Style List](https://github.com/highlightjs/highlight.js/tree/master/src/styles "CSS Style list") showNextAndPrePost = false #Is Show Next and Previous Post Button description = "site description" + keywords = "site keywords use seo" + googleSiteVerification = "google site verification key" author = "your name" github ="github username" email="your email" twitter="your twitter name" securityPolicy = false #disable https content security policy footerRight="Your tips content" #footer right content - addthisID="addthis.com sharder plugin id" mainSections = ['page'] [sitemap] changefreq = "monthly" @@ -56,6 +70,33 @@ hasCJKLanguage = true filename = "sitemap.xml" ``` +# Post thumbnail image setting + + +## Home thumbnail of post: + +if you need in home page list display thumbnail of post,write head of post keywords,see below code👇: + +``` + ++++ +title = "Post Title" +categories = ["Categories"] +tags = ["tags"] +date = "write datetime" +draft = false +header_images="post home list thumbnail" ++++ +.............. +``` + +## Content thumbnail of post: + +if you need in post content to display different thumbnail,see below code 👇 + +``` +{{< figure class="floatright|floatleft" src="your image path" alt="" >}} +``` # License This theme is released under the [MIT License](https://github.com/leonhe/hugo_eiio/blob/master/LICENSE). |