Add output dir to context
This commit is contained in:
parent
fc46e08559
commit
67020eb8c5
1 changed files with 2 additions and 1 deletions
|
@ -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'):
|
||||
|
|
Reference in a new issue