We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7937cb + df54f43 commit a061257Copy full SHA for a061257
src/content-render/liquid/index.ts
@@ -2,7 +2,9 @@ import { processLiquidPost } from './post'
2
import { engine } from './engine'
3
4
export async function renderLiquid(template: string, context: any): Promise<string> {
5
- template = await engine.parseAndRender(template, context)
+ if (template.includes('{%') || template.includes('{{')) {
6
+ template = await engine.parseAndRender(template, context)
7
+ }
8
template = processLiquidPost(template)
9
return template
10
}
0 commit comments