You need to install hugo, a command line tool for building static websites.
Once you have hugo installed:
# Clone the repository
git clone https://github.com/manulera/OpenCloning_landing_page
cd OpenCloning_landing_page
# Install the theme as a submodule
git submodule init
git submodule update
# Then just:
hugo -D serveThe site should be live at http://localhost:1313/.
Content is mostly included in markdown files in the content folder. content/_index.md is the main page of the site, and the pages of the submenus are in the folders content/people, content/success-stories, etc.
The Hugo templates often use the yaml frontmatter to include metadata. It's a section at the top of the file that starts with --- and ends with --- and is in yaml format. A good example of this is content/_index.md, where there is not actual markdown content, but only metadata.
To modify existing content, simply edit the markdown file.
- Create a new folder in
content/with the name of the page. - Add a
_index.mdfile to the folder. - Add the necessary frontmatter to the file (at least
title). - Add the page in the navigation menu by editing the
[menu]section inhugo.toml.
Put your file in the static folder, if it's an image, put it in static/images. Then, in the markdown or html files you can reference it using the below path (don't forget the / at the beginning!).
<img src="/images/service-3.png">The site uses a theme called bigspring-light. The way Hugo themes work is that the default theme files are used, unless you create a new file with the same name in the project folder. For instance, layouts contains some html templates for the site that override the ones present in the theme themes/bigspring-light/layouts. The same applies to files in static, assets (contains css for styling), etc.
If you want to add a new template (e.g. the one for the people page), you have to create a new file in the layouts/_default folder that matches the name of the page. For instance, to add a new template for the people page (in content/people/_index.md), create layouts/_default/people.html. See that file for example of how to structure it.
The content of this website is licensed CC BY SA 4.0