This repository contains the source code of the website for the freemove project - a research project investigating privacy-centered urban mobility data.
This static site is built with Eleventy (11ty). It uses the templating language liquid to combine together data and templates.
The pages are styles using Tailwind CSS.
Attention: The CSS pipeline is currently buggy in local development. Not all changes trigger the local dev server to reload properly.
- Node.js
First, install the dependencies:
npm installStart development server:
npm run devA development server will be available at http://localhost:8080.
Layouts are templates that wrap other templates and surrounds them with markup. We use 3 types of layouts:
- root: The base layout that includes the HTML skeleton that all other layouts and pages use.
- wrapper: This layout is applied to all pages, except the events.
- event: Specific layout for events.
Reusable elements or elements that are too big for implementing them directly in the templates are added as partials in src/_includes/partials.
The assets such as images, audio, stylesheets, etc. can be found in src/assets/. If you want to use a folder inside that doesn't exist yet, you need to add it to the Eleventy asset pipeline.
General data can be defined in src_/data/.
There are currently no tests in this project.
All content for the website (events, blog posts, etc.) live in this repository. In this section you can find instructions on how to create new content, update or delete it.
For each change you want to make to the content, please create a new branch based on the main branch first. Then, make your changes and open a Pull Request (PR). This PR can then be merged into main. If you need support for this workflow or encounter problems, please ask one of the repository maintainers for help.
The freemove blog content can be found in the following folder: src/blog. You will find a file named index.liquid which you won't have to touch. It simply displays all available blog posts automatically. The interesting files are the ones with a .md file extension. Each of these Markdown files holds the contents of a blog post. Note the first lines which are always encapsulated with three dashes like this:
---
# [...]
---This so-called "front matter" holds some metadata about the blog post. If you want to create a new blog post, duplicate one of the .md files and update the front matter according to your desired content.
Note that you shouldn't update the line
layout: layouts/blog.liquid. This is a property that all blog posts need.
One important bit is the thumb_image_path key. This is the path (relative to the src folder) to the image you want to have displayed in the blog overview page. Make sure to add that file to the src/assets/images/blog folder and add the correct path.
Below the second --- goes the actual content of your blog post. If you want to show images in your Markdown, also add them to the same folder as the thumb image, as described above.
If you want to delete a blog post, simply delete the file from the folder.
The freemove event calendar can be found in the following folder: src/calendar. The structure here is the same as the blog posts, so the same instructions apply โฌ๏ธ.
There is one difference in that the content (below the second ---) is the part that is collapsed in the UI at first.
In the event overview page, the events are automatically assigned to years according to the date key in the front matter.
If you want to delete an event, simply delete the file from the folder.
If you need to make changes to the project partners section, go to src/partners. You will find several folders which each hold the content of one of the project partners. Inside a folder, the .json file holds general information about the responsible person of the partner, index.md is the place for the detailed text about said person. school.md holds the content that is displayed in the project partners overview page.
Remember to add a new image should the responsoble person change.
If you want the page to host documents such as PDFs, simply add them to src/assets/docs. These will be automatically available in a path like this: https://www.freemove.space/docs/DLR_MovingLab_DSK_Freemove.pdf
Thanks goes to these wonderful people (emoji key):
Fabian Morรณn Zirfas ๐ |
Lucas Vogel ๐ |
lucasoeth ๐ป |
Dennis Ostendorf ๐ป |
edgalindo ๐จ |
Ingo Hinterding ๐ |
This project follows the all-contributors specification. Contributions of any kind welcome!
|
|
|
|
|
|
|
|
|
|
