From c33985a935b5bf5706bed27bc112f700df2f2903 Mon Sep 17 00:00:00 2001 From: Wang Chucheng Date: Mon, 28 Dec 2020 02:06:11 +0800 Subject: feat: widget system for configuring homepage BREAKING CHANGE: Param 'hero' in params.toml is deprecated. BREAKING CHANGE: Param 'icon_pack' in %q is deprecated. Use 'iconPack'. BREAKING CHANGE: 'doc_list' in doc layout is deprecated. Use 'doc-list'. Closes #11 --- layouts/partials/widgets/about.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'layouts/partials/widgets/about.html') diff --git a/layouts/partials/widgets/about.html b/layouts/partials/widgets/about.html index 744527f..e761c53 100644 --- a/layouts/partials/widgets/about.html +++ b/layouts/partials/widgets/about.html @@ -1,5 +1,5 @@
- {{ $img := partial "get_image.html" (dict "context" . "url" .Params.avatar "keyword" "*avatar*")}} + {{ $img := partial "utils/get-image" (dict "context" . "url" .Params.avatar "keyword" "*avatar*")}} {{ with $img }}
Avatar @@ -34,10 +34,19 @@
{{ $brand := $.Param "social"}} {{ range $brand }} - {{ $src := print .icon_pack " fa-" .icon }} + {{/* Deprecation warning(v1.0.0) starts */}} + {{ if .icon_pack }} + {{ warnf "Param 'icon_pack' in %q is deprecated and will be removed in Eureka v1.0.0. Use 'iconPack' instead." $.File.Path }} + {{ end }} + {{ $iconPack := .iconPack | default .icon_pack }} + {{/* Deprecation warning(v1.0.0) ends */}} + {{ $src := print $iconPack " fa-" .icon }}
{{ end }}
+
+
+ {{ .Content }}
\ No newline at end of file -- cgit v1.2.3