From 4cfe93ec296d7b387e99c9488a26ab768d741fc0 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Sun, 10 Nov 2019 16:43:05 +0700 Subject: [PATCH] update ReadMe --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 9b0d3b8..3dec31a 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,8 @@ paginate = 5 minuteReadingTime = "min read" dateFormatSingle = "2006-01-02" dateFormatList = "2006-01-02" + # leave empty to disable, enter display text to enable + # lastModDisplay = "" [languages.en.params.logo] logoText = "hello friend" @@ -134,6 +136,14 @@ Adding a cover image to your post is simple and there are two options when you e * Use `cover = "img.jpg"` and `useRelativeCover = true` to link the image relative to the blog post folder * Resulting in `https://www.yourpage.com/posts/blog-entry-xy/img.jpg` +# How to display the Last Modified Date in your posts + +Add `lastModDisplay = "[your display text]"` to `config.toml` to enable last modified date on your posts. Note - an empty string value `""` does not display anything. + +Example: `lastModDisplay = "Modified: "` --> "Modified: Jan 01, 0001" + +:octocat: Hugo's `enableGitInfo` option is a nice complement to this feature. + ## Add-ons - **Archive** — Theme has built-in `archive` page for main content (see `contentTypeName` variable in config). If you need archive on your blog just copy https://github.com/panr/hugo-theme-hello-friend/blob/master/exampleSite/content/archive.md to your `content` dir. If you need multilangual archives, duplicate `content/archive.md` and add `.Lang` variable, eg: `content/archive.pl.md` (remember to change `url` in duplicated file).