NuxtN
Nuxt10mo ago
12 replies
nandi95

Content change content programatically

I'm trying to add style tag to the h1 of my posts:
I tried the {style="... that didn't work
I also tried in nuxt config:
content: { build: {
  transformers: ['~/transformers/add-view-transition']
} },

and I also tried in the nuxt config:
hooks: {
    'content:file:afterParse': ctx => {
        console.log(`Parsing ${ctx.file.path}...`);
    }
},

I just can't seem to get anything.
I am not getting logs in dev or during nuxi generate.
What am i doing wrong?
Was this page helpful?