summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-11 22:26:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-11 22:26:36 +0300
commite572630d4fed788e31b1e2f5083938c1149f452e (patch)
tree93d64889327688bd9407654cb6fe1b49c0da0a15
parent4d51117181935b31ec7b9a0a289d490e440d590e (diff)
downloadpagesindexgen-e572630d4fed788e31b1e2f5083938c1149f452e.tar.gz
pagesindexgen-e572630d4fed788e31b1e2f5083938c1149f452e.tar.bz2
pagesindexgen-e572630d4fed788e31b1e2f5083938c1149f452e.tar.xz
pagesindexgen-e572630d4fed788e31b1e2f5083938c1149f452e.zip
Change index file name from index.htm to index.html
-rw-r--r--demo/dir/index.html (renamed from demo/dir/index.htm)3
-rw-r--r--demo/dir/test.txt1
-rw-r--r--demo/index.html (renamed from demo/index.htm)2
-rwxr-xr-xpagesindexgen.py2
4 files changed, 5 insertions, 3 deletions
diff --git a/demo/dir/index.htm b/demo/dir/index.html
index 1d1221f..f1b94fb 100644
--- a/demo/dir/index.htm
+++ b/demo/dir/index.html
@@ -2,7 +2,8 @@
<html>
<title>http://mysite/dir/dir - dir</title>
<body>
-<a href="../index.htm">..</a><br/>
+<a href="../index.html">..</a><br/>
+<a href="test.txt">test.txt</a><br/>
<!-- created by pagesindexgen https://gitlab.com/4144/pagesindexgen -->
</body>
diff --git a/demo/dir/test.txt b/demo/dir/test.txt
new file mode 100644
index 0000000..16b14f5
--- /dev/null
+++ b/demo/dir/test.txt
@@ -0,0 +1 @@
+test file
diff --git a/demo/index.htm b/demo/index.html
index fd53126..fba5014 100644
--- a/demo/index.htm
+++ b/demo/index.html
@@ -2,7 +2,7 @@
<html>
<title>http://mysite/dir - </title>
<body>
-<a href="dir/index.htm">dir</a><br/>
+<a href="dir/index.html">dir</a><br/>
<!-- created by pagesindexgen https://gitlab.com/4144/pagesindexgen -->
</body>
diff --git a/pagesindexgen.py b/pagesindexgen.py
index acb3aaa..3dd7d6f 100755
--- a/pagesindexgen.py
+++ b/pagesindexgen.py
@@ -8,7 +8,7 @@ import re
import sys
filt = re.compile(".+", re.IGNORECASE)
-indexName = "index.htm"
+indexName = "index.html"
def showHelp():
print("PagesIndexGen v0.1")