Add output dir to context

This commit is contained in:
Jake Howard 2017-05-27 14:12:31 +01:00
parent fc46e08559
commit 67020eb8c5

View file

@ -3,6 +3,7 @@ from word_count import word_count
from md_pdf.utils import get_plain_text
from dateutil import parser
import datetime
import os
EXTRA_CONTEXT = {
@ -23,7 +24,7 @@ def get_context(config, content):
**context,
**EXTRA_CONTEXT,
**{
'output_dir': os.path.abspath(config['output_dir']),
}
)
if config.get('show_word_count'):