Skip to content

Commit 8bc70dc

Browse files
update copyright info
1 parent ea4fea6 commit 8bc70dc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

index_generator/__main__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ def generate_once(template_dir, path='.', name='index.html', if_print=False):
6262
})
6363
html = template.render(ig={
6464
'currentPath': '/',
65-
'files': files
65+
'files': files,
66+
'generator': {
67+
'name': APP_NAME,
68+
'version': APP_VERSION,
69+
'url': APP_URL
70+
}
6671
})
6772
if if_print:
6873
print(html)

index_generator/templates/default/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ <h1>Index of {{ ig.currentPath }}/</h1>
1313
{% endblock %}
1414
<hr>
1515
{% endblock %}
16-
<div>{% block footer %}Generated by index-generator.{% endblock %}</div>
16+
<div>{% block footer %}Generated by <a target="_blank" href="{{ ig.generator.url }}">{{ ig.generator.name }}</a> {{ ig.generator.version }}.{% endblock %}</div>
1717
</body>
1818
</html>

0 commit comments

Comments
 (0)