diff --git a/README.md b/README.md index a38a76c82736e176c6599c1945e2ad8c74f08bf5..724e083ca9bfbb4623a85d66259d22cbb4b04c5a 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,7 @@ _Generate cover images from Hugo posts_ - Install the [go toolchain](https://go.dev/doc/install) - Run `go install .` - This bundles your selected fonts into the binary -- Run the tool from the root of your Hugo site (it also expects the site to be a - git repository) +- Run the tool from the root of your Hugo site - **Example:** `p2c -i content/posts/post.md -o public/post/cover.png` ``` @@ -52,7 +51,7 @@ It looks at... - date - Site's config.{toml/yaml/yml} fields for - title (site title) -- Git history to determine the date the post was last edited. +- The file's metadata for the last modified date ``` [goreportcard-badge]: https://goreportcard.com/badge/git.sr.ht/~amolith/p2c diff --git a/main.go b/main.go index 755e6be2773a55f927272f13e5850c664eeaf983..9377cd1917dd4fbc286ee01542180c661dcf2fd8 100644 --- a/main.go +++ b/main.go @@ -309,7 +309,7 @@ It looks at... - date - The site's config.{toml/yaml/yml} fields for - title (site title) -- The git history to determine the date the post was last edited. +- The file's metadata for the last modified date `) }