Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 05933a6..3d52441 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -172,10 +172,29 @@
<h2 class="font-bold text-3xl my-4">{{ .Params.Title }}</h2>
</div>
<div class="flex-grow {{ if eq $sidebar.position "right" -}} lg:mr-4 {{- else -}} lg:ml-4 {{- end }}">
+ {{/* Deprecation warning(v1.0.0) starts */}}
+ {{- if eq .Params.widget.handler "experiences" }}
+ {{- warnf "Value `experiences` for `widget.handler` in %s is deprecated and will be removed in Eureka v1.0.0. Please use `experience` instead." .File.Path }}
+ {{ partial (printf "widgets/%s" "experience") . }}
+ {{- else }}
+ {{/* Deprecation warning(v1.0.0) ends */}}
{{ partial (printf "widgets/%s" .Params.widget.handler) . }}
+ {{/* Deprecation warning(v1.0.0) starts */}}
+ {{- end }}
+ {{/* Deprecation warning(v1.0.0) ends */}}
+
</div>
</div>
{{ else }}
+ {{/* Deprecation warning(v1.0.0) starts */}}
+ {{- if eq .Params.widget.handler "experiences" }}
+ {{- warnf "Value `experiences` for `widget.handler` in %s is deprecated and will be removed in Eureka v1.0.0. Please use `experience` instead." .File.Path }}
+ {{ partial (printf "widgets/%s" "experience") . }}
+ {{- else }}
+ {{/* Deprecation warning(v1.0.0) ends */}}
{{ partial (printf "widgets/%s" .Params.widget.handler) . }}
+ {{/* Deprecation warning(v1.0.0) starts */}}
+ {{- end }}
+ {{/* Deprecation warning(v1.0.0) ends */}}
{{ end }}
{{ end }} \ No newline at end of file