Skip to content

Commit

Permalink
Fixing heading during pdf export
Browse files Browse the repository at this point in the history
  • Loading branch information
JStumpp committed Nov 30, 2020
1 parent 42718f2 commit 0b1ce66
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
{ text: 'AI Newsletter', link: 'https://i.am.ai/newsletter', target:'_self' },
]
},
patterns: process.env.EXPORT_PDF === 'True' ? ['readme.md'] : ['**/*.md', '**/*.vue'],
patterns: process.env.EXPORT_PDF ? ['readme.md'] : ['**/*.md', '**/*.vue'],
plugins: ['@snowdog/vuepress-plugin-pdf-export', {
puppeteerLaunchOptions: {
args: ['--no-sandbox', '--disable-setuid-sandbox']
Expand All @@ -48,27 +48,27 @@ module.exports = {
},*/

head: [
process.env.EXPORT_PDF === 'True' ? [] : ['script', {
...(!process.env.EXPORT_PDF ? ['script', {
src: 'https://config.metomic.io/config.js?id=prj:c5c07948-cf96-4555-99ec-3a9bf5ae16ce',
crossorigin: 'anonymous',
charset: 'utf-8'
}],
process.env.EXPORT_PDF === 'True' ? [] :['script', {
}] : []),
...(!process.env.EXPORT_PDF ? ['script', {
src: 'https://consent-manager.metomic.io/embed.js',
crossorigin: 'anonymous',
charset: 'utf-8'
}],
process.env.EXPORT_PDF === 'True' ? [] :['script', {
}] : []),
...(!process.env.EXPORT_PDF ? ['script', {
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=UA-131730139-2'
}],
process.env.EXPORT_PDF === 'True' ? [] :['script', {}, `
}] : []),
...(!process.env.EXPORT_PDF ? ['script', {}, `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-131730139-2');
`],
`] : []),
['link', {
rel: 'icon',
href: `/logos/icon-512x512.png`
Expand Down

0 comments on commit 0b1ce66

Please sign in to comment.