index.html 779 B

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