mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 18:56:28 +00:00
Fixed HTML template. For real this time :-)
Misunderstood nature of the problem. It was caused by subdirectory depth.
This commit is contained in:
@@ -47,7 +47,7 @@ def buildHTML(path, imgfile):
|
||||
if filename is not None:
|
||||
htmlpath = ''
|
||||
postfix = ''
|
||||
backref = 0
|
||||
backref = 1
|
||||
head = path
|
||||
while True:
|
||||
head, tail = os.path.split(head)
|
||||
@@ -68,7 +68,7 @@ def buildHTML(path, imgfile):
|
||||
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n",
|
||||
"</head>\n",
|
||||
"<body>\n",
|
||||
"<div><img src=\"../../" * backref, "Images/", postfix, imgfile, "\" alt=\"",
|
||||
"<div><img src=\"", "../" * backref, "Images/", postfix, imgfile, "\" alt=\"",
|
||||
imgfile, "\" class=\"singlePage\"/></div>\n",
|
||||
#"<div id=\"", filename[0], "-1\">\n",
|
||||
#"<a class=\"app-amzn-magnify\" data-app-amzn-magnify='{\"targetId\":\"", filename[0],
|
||||
|
||||
Reference in New Issue
Block a user