1. Home
  2. /
  3. Projects
  4. /
  5. Sample Blog Title 4
Friday, February 28, 3023

Sample Blog Title 4

This is a sample blog post.

Table of Contents

Headings up to H3 (inclusive) are added to the Table of Contents

This heading is in the ToC

Lorem ipsum

This heading is not in the ToC

This heading is not in the ToC either

Code

Code blocks can be added like this:

```javascript{1-4}[file.json]
export default defineNuxtConfig({
    modules: ['@nuxtjs/tailwindcss', '@nuxt/content'],
    css: ['/assets/css/main.css'],
    ssr: true,
    experimental: {
        payloadExtraction: false
    },
    router: {
        options: {
            strict: false
        }
    },
    sourcemap: false,
    content: {
        // https://content.nuxtjs.org/api/configuration
        highlight: {
            theme: 'github-dark',
            preload: ['java','javascript']
        },
        markdown: {
            // https://github.com/rehypejs/rehype-external-links
            rehypePlugins: [
                [
                    'rehype-external-links',
                    {
                        target: '_blank',
                        rel: 'noopener noreferer'
                    }
                ]
            ]
        }
    }
});
```

This is processed and looks like this:

file.jsonJavaScript
export default defineNuxtConfig({
    modules: ['@nuxtjs/tailwindcss', '@nuxt/content'],
    css: ['/assets/css/main.css'],
    ssr: true,
    experimental: {
        payloadExtraction: false
    },
    router: {
        options: {
            strict: false
        }
    },
    sourcemap: false,
    content: {
        // https://content.nuxtjs.org/api/configuration
        highlight: {
            theme: 'github-dark',
            preload: ['java','javascript']
        },
        markdown: {
            // https://github.com/rehypejs/rehype-external-links
            rehypePlugins: [
                [
                    'rehype-external-links',
                    {
                        target: '_blank',
                        rel: 'noopener noreferer'
                    }
                ]
            ]
        }
    }
});

You can define language, highlighted lines, and filename.

Inline code is written using `, and looks like this.

Images

Images should be loaded from the public folder. An image is added like this:

![Alt text goes here](/img/blog/sample.webp)

The result of that is:

Alt text goes here
Alt text goes here

Copyright 2024 © All rights reserved — Angel C.