index.html 877 B

12345678910111213141516171819202122232425
  1. {{- define "main" -}}
  2. {{/* Check that user fully installed Wowchemy. */}}
  3. {{/* Commented out to allow user to have no params.yaml and just use the defaults. */}}
  4. {{/* if not (isset site.Params "seo") */}}
  5. {{/* errorf "Please complete the installation of Wowchemy by following the steps at https://wowchemy.com/docs/install/" */}}
  6. {{/* end */}}
  7. {{/* Deprecation warnings */}}
  8. {{/* v4.5: Address changed from string to map. */}}
  9. {{ if isset site.Params "address" }}
  10. {{ if eq (reflect.IsMap site.Params.address) false }}
  11. {{ 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/" }}
  12. {{ end }}
  13. {{ end }}
  14. {{/* Generate homepage. */}}
  15. {{ if eq .Type "book" }}
  16. {{ partial "book_layout.html" . }}
  17. {{ else }}
  18. {{ partial "widget_page.html" . }}
  19. {{ end }}
  20. {{- end -}}