mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-22 07:19:53 +00:00
fix readme showing in listings
This commit is contained in:
parent
e0277641a2
commit
309f201de6
6
gronk.py
6
gronk.py
@ -142,6 +142,9 @@ class FileMap:
|
|||||||
if '.git' in path.parts:
|
if '.git' in path.parts:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if 'readme.md' == path.name:
|
||||||
|
continue
|
||||||
|
|
||||||
if path.is_dir():
|
if path.is_dir():
|
||||||
entry = self._get_directory_properties(
|
entry = self._get_directory_properties(
|
||||||
path, include_index_entries=False)
|
path, include_index_entries=False)
|
||||||
@ -492,9 +495,6 @@ def main(args):
|
|||||||
|
|
||||||
# render each file
|
# render each file
|
||||||
for file in files:
|
for file in files:
|
||||||
# don't render readme.md as index as it is used for directory
|
|
||||||
if file == "readme.md":
|
|
||||||
continue
|
|
||||||
render_file(root.joinpath(file))
|
render_file(root.joinpath(file))
|
||||||
|
|
||||||
process_home_index(args)
|
process_home_index(args)
|
||||||
|
Loading…
Reference in New Issue
Block a user