Don't inject ;meta(urb_front) if frontmatter is empty/nonexistent

This commit is contained in:
Anton Dyudin 2016-01-25 13:53:12 -08:00 committed by Galen Wolfe-Pauly
parent 8f714ad02d
commit 53006273ee

View File

@ -128,7 +128,8 @@
[[hed id/(sanitize kid) ~] kid]
::
%hrul ;hr;
%meta =+ jon=`json`o/(~(run by p.a) |=(cord s/+<))
%meta ?: =(~ p.a) :/(~)
=+ jon=`json`o/(~(run by p.a) |=(cord s/+<))
;meta(value "{(pojo jon)}", name "frontmatter", urb_front "");
:: %html
::=+ tex=(role (turn p.a crip))