Parsing lastmod from LOGBOOK
Description/Summary
If LOGBOOK has multiple entries of"- State "DONE" from .."
, use the
newest entry to parse the lastmod
date from.
Content
ox-hugo
Issue #203
In the case of multiple "State "DONE" from .."
entries,
- Use the newest entry to set the
lastmod
. - Use the oldest entry to set the
date
.
The lastmod
field parsed from LOGBOOK transitions will have the
highest precedence. So it will not be auto-set even if the
:EXPORT_HUGO_AUTO_SET_LASTMOD: t
property is set.
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Parsing lastmod from LOGBOOK" | |
Title | "Parsing lastmod from LOGBOOK" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/parsing-lastmod-from-logbook/" | |
RelPermalink | "/posts/parsing-lastmod-from-logbook/" | |
Data |
| |
NextPage | .dir-locals.el test | |
PrevPage | Parsing date from LOGBOOK | |
NextInSection | Post marked as DONE with LOGBOOK Notes in nested headings | |
PrevInSection | Parsing date from LOGBOOK |
Page Params (Debug)
Key | Type | Value |
---|---|---|
date | time.Time | 2018-09-06 11:40:00 +0000 UTC |
description | string | " If LOGBOOK has multiple entries of `\"- State \"DONE\" from ..\"`, use the\n newest entry to parse the `lastmod` date from.\n " |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2022-05-12 01:50:08 -0400 -0400 |
publishdate | time.Time | 2018-09-06 11:40:00 +0000 UTC |
tags | []string | "dates" "lastmod" "logbook" |
title | string | "Parsing lastmod from LOGBOOK" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "615cb3eb083f7872c29129054d0b8ae9" |
BaseFileName | "parsing-lastmod-from-logbook" |
TranslationBaseName | "parsing-lastmod-from-logbook" |
Lang | "en" |
Section | "posts" |
LogicalName | "parsing-lastmod-from-logbook.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/parsing-lastmod-from-logbook.md" |