diff --git a/ldoc.lua b/ldoc.lua index ad49f86..9a3b6c2 100644 --- a/ldoc.lua +++ b/ldoc.lua @@ -830,6 +830,10 @@ ldoc.project = ldoc.project or args.project ldoc.package = args.package:match '%a+' and args.package or nil ldoc.icon = ldoc.icon or args.icon +if ldoc.icon then + ldoc.icon_basename = path.basename(ldoc.icon) +end + local source_date_epoch = os.getenv("SOURCE_DATE_EPOCH") if args.testing then ldoc.updatetime = "2015-01-01 12:00:00" diff --git a/ldoc/html/ldoc_ltp.lua b/ldoc/html/ldoc_ltp.lua index 31b09d7..4829a76 100644 --- a/ldoc/html/ldoc_ltp.lua +++ b/ldoc/html/ldoc_ltp.lua @@ -36,11 +36,11 @@ return [==[

$(ldoc.project)

-# if ldoc.icon then +# if ldoc.icon_basename then # if module then - + # else - + # end # end