From 166ded2480c4e486b63af3a238ddb7620efc5b6e Mon Sep 17 00:00:00 2001 From: George Cushen Date: Fri, 30 Aug 2019 14:37:43 +0300 Subject: [PATCH] refactor: update installation checks Fix #1308 --- layouts/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index d79d8ced..ad6c3ec1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,9 +1,11 @@ {{- define "main" -}} -{{ if not (isset site.Params "color_theme") }} +{{/* 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 }} +{{/* Generate homepage. */}} {{ partial "widget_page.html" . }} {{- end -}}