mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 18:16:17 +00:00
25 lines
779 B
HTML
25 lines
779 B
HTML
{{- define "main" -}}
|
|
|
|
{{/* Check that user fully installed Wowchemy. */}}
|
|
{{ if not (isset site.Params "theme") }}
|
|
{{ errorf "Please complete the installation of Wowchemy by following the steps at https://wowchemy.com/docs/install/" }}
|
|
{{ end }}
|
|
|
|
{{/* Deprecation warnings */}}
|
|
|
|
{{/* v4.5: Address changed from string to map. */}}
|
|
{{ if isset site.Params "address" }}
|
|
{{ if eq (reflect.IsMap site.Params.address) false }}
|
|
{{ errorf "Please upgrade the `address` field in `config/_default/params.toml`. Refer to all of the Breaking Changes in v4.5 at https://wowchemy.com/updates/v4.5.0/" }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{/* Generate homepage. */}}
|
|
{{ if eq .Type "book" }}
|
|
{{ partial "book_layout.html" . }}
|
|
{{ else }}
|
|
{{ partial "widget_page.html" . }}
|
|
{{ end }}
|
|
|
|
{{- end -}}
|