Skip to content

RollingTL/Image-gallery-nuxt3-i18n

Repository files navigation

Multilingual static site based on Nuxt Content, Nuxt 3, nuxtjs/i18n

Boilerplate to start localized static site. Includes two static routs and dynamic routes and metadata for each page.

Gallery index page:

gallery

Gallery item page:

gallery item

Setup

Make sure to install the dependencies:

# npm
npm install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

Deployment to static server

Build the application for production:

# npm
npx nuxi generate

Check out the deployment documentation for more information.

Then copy content of dist folder to public folder of your web site.

If necessary create .htaccess and robots.txt files.

Sample .htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ /index.html [L]

Sample robots.txt

User-agent: *
Disallow:

About

Boilerplate for multilingual static site based on Nuxt Content, Nuxt 3, nuxtjs/i18n

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published