GithubHelp home page GithubHelp logo

thesoundoftennis's Introduction

tailwind-nextjs-banner

I18n fork of Tailwind Nextjs Starter Blog

GitHub Repo stars GitHub forks Twitter URL Sponsor

Deploy with Vercel

Unofficial i18n fork of the excellent Tailwind CSS blogging starter template implementing sub-path i18n routing & next-translate. I try to maintin it as up to date as possible with main repo.

Check out the documentation below to get started (or on main repo) to get started.

Feel free to contribute if you see any features missing.

Examples

Using the template? Feel free to create a PR and add your blog to this list.

Motivation

I wanted found Tailwind CSS blogging starter template and was quite happy with it. Only problem is that it didn't supported multiple languages and I wanted to create a blog in both English and French.

Features

All of the main repo Features &

  • Sub-path routing with locale(s)

  • Multi-langage post support

  • Optimized & flexible multi-locale SEO

Quick Start Guide

Please follow main repo's' Quick Start Guide section for general instructions. This section will only cover what to do to add your own(s) locale(s) to the site.

This repository is furnished with en as defaultLocale and with fr as additional locale. You can provide as many locales as you want, you'll just add the corresponding translation.

If you add a new translations in locales folder, please PR this repo. That might help next users / forks.

  1. Checkout the demo/next-translate branch on this repo. Master is kept up to date with timlrx/tailwind-nextjs-starter-blog
  2. Add your own locales and default locale in i18n.json
  3. Add a folder for every locale in the locales folder.
  4. For each .json files (404.json, common.json, headerNavLink.json, ...) in your /locales/[locale] folder, provide a translation
  5. Complete data/siteMetadata.js, adding the localized version for certain field (like title or description, for example.)
  6. Complete the localization of data/projectData.js
  7. Voilà ! You're done !

Post

To have localized version for post, please follow this naming convention:

myPost.md : default locale

myPost.[locale].md: additional locales

Post can be provided in only one locale (that doesn't need to be defaultLocale).

The API routes used in the newsletter component cannot be used in a static site export. You will need to use a form API endpoint provider and substitute the route in the newsletter component accordingly. Other hosting platforms such as Netlify also offer alternative solutions - please refer to their docs for more information.

Support

Using the template? Support this effort by giving a star on Github, sharing your own blog and giving a shoutout on Twitter or be a project sponsor.

Licence

MIT © Timothy Lin

thesoundoftennis's People

Contributors

philiptranp avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.