HUGO_DRAFT true, DRAFT state
This is a Draft
Description/Summary
If a post has the Org TODO state set to DRAFT, the draft front matter variable should be set to true regardless of the value of EXPORT_HUGO_DRAFT property. Idea is to mark a post as DRAFT that you have already started writing, or are in the process at the moment, but it is not yet ready to be published
Content
If a post has the Org TODO state set to DRAFT
, the draft
front
matter variable should be set to true
regardless of the value of
EXPORT_HUGO_DRAFT
property.
Idea is to mark a post as DRAFT
that you have already started
writing, or are in the process at the moment, but it is not yet ready
to be published
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "HUGO_DRAFT true, DRAFT state" | |
Title | "HUGO_DRAFT true, DRAFT state" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | true | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/hugo-draft-true-todo-state-draft/" | |
RelPermalink | "/posts/hugo-draft-true-todo-state-draft/" | |
Data |
| |
NextPage | HUGO_DRAFT not set, TEST__TODO state | |
PrevPage | HUGO_DRAFT true, no TODO state | |
NextInSection | HUGO_DRAFT not set, TEST__TODO state | |
PrevInSection | HUGO_DRAFT true, no TODO state |
Page Params (Debug)
Key | Type | Value |
---|---|---|
draft | bool | true |
iscjklanguage | bool | false |
lastmod | time.Time | 2018-07-09 11:08:20 -0400 -0400 |
tags | []string | "draft" "todo" |
title | string | "HUGO_DRAFT true, DRAFT state" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "72b0e54d1fb836cc51dfeade0e263153" |
BaseFileName | "hugo-draft-true-todo-state-draft" |
TranslationBaseName | "hugo-draft-true-todo-state-draft" |
Lang | "en" |
Section | "posts" |
LogicalName | "hugo-draft-true-todo-state-draft.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/hugo-draft-true-todo-state-draft.md" |