Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #635 from kaushalmodi/logbook-parsing-improvements
Improvements in date parsing from LOGBOOK drawers
- Loading branch information
Showing
6 changed files
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
test/site/content/posts/logbook-done-post-with-notes-in-sub-headings.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
+++ | ||
title = "Post marked as DONE with LOGBOOK Notes in nested headings" | ||
description = "Parse notes from LOGBOOK drawers in top-level and nested headings." | ||
date = 2022-05-01T08:49:00+00:00 | ||
layout = "alternate-single" | ||
tags = ["front-matter", "notes", "logbook", "lastmod"] | ||
draft = false | ||
[logbook] | ||
[logbook.Sub-heading] | ||
[[logbook.Sub-heading.notes]] | ||
timestamp = 2022-05-12T08:49:00+00:00 | ||
note = """ | ||
This LOGBOOK note was added in a sub-heading **after** the post was | ||
marked DONE, but this note's timestamp should not affect the post's | ||
`lastmod` field (because this is not the toplevel LOGBOOK drawer). | ||
""" | ||
+++ | ||
|
||
The `lastmod` field is not set for this post (even if it has a note | ||
with timestamp) because this post is not marked as DONE. | ||
|
||
|
||
## Sub-heading {#sub-heading} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters