diff --git a/README.md b/README.md index 27e4dc2..95f71e1 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,15 @@ # .github -Kagenti Project organization +Kagenti website ### Local Run -```shell +Install Hugo submodule. +```sh +git submodule init +git submodule update --init --recursive +``` + +Start the server. +```sh hugo server -D ``` \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index 7f84632..d4c1ac6 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,8 +1,10 @@ baseURL = 'http://example.org/' languageCode = 'en-us' title = 'Kagenti' +description = 'Kubernetes Agent Platform for AI with secure identity' contentDir = 'content' enableEmoji = true +tags = ['Kubernetes', 'agent', 'workload', 'platform', 'AI', 'LLM'] [module] # uncomment line below for temporary local development of module diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..681de0c --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,59 @@ + + + {{- .Site.Title }} + {{- if not hugo.IsProduction }} + + {{- end }} + + + + + + {{ block "head/favicon" . }}{{ partialCached "head/favicon.html" . }}{{ end }} + + {{- partial "google-fonts" . }} + + {{- $options := dict "enableSourceMap" true }} + {{- if hugo.IsProduction}} + {{- $options := dict "enableSourceMap" false "outputStyle" "compressed" }} + {{- end }} + {{- $style := resources.Get "/scss/style.scss" }} + {{- $style = $style | resources.ExecuteAsTemplate "/scss/style.scss" . | css.Sass $options }} + {{- if hugo.IsProduction }} + {{- $style = $style | minify | fingerprint "sha384" }} + {{- end -}} + + + {{ $js := resources.Get "js/bootstrap.js" }} + {{ $params := dict }} + {{ $sourceMap := cond hugo.IsProduction "" "inline" }} + {{ $opts := dict "sourceMap" $sourceMap "minify" hugo.IsProduction "target" "es2018" "params" $params }} + {{ $js = $js | js.Build $opts }} + {{ if hugo.IsProduction }} + {{ $js = $js | fingerprint "sha384" }} + {{ end }} + + + {{ if ($.Scratch.Get "image_compare_enabled") }} + {{ $imagecompare := resources.Get "js/image-compare-viewer.min.js" }} + {{- if not hugo.IsServer }} + {{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" | minify | fingerprint "sha384" }} + + {{- else }} + {{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" }} + + {{- end }} + {{- end }} + + {{- if not hugo.IsServer }} + {{ if and (.Site.Params.plausible.scriptURL) (.Site.Params.plausible.dataDomain) -}} + {{- partialCached "head/plausible" . }} + {{- end -}} + {{- end -}} + + {{- if not hugo.IsServer }} + {{- if .Site.Config.Services.GoogleAnalytics.ID }} + {{- template "_internal/google_analytics.html" . -}} + {{- end -}} + {{- end -}} + \ No newline at end of file