From 5e3f13e738fa6d9f3244b1fd1a66403f64668170 Mon Sep 17 00:00:00 2001 From: Greg Sadowy Date: Fri, 20 Jan 2017 09:50:33 -0800 Subject: Added option to omit date line --- README.md | 4 +++- layouts/partials/article_header.html | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 92bf6d9..898110c 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,9 @@ You can deactivate them under `params.widgets`: tags = true tag_cloud = true +### Date line + +The date line includes: post date, # of words, approximate reading, time tags and categories. However, if you want certain pages to omit the date line, simply put `nodateline = true` in the front matter for that page. ## Localization (l10n) @@ -135,7 +138,6 @@ You can also print formulas inline. In this case wrap the formula only once with Last but not least I included some useful [shortcodes](http://gohugo.io/extras/shortcodes/) to make your life easier. - ### Gallery This way you can include a gallery into your post. Copy the code below into your content file and enter the relative paths to your images. diff --git a/layouts/partials/article_header.html b/layouts/partials/article_header.html index e7acf9e..4e57e1c 100644 --- a/layouts/partials/article_header.html +++ b/layouts/partials/article_header.html @@ -5,6 +5,8 @@
+ + {{ if not .Params.nodateline }} - - + {{ end }} {{ if isset .Params "categories" }} {{ $categoriesLen := len .Params.categories }} {{ if gt $categoriesLen 0 }} -- cgit v1.2.3