This repository contains the website content for the DevOps Montreal website.
All documentation is written in Markdown. The website uses the Hugo website framework.
The multilingual mode of Hugo is used in order to support both English and French languages side-by-side.
- Hugo >= 0.17
In the top directory of this repository, start the Hugo webserver:
hugo server
Add the menu entry for both languages on the config.toml configuration file. The
url
and weight
attributes should stay identical:
[[languages.en.menu.main]]
url = "/page/foo/"
name = "Foo English"
weight = 0
[...]
[[languages.fr.menu.main]]
url = "/page/foo/"
name = "Foo French"
weight = 0
Create the page for each language in the proper subdirectory, here
content/page/foo.en.md
and content/page/foo.fr.md
:
---
title: "Foo"
date: "2016-10-26"
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
In the top directory of this repository, start the Hugo webserver:
hugo server
Create the page for each language in the proper subdirectory, here
content/post/january-1970.en.md
and content/page/january-1970.fr.md
:
---
title: "Foo"
description: "Monthly meetup"
date: "2016-10-26"
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit.