Website of Frog Collective organization.
Go to file
Corentin e438103906 doc: add notes about static pages generation in documentation (closes #6) 2024-05-21 01:30:23 +02:00
.vscode feat: Add initial content 2024-05-17 19:04:28 +02:00
assets feat: use content to generate games section (#6) 2024-05-21 01:23:12 +02:00
content feat: use content to generate news section (#6) 2024-05-21 01:23:21 +02:00
src feat: use content to generate news section (#6) 2024-05-21 01:23:21 +02:00
.gitignore chore: use jean-website to generate site (#6) 2024-05-20 15:56:04 +02:00
README.md doc: add notes about static pages generation in documentation (closes #6) 2024-05-21 01:30:23 +02:00
noxfile.py chore: use jean-website to generate site (#6) 2024-05-20 15:56:04 +02:00
site.py feat: use content to generate presentation section (#6) 2024-05-21 00:56:10 +02:00
stylesheet.css css: add padding to page content 2024-05-19 17:52:45 +02:00

README.md

Frog Collective Website

The repository contains the Frog Collective website implementation.

Quickstart

To generate the website, use nox :

nox -s build

The website is generated in the build directory.

Editor Documentation

The content of the website is stored in the "Content" directory.

Adding news

News can be added by adding a markdown file in the content/news directory. Name them with english-formatted date so that they are sorted chronologically in the rendered website. The title is defined in the metadatas, in the field 'title', the body of the news is the markdown document :

---
title: Your news title
---

Mardown content for the news

Date used for the news is the date the file was created in git.

Developper Documentation

HTML generation

We use https://git.collectivit.org/collectivit/jean-website to generate the website. Jinja2 templates are stored in the src directory, and use the content loaded from the 'content' folder to generate static pages. Content can be markdown document with metadata, or json files.

CSS

We use the BEM naming convention with the scheme

.block--element__modifier

See https://getbem.com/naming/ for insigths on the BEM naming convention.