index.html 720 B

1234567891011121314151617181920
  1. {{- define "main" -}}
  2. {{/* Check that user fully installed Academic. */}}
  3. {{ if not (isset site.Params "theme") }}
  4. {{ errorf "Please complete the installation of Academic by following the steps at https://sourcethemes.com/academic/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://sourcethemes.com/academic/updates/v4.5.0/" }}
  11. {{ end }}
  12. {{ end }}
  13. {{/* Generate homepage. */}}
  14. {{ partial "widget_page.html" . }}
  15. {{- end -}}