diff --git a/tools/scripts/tr-archive/archive.js b/tools/scripts/tr-archive/archive.js index 80df9f6f9f7..bdbd7874e6e 100644 --- a/tools/scripts/tr-archive/archive.js +++ b/tools/scripts/tr-archive/archive.js @@ -32,6 +32,7 @@ marked.use(markedAlert()); * @returns {Promise} name of output file (for status update) */ async function renderit(infile) { + const gtag = (await fs.readFile('gtag.html', 'utf-8')).trim(); console.log(`Reading ${infile}`); basename = path.basename(infile, ".md"); const outfile = path.join(path.dirname(infile), `${basename}.html`); @@ -55,6 +56,7 @@ async function renderit(infile) { // add CSS to HEAD head.innerHTML = head.innerHTML + + gtag + '\n' + `\n` + `\n` + `\n`; diff --git a/tools/scripts/tr-archive/gtag.html b/tools/scripts/tr-archive/gtag.html new file mode 100644 index 00000000000..2e91a24d2f3 --- /dev/null +++ b/tools/scripts/tr-archive/gtag.html @@ -0,0 +1,9 @@ + + +