|
|
@ -88,10 +88,13 @@ def page(request, name):
|
|
|
|
except TemplateDoesNotExist:
|
|
|
|
except TemplateDoesNotExist:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
md_template = select_template([
|
|
|
|
try:
|
|
|
|
basename + '.' + get_language() + '.md',
|
|
|
|
md_template = select_template([
|
|
|
|
basename + '.en.md',
|
|
|
|
basename + '.' + get_language() + '.md',
|
|
|
|
])
|
|
|
|
basename + '.en.md',
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
except TemplateDoesNotExist:
|
|
|
|
|
|
|
|
return HttpResponseNotFound("Page not found")
|
|
|
|
|
|
|
|
|
|
|
|
page_source = md_template.render(None, request)
|
|
|
|
page_source = md_template.render(None, request)
|
|
|
|
page_fm = frontmatter.loads(page_source)
|
|
|
|
page_fm = frontmatter.loads(page_source)
|
|
|
|