Made with
by giki
Complex
You can customize the generation behaviour.
It requires a Giki.json file which explains how your page should be created.
The following explains the Giki.json file:
"theme": {
"repo": "https://github.com/StefMa/hugo-fresh-wiki.git",
"commit": "6507a8bde38eab7a44928f6a493bfa8ab4522b37"
}
The theme object describes the repo for the Hugo theme.
Both keys (repo and commit) are required.
"config": {
"file": "config.yaml",
"replacements": {
"[BASE_URL]": "[URL]",
"[TITLE]": "[REPO]"
}
}
The config section describes the Hugo config file. You can use any config file which is supported by Hugo. Simply point with the key file to your config file inside the repository.
The replacements are optional. Here you can let giki replace some values in your config file.
Note: The replacements are totally up to you. Internally we checkout the
keysfrom thereplacementsand “blindly” replace them with the givenvalue. There are some “placeholders” values possible which are described in the following table.
| Placeholder | Description | Example |
|---|---|---|
| [URL] | The full URL to the deployment | https://stefma-giki-help.now.sh |
| [REPO] | The name of the repository (owner included) | stefma/giki-help |
| [MD_NAME] | The name of the markdown file | Complex |
"header": {
"file": "header.md",
"replacements": {
"[TITLE]": "[MD_NAME]"
}
}
header describes the file which will be written at top of each markdown file.
The replacements follow the same rules as above.
"files": [
{
"file": "index.md",
"replacements": {
"[TITLE]": "[REPO]"
}
},
{
"file": "_index.md"
}
]
If you want to add additional files to the site (maybe because hugo required it) you can use the files array.
They will follow the same pattern as the config and header. The file points to the file inside the repo and the replacements follow the same rule as above.
"markdownDirectory": "content"
With the markdownDirectory you specify where the markdown files will be placed (inside a “hugo tree”).
Some layouts require the files in content some others in content/posts.
Examples
Examples for a fully working Git repo can be found in the following locations: