From 2595836df20cc4de16ea83fa7b548d3548820bfa Mon Sep 17 00:00:00 2001 From: A McIlwraith Date: Thu, 23 Apr 2026 19:20:52 -0400 Subject: [PATCH] Update to +h mixin in the pattern. --- src/pg/core/_master-pattern.pug | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/pg/core/_master-pattern.pug b/src/pg/core/_master-pattern.pug index 767bf05..ee6e6e7 100644 --- a/src/pg/core/_master-pattern.pug +++ b/src/pg/core/_master-pattern.pug @@ -5,12 +5,17 @@ include ../_config block config -mixin h(h) - if headings[h] - if headings[h].indexOf("|") == -1 - h2= headings[h] +mixin h(h, p = null) + if p !== null + - text = headings[h].replace(/\*\*/g, p) + else + - text = headings[h] + + if text + if text.indexOf("|") == -1 + h2= text else - - var cntnt = headings[h].split("|") + - var cntnt = text.split("|") | <#{cntnt[0]}>#{cntnt[1]} - const getDate = function(){