Skip to content

Commit

Permalink
feat(app): minify liquid template
Browse files Browse the repository at this point in the history
  • Loading branch information
Zweihander-Main committed Nov 1, 2023
1 parent d16005c commit d1eb22c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const processData = (data: Array<AllDataHit>) => {

const templateHit = async (hit: ProcessedDataHit) => {
const output = (await liquidEngine.renderFile('rss', hit)) as string;
return output;
return output.replace(/[\n\t]/g, '');
};

const writeFeedFile = (xml: string) => {
Expand Down

0 comments on commit d1eb22c

Please sign in to comment.