Skip to content

Commit

Permalink
Fixes the previous fix
Browse files Browse the repository at this point in the history
oops...
  • Loading branch information
joehakimrahme committed Jun 2, 2020
1 parent fc38fe8 commit d7dab04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blogstrap/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def context(app, message=None):
def toc():
result = []
for entry in os.listdir(app.config['BLOGROOT']):
if os.path.isfile(os.path.join(os.getcwd(), entry)) and \
if os.path.isfile(
os.path.join(app.config['BLOGROOT'], entry)) and \
not entry.startswith(".") and \
entry not in app.config['TOC_BLACKLIST']:
result.append("* [{unslug}](../{article})".format(
Expand Down

0 comments on commit d7dab04

Please sign in to comment.