Compare commits

...

2 Commits

2 changed files with 22 additions and 5 deletions

View File

@ -51,11 +51,19 @@ def fromdir(root_url, url, content_base_path, content_relative_path):
path = os.path.join(content_base_path, content_relative_path)
#print(path)
if os.path.basename(content_relative_path) == "":
c = Catalog(
title=os.path.basename(os.path.dirname(path)), root_url=root_url, url=url
title="Comics",
root_url=root_url,
url=url
)
#print(c.url)
else:
c = Catalog(
title=os.path.basename(content_relative_path),
root_url=root_url,
url=url
)
#title=os.path.basename(os.path.dirname(path)), root_url=root_url, url=url
##########WORKING AREA###########
searchArr=[]

9
templates/start.html Normal file
View File

@ -0,0 +1,9 @@
<table id="comics">
{% for i in result %}
<tr>
{% for j in range(0,9) %}
<td>{{ i[j] }}</td>
{% endfor %}
</tr>
{% endfor %}
</table>