From 0b0c32c6262eb056a771e9d20a89ffda752c8df0 Mon Sep 17 00:00:00 2001 From: horochx Date: Tue, 10 Mar 2020 22:29:33 +0800 Subject: [PATCH] Change the style of the last update time --- README.md | 3 +++ layouts/_default/single.html | 9 ++------- source/css/post.css | 20 -------------------- static/assets/blue.css | 2 +- static/assets/green.css | 2 +- static/assets/pink.css | 2 +- static/assets/prism.js | 8 ++++---- static/assets/red.css | 2 +- static/assets/style.css | 2 +- 9 files changed, 14 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 6329e68..2d77a42 100644 --- a/README.md +++ b/README.md @@ -93,9 +93,12 @@ paginate = 5 # set a custom favicon (default is a `themeColor` square) # favicon = "favicon.ico" + # set post to show the last updated # If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated showLastUpdated = false + # Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author + # updatedDatePrefix = "Updated" # set all headings to their default size (depending on browser settings) # it's set to `true` by default diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 41e507f..a3a92e5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,9 +3,9 @@

{{ .Title | markdownify }}

- {{ if .Params.Date }} + {{ if .Params.Date }} {{ end }} {{ with .Params.Author }} @@ -34,11 +34,6 @@
{{- end -}} - {{ if $.Site.Params.showLastUpdated }} -
- Last Updated :: {{ .Lastmod.Format "2006-01-02" }} -
- {{ end }} {{ if or .NextInSection .PrevInSection }}