From 2878f733e99b51916ff1e36fdcd1fe214dcfd6b0 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 1 Apr 2025 21:07:07 +0200 Subject: 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 --- web/.gitignore | 2 ++ web/hugo.toml | 2 ++ web/layouts/baseof.html | 11 +++++++++++ web/layouts/home.html | 3 +++ 4 files changed, 18 insertions(+) create mode 100644 web/.gitignore create mode 100644 web/hugo.toml create mode 100644 web/layouts/baseof.html create mode 100644 web/layouts/home.html 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 @@ + + + + + + {{ .Site.Title }} + + + {{ block "main" . }}{{end}} + + 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" -}} +

{{ .Site.Title }}

+{{- end -}} -- cgit v1.2.3-70-g09d2