aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-02-01 21:46:27 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-02-01 21:46:27 +0800
commitb65b7ab2eb63217f143754c376a7cbcfb59c6e82 (patch)
treeccae1e9e3d4cce740b8c05a4326d5094206cf8c6 /layouts
parentdf28365582e7b95666729a975924496124801732 (diff)
docs: init CHANGELOG, use `errorf` give friendlier error
This relates to #23
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 445c5fb..ce87827 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,3 +1,6 @@
+{{ if ne .Site.Params.version "3.x" -}}
+{{ errorf "\n\nThere are two possible situations that led to this error:\n 1. You haven't copied the config.toml yet. See https://github.com/olOwOlo/hugo-theme-even#installation \n 2. You have an incompatible update. See https://github.com/olOwOlo/hugo-theme-even/blob/master/CHANGELOG.md#300 \n\n有两种可能的情况会导致这个错误发生:\n 1. 你还没有复制 config.toml 参考 https://github.com/olOwOlo/hugo-theme-even/blob/master/README-zh.md#installation \n 2. 你进行了一次不兼容的更新 参考 https://github.com/olOwOlo/hugo-theme-even/blob/master/CHANGELOG.md#300 \n" -}}
+{{ end -}}
<!DOCTYPE html>
<html lang="{{ .Site.Language }}">
<head>