瀏覽代碼

refactor: update installation checks

Fix #1308
George Cushen 6 年之前
父節點
當前提交
166ded2480
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      layouts/index.html

+ 3 - 1
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 -}}