Fix icon path

This commit is contained in:
Jordan Irwin 2021-07-31 21:07:18 -07:00
parent bbd498ab39
commit 4e61eefe4a
No known key found for this signature in database
GPG Key ID: E3E358C2F44C290A
2 changed files with 7 additions and 3 deletions

View File

@ -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"

View File

@ -36,11 +36,11 @@ return [==[
<br/>
<h1>$(ldoc.project)</h1>
# if ldoc.icon then
# if ldoc.icon_basename then
# if module then
<img src="../data/$(ldoc.icon)" />
<img src="../data/$(ldoc.icon_basename)" />
# else
<img src="data/$(ldoc.icon)" />
<img src="data/$(ldoc.icon_basename)" />
# end
# end