github.com/anakojm/hugo-katex@v0.0.0-20231023141351-42d6f5de9c0b/testscripts/commands/list.txt (about) 1 # Test the hugo list commands. 2 3 hugo list drafts 4 ! stderr . 5 stdout 'path,slug,title,date,expiryDate,publishDate,draft,permalink' 6 stdout 'content/draft.md,draft,The Draft,2019-01-01T00:00:00Z,2032-01-01T00:00:00Z,2018-01-01T00:00:00Z,true,https://example.org/draft/' 7 stdout 'draftexpired.md' 8 stdout 'draftfuture.md' 9 ! stdout '/expired.md' 10 11 hugo list future 12 stdout 'path,slug,title,date,expiryDate,publishDate,draft,permalink' 13 stdout 'future.md' 14 stdout 'draftfuture.md' 15 ! stdout 'expired.md' 16 17 hugo list expired 18 stdout 'path,slug,title,date,expiryDate,publishDate,draft,permalink' 19 stdout 'expired.md' 20 stdout 'draftexpired.md' 21 ! stdout 'future.md' 22 23 hugo list all 24 stdout 'path,slug,title,date,expiryDate,publishDate,draft,permalink' 25 stdout 'future.md' 26 stdout 'draft.md' 27 stdout 'expired.md' 28 stdout 'draftexpired.md' 29 stdout 'draftfuture.md' 30 31 -- hugo.toml -- 32 baseURL = "https://example.org/" 33 disableKinds = ["taxonomy", "term"] 34 -- content/draft.md -- 35 --- 36 title: "The Draft" 37 slug: "draft" 38 draft: true 39 date: 2019-01-01 40 expiryDate: 2032-01-01 41 publishDate: 2018-01-01 42 --- 43 -- content/expired.md -- 44 --- 45 date: 2018-01-01 46 expiryDate: 2019-01-01 47 --- 48 -- content/future.md -- 49 --- 50 date: 2030-01-01 51 --- 52 -- content/draftfuture.md -- 53 --- 54 date: 2030-01-01 55 draft: true 56 --- 57 -- content/draftexpired.md -- 58 --- 59 date: 2018-01-01 60 expiryDate: 2019-01-01 61 draft: true 62 ---