diff options
Diffstat (limited to 'tools/front_page.lua')
| -rw-r--r-- | tools/front_page.lua | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/tools/front_page.lua b/tools/front_page.lua index 9557a53..6a7cf4d 100644 --- a/tools/front_page.lua +++ b/tools/front_page.lua @@ -36,7 +36,11 @@ function Pandoc(doc)          local header = pandoc.Header(2, note.title)          table.insert(out_list, header) -        table.insert(out_list, pandoc.Para(string.format("%s...", note.preview))) +        if note["cover_image"] == nil then +            table.insert(out_list, pandoc.Para(string.format("%s...", note.long_preview))) +        else +            table.insert(out_list, pandoc.Para(string.format("%s...", note.preview))) +        end          local out = pandoc.MetaBlocks(out_list)          output:insert(pandoc.MetaMap({link=string.format("/notes/%s.html", note.note_name), note=out})) |