From 1c9806a9b0f4a1583c52af817e6db106074eaa6f Mon Sep 17 00:00:00 2001 From: Tim Gerundt Date: Thu, 19 Oct 2017 21:20:34 +0200 Subject: [PATCH] Add "date_modified_format" option to html export --- docs/05_Configuration/Html_export.md | 13 ++++++++++++- docs/config.json | 1 + global.json | 1 + templates/content.php | 3 ++- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/05_Configuration/Html_export.md b/docs/05_Configuration/Html_export.md index 723ee70..a6b6a1f 100644 --- a/docs/05_Configuration/Html_export.md +++ b/docs/05_Configuration/Html_export.md @@ -72,7 +72,7 @@ To disable this feature, set the `float` property to `false`. ## Date Modified By default, daux.io will display the last modified time as reported by the system underneath the title for each document. -To disable this, change the option in your config.json to false. +To disable this, change the option in your config.json to `false`. ```json { @@ -80,6 +80,17 @@ To disable this, change the option in your config.json to false. } ``` +If you want to use the last modified time you can set the [format](http://php.net/manual/function.date.php) with the `date_modified_format` option. + +```json +{ + "html": { + "date_modified": true, + "date_modified_format": "l, F j, Y g:i A" + } +} +``` + ## GitHub Repo Add a 'Fork me on GitHub' ribbon. diff --git a/docs/config.json b/docs/config.json index 726b4d7..4989906 100644 --- a/docs/config.json +++ b/docs/config.json @@ -16,6 +16,7 @@ "breadcrumb_separator": "Chevrons", "toggle_code": true, "date_modified": true, + "date_modified_format": "l, F j, Y g:i A", "float": true, "inherit_index": true, diff --git a/global.json b/global.json index 527665d..57aedc6 100755 --- a/global.json +++ b/global.json @@ -28,6 +28,7 @@ "breadcrumb_separator": "Chevrons", "toggle_code": true, "date_modified": false, + "date_modified_format": "l, F j, Y g:i A", "float": false, "auto_landing": true, "search": true, diff --git a/templates/content.php b/templates/content.php index b7ec4ec..e70aa97 100644 --- a/templates/content.php +++ b/templates/content.php @@ -5,7 +5,8 @@

get_breadcrumb_title($page, $base_page) : $page['title'] ?>

- + +