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:
authorWang Chucheng <me@wangchucheng.com>2021-04-21 19:14:22 +0300
committerWang Chucheng <me@wangchucheng.com>2021-04-21 19:14:22 +0300
commit285eb0f5e27f97b8eeddff251204bbdeed17564d (patch)
tree083110707888983f0c606c612724ed7807a32ede /layouts/partials
parent1762613dfb06a9f2fb0958b4550234ea7193b772 (diff)
feat: recursive repoEditURLv0.8.0
BREAKING CHANGES: Param 'repoURL' in params.yaml is deprecated.
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/components/post-edit.html2
-rw-r--r--layouts/partials/head.html19
-rw-r--r--layouts/partials/widgets/about.html2
3 files changed, 14 insertions, 9 deletions
diff --git a/layouts/partials/components/post-edit.html b/layouts/partials/components/post-edit.html
index 09cbec8..5a87dc6 100644
--- a/layouts/partials/components/post-edit.html
+++ b/layouts/partials/components/post-edit.html
@@ -21,7 +21,7 @@
</div>
{{/* Deprecation warning(v1.0.0) starts */}}
{{- else if .Site.Params.repoURL }}
- {{ warnf "Param 'repoURL' in params.yaml is deprecated and will be removed in Eureka v1.0.0. See https://www.wangchucheng.com/en/docs/hugo-eureka/customization/" }}
+ {{ warnf "Param 'repoURL' in params.yaml is deprecated and will be removed in Eureka v1.0.0. See https://www.wangchucheng.com/en/docs/hugo-eureka/customization/#params-config-file" }}
<div class="flex md:justify-end my-4">
{{- $repoEditURL := path.Join .Site.Params.repoURL "/blob/master/" }}
{{ $contentDir := cond .Site.IsMultiLingual .Site.Params.contentDir "/content/" }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index cc0b21f..a81c00c 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -82,13 +82,18 @@
{{- $enableMath := false }}
{{- if .Site.Params.math.handler }}
-{{- $bundles := partial "utils/get-bundles" . }}
-{{- $enableMath = true }}
-{{- range $bundles.Reverse }}
-{{- if and (ne .Params.math nil) (ne .Params.math "") }}
-{{- $enableMath = .Params.math }}
-{{- end }}
-{{- end }}
+ {{- $bundles := partial "utils/get-bundles" . }}
+ {{- $enableMath = true }}
+ {{- range $bundles.Reverse }}
+ {{- if and (ne .Params.enableMath nil) (ne .Params.enableMath "") }}
+ {{- $enableMath = .Params.enableMath }}
+ {{/* Deprecation warning(v1.0.0) starts */}}
+ {{- else if and (ne .Params.math nil) (ne .Params.math "") }}
+ {{ warnf "Param 'math' in %q is deprecated and will be removed in Eureka v1.0.0. Please use 'enableMath' instead." .File.Path }}
+ {{- $enableMath = .Params.math }}
+ {{/* Deprecation warning(v1.0.0) ends */}}
+ {{- end }}
+ {{- end }}
{{- end }}
{{ define "partials/camelize" }}
diff --git a/layouts/partials/widgets/about.html b/layouts/partials/widgets/about.html
index 184fccb..3c04d22 100644
--- a/layouts/partials/widgets/about.html
+++ b/layouts/partials/widgets/about.html
@@ -36,7 +36,7 @@
{{ range $brand }}
{{/* 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 }}
+ {{ warnf "Param 'icon_pack' in %q is deprecated and will be removed in Eureka v1.0.0. Please use 'iconPack' instead." $.File.Path }}
{{ end }}
{{ $iconPack := .iconPack | default .icon_pack }}
{{/* Deprecation warning(v1.0.0) ends */}}