Source code of our new launch page for Namib GNU/Linux
- Install hugo on Namib with
yaourt -S hugo
- clone this repository to your local pc with
https://github.com/meerkatbrowser/namib-website.git
- change in the new dir with
cd namib-webiste
- do a test run with
hugo server
- preview the homepage with any webbrowser from
http://localhost:1313/public
- simply click on here
- read the Beginners Guide of Hugo first
- modify the theme in partials and static if needed
- edit the config file to your needs
- run a preview on your local machine with
hugo server
from your localhost - when satisfied run
hugo
to render the pages - check baseurl in public and change if needed
- tell us about your fork
Due to HUGO's limitations, you cannot issue hugo new
. The only way is to go to `content/support/commonproblems' and create a new entry manually (or just by copying and modifying an existing entry).
Not all content can be easily extended. All pages are based on markdown files in the content
directory. There are two types of content:
- "Dynamic" content
- "Static" content
"Static" content is content that heavily interacts with its base template. For example the template will only insert most of the content by itself and only take the content of the markdown file for some description.
"Dynamic" content will be created completely by the markdown file and is indicated by type = "<anything>-post"
The homepage was designed to support translation. To translate the homepage, create a fork and edit the current language in config.toml
. Also don't forget to modify the list of available languages and send your modifications upstream. Unfortunately there's no better way to create translations using HUGO.
All content was created to allow translation without skimming though the HTML templates. Just translate the entries in config.toml
and all files in content
.