Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.8 KB

README.md

File metadata and controls

65 lines (41 loc) · 1.8 KB

Netlify Status

This is the website of Mieux Voter (aka Better Vote). It is available online at mieuxvoter.fr.

Getting Started

First, install the dependencies:

npm install
# or
yarn install

Second, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Write blog article using MDX (extended version of Markdown)

  1. Add a file on content/blog/[slug].mdx to write an article at https://mieuxvoter.fr/blog/slug.

  2. Add meta contents as a YAML table as the beginning of your article, such as:

---
title: 'Premier article'
author: 'Pierre-Louis Guhur'
assets:
  graph: 
    type: json
    path: 'example-plotly.json'
---
  1. As seen above, you can add assets (stored in content/assets) as dictionary of file. In this case, you will be able to access those assets in your article, such as:
<Plot {...graph} />
  1. Yes, you can add JSX components, but that's not completely magical. Basic coponents (such as headers and paragraphs) are imported by the MDX plugin. Other (such as Plot) are directly imported in pages/blog/[slug].js.

Write blog article using Wordpress

You can also a Wordpress CMS by modifying .env.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!