[Vuejs]-How to add relative img path on render in Nuxtjs from markdown?

0👍

Use "require" and syntax like this

<img class="card-img-top" :srcset="require('~/assets/'+article.img).srcSet" alt="Sample i/>

In the My-First-blog.md , just add te img name

title: How i started my developing career
description: 'This is a roadmap of todo list while starting with software developer in it field and excelling it.'
author: jerryyhank
img: nuxt2.png

Leave a comment