mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-05 16:13:52 +00:00
Forms part of the transition from Microdata to JSON-LD. BREAKING CHANGES Upgrades to your `params.toml` file are required: - Address field has been split into semantic parts - Latitude and longitude have moved under `coordinates` option - Map settings have moved under `[map]` section - Office hours can now be specified more simply, as a list - Added optional `list_delimiter` option for formatting addresses See #413
21 lines
720 B
HTML
21 lines
720 B
HTML
{{- define "main" -}}
|
|
|
|
{{/* Check that user fully installed Academic. */}}
|
|
{{ if not (isset site.Params "theme") }}
|
|
{{ errorf "Please complete the installation of Academic by following the steps at https://sourcethemes.com/academic/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://sourcethemes.com/academic/updates/v4.5.0/" }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{/* Generate homepage. */}}
|
|
{{ partial "widget_page.html" . }}
|
|
|
|
{{- end -}}
|