Skip to content

Commit 561f46f

Browse files
committed
Updated README.md
1 parent 4ccce2a commit 561f46f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Just run ``python manage.py generate_static_site`` :)
1414
- Selectively **include/exclude media and static files**
1515
- Custom **base url** *(very useful if the static site will run in a specific folder different by the document-root)*
1616
- Convert urls to **relative urls** *(very useful if the static site will run offline or in an unknown folder different by the document-root)*
17+
- Prevent local directory index
1718

1819
##Requirements / Dependencies
1920
- Python 2.6, Python 2.7
@@ -49,9 +50,14 @@ FREEZE_SITE_URL = 'http://mydomain.com'
4950
FREEZE_BASE_URL = None
5051

5152
#if True 'freeze' will convert all absolute urls to relative urls
52-
#useful if the generated static site will run offline or in an unknown folder which is not the document-root (only if FREEZE_BASE_URL is not defined)
53+
#useful if the generated static site will run locally (file://) or in an unknown folder which is not the document-root (only if FREEZE_BASE_URL is not defined)
5354
FREEZE_RELATIVE_URLS = False
5455

56+
#if True 'freeze' will inject a script at the end of each page
57+
#which will force hrefs like 'path/' to 'path/index.html' (only if the site is running under file://)
58+
#useful if the generated static site will run locally (requires FREEZE_RELATIVE_URLS set to True) to prevent local directory index
59+
FREEZE_LOCAL_URLS = False
60+
5561
#if True 'freeze' will fetch each url founded in sitemap.xml
5662
FREEZE_FOLLOW_SITEMAP_URLS = True
5763

0 commit comments

Comments
 (0)