Code Monkey home page Code Monkey logo

trafiklab.se's Introduction

Trafiklab.se

This project contains the Trafiklab.se website, based on the Hugo framework. Both the layout/theme and content are stored in this repository.

Continuous deployment is used to

Rendering the website

The website can be rendered locally. In order to do so, follow the following steps:

  • Ensure Hugo is installed and in your PATH. You should be able to run the "hugo" command in the terminal of your choice. If you do not have Hugo on your computer, grab the latest extended release from https://github.com/gohugoio/hugo/releases.
  • Run hugo serve from the project root to render all pages, making them accessible at port 1313 (by default).
  • You can now alter the source, the development server will update all changed pages on the fly.

Note: A python script is used to automatically create Swedish pages from English content when no Swedish content is available. Since this script isn't run when running the development server, some pages will be missing from the Swedish development instance.

Editing content

Every page is stored as a markdown file. Each file contains so-called "front-matter" at the top, containing metadata such as the title and publish date, as well as which layout which should be used in case one wants to deviate from the default layout for a section. Below the front-matter all page content is written as markdown.

When creating a folder, which also should have its own page (for example, if both /api and /api/gtfs-regional need to be pages with content in the api folder), the "index" file should be called _index.md.

trafiklab.se's People

Contributors

alfredstegert avatar bertware avatar christian-morin avatar gabysamtrafiken avatar karamanisd avatar kevinlindgren avatar linneakristiansson avatar papa-ogen avatar pr0gr8mm3r avatar samtrafiken-admin avatar sofieholden avatar teamtrafiklab avatar vikom avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

trafiklab.se's Issues

Editing profile E-mail won't save

The subpage for editing user page (/user/UID/edit) won't save changes to the e-mail field.
Tested on:
Firefox 100.0.2
Google Chrome 100.0.4896.60
Microsoft Edge 101.0.1210.53

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.