Skip to content

MieuxVoter/mieuxvoter.fr

Repository files navigation

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!

About

Site web de MieuxVoter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages