Website of Frog Collective organization.
Go to file
Adrien Allard 55b161a7ec fix: smaller margin between frog and titles 2024-06-10 18:20:12 +02:00
.vscode ci: add task to compile messages 2024-06-10 12:39:01 +02:00
config fix: fix: don't localize urls for ico assets 2024-06-10 12:53:35 +02:00
content feat: remove french news test 2024-06-10 17:31:05 +02:00
locale/fr/LC_MESSAGES loc: extract messages 2024-06-10 12:30:31 +02:00
src fix: smaller margin between frog and titles 2024-06-10 18:20:12 +02:00
.gitignore chore: use jean-website to generate site (#6) 2024-05-20 15:56:04 +02:00
.static-pages.yml feat: configure Forgejo static pages to publish site 2024-06-03 01:07:39 +02:00
README.md docs: add doc about how to setup devenv and setup vscode tasks for basic automation 2024-06-07 09:57:08 +02:00
babel.cfg localisation: move presentation back to the jinja template 2024-05-22 03:18:52 +02:00
noxfile.py feat: configure Forgejo static pages to publish site 2024-06-03 01:07:39 +02:00
site.py refactor: update jean-web to new api 2024-05-22 01:06:09 +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.

To iterate more rapidly, avoid rebuilding the virtualenv each time by running :

nox -R -s build

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-web 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.

We use SASS as a CSS extension language (https://sass-lang.com/).

Dev env

Install the following dependencies to be able to test the website locally:

npm install -g browser-sync