Skip to content

Commit 9215b89

Browse files
committed
Update readme explaining how to style output
1 parent f1b2399 commit 9215b89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ When writing your own [custom themes](https://www.mkdocs.org/user-guide/custom-t
6868
{% endif %}
6969
```
7070

71+
You can style the output using CSS: the date outputs are always wrapped in `<span class='git-revision-date-localized-plugin git-revision-date-localized-plugin-{type}></span>` (where `{type}` is replaced with the `type` option set in the plugin).
72+
7173
## Options
7274

7375
You can customize the plugin by setting options in `mkdocs.yml`. For example:
@@ -86,7 +88,7 @@ plugins:
8688
Default is `date`. To change the date format, set the `type` parameter to one of `date`, `datetime`, `iso_date`, `iso_datetime` or `timeago`. Example outputs:
8789

8890
```bash
89-
28 November, 2019 # type: date
91+
28 November, 2019 # type: date (default)
9092
28 November, 2019 13:57:28 # type: datetime
9193
2019-11-28 # type: iso_date
9294
2019-11-28 13:57:26 # type: iso_datetime

0 commit comments

Comments
 (0)