diff --git a/README.md b/README.md index f19f6af..90e53d1 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,14 @@ katex = true +++ ``` +### Suppress date in an article +Hide the date from an article, e.g. because it's just an index: +``` ++++ +omitDate = true ++++ +``` + ## Contributing 1. Fork it! diff --git a/layouts/partials/article.html b/layouts/partials/article.html index 57ca6a0..d69fd3a 100644 --- a/layouts/partials/article.html +++ b/layouts/partials/article.html @@ -6,9 +6,11 @@ {{ end }}
+ {{- if not .Params.omitDate }} + {{ end -}} {{ $Site := .Site }} {{ if .Params.categories }}