Skip to content

Commit

Permalink
fix(handlebars): date_helper template
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjani committed Jul 14, 2021
1 parent 97058ff commit b49ac73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ and for formatting dates are shown below for different systems:
* mdBook

```markdown
##### {{date_format "%c" (created)}} - *{{id}}*
##### {{date_format "%c" created}} - *{{id}}*

{{#each tags}}| [{{this}}]({{this}}.md) {{#if @last}}|{{/if}}{{/each}}

Expand Down Expand Up @@ -283,7 +283,7 @@ hierarchy (`hierarchy = ["tag"]`).
```markdown
### {{id}}

Created: {{date_format "%c" (created)}} Tags: {{#each tags}}#{{this}}{{#unless @last}}, {{/unless}}{{/each}}
Created: {{date_format "%c" created}} Tags: {{#each tags}}#{{this}}{{#unless @last}}, {{/unless}}{{/each}}

{{#each highlight}}> {{this}}{{/each}}

Expand Down
2 changes: 1 addition & 1 deletion src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub static DEFAULT_NESTED_TAG: &str = "/";
pub static DEFAULT_ANNOTATION_TEMPLATE: &str = r#"
### {{id}}
Created: {{date_format "%c" (created)}}
Created: {{date_format "%c" created}}
Tags: {{#each tags}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}
{{#each highlight}}> {{this}}{{/each}}
Expand Down

0 comments on commit b49ac73

Please sign in to comment.