mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-12-22 20:11:59 +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:
|
||||
continue
|
||||
|
||||
if 'readme.md' == path.name:
|
||||
continue
|
||||
|
||||
if path.is_dir():
|
||||
entry = self._get_directory_properties(
|
||||
path, include_index_entries=False)
|
||||
@ -492,9 +495,6 @@ def main(args):
|
||||
|
||||
# render each file
|
||||
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))
|
||||
|
||||
process_home_index(args)
|
||||
|
Loading…
Reference in New Issue
Block a user