diff options
author | xengineering <me@xengineering.eu> | 2025-04-01 21:07:07 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-04-01 21:07:07 +0200 |
commit | 2878f733e99b51916ff1e36fdcd1fe214dcfd6b0 (patch) | |
tree | c153618c430cfb85f782e05677ff0ec90c077d23 | |
parent | d24fd456882d44c1aa9861c5dff4a2220378bb28 (diff) | |
download | iot-contact-2878f733e99b51916ff1e36fdcd1fe214dcfd6b0.tar iot-contact-2878f733e99b51916ff1e36fdcd1fe214dcfd6b0.tar.zst iot-contact-2878f733e99b51916ff1e36fdcd1fe214dcfd6b0.zip |
web: Add minimal Hugo-based site
Hugo [1] is a common static site generator. It should be used to
generate a site where build artifacts of this project can be presented
and deployed.
[1]: https://gohugo.io
-rw-r--r-- | web/.gitignore | 2 | ||||
-rw-r--r-- | web/hugo.toml | 2 | ||||
-rw-r--r-- | web/layouts/baseof.html | 11 | ||||
-rw-r--r-- | web/layouts/home.html | 3 |
4 files changed, 18 insertions, 0 deletions
diff --git a/web/.gitignore b/web/.gitignore new file mode 100644 index 0000000..07b5637 --- /dev/null +++ b/web/.gitignore @@ -0,0 +1,2 @@ +public +.hugo_build.lock diff --git a/web/hugo.toml b/web/hugo.toml new file mode 100644 index 0000000..493ec29 --- /dev/null +++ b/web/hugo.toml @@ -0,0 +1,2 @@ +title = 'IoT contact' +disableKinds = ["taxonomy", "RSS", "sitemap"] diff --git a/web/layouts/baseof.html b/web/layouts/baseof.html new file mode 100644 index 0000000..983e6e1 --- /dev/null +++ b/web/layouts/baseof.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>{{ .Site.Title }}</title> + </head> + <body> + {{ block "main" . }}{{end}} + </body> +</html> diff --git a/web/layouts/home.html b/web/layouts/home.html new file mode 100644 index 0000000..5425ac9 --- /dev/null +++ b/web/layouts/home.html @@ -0,0 +1,3 @@ +{{- define "main" -}} +<h1>{{ .Site.Title }}</h1> +{{- end -}} |