diff --git a/docs/assets/scss/schema-docs.scss b/docs/assets/scss/schema-docs.scss
index cf8c961b7d..2a8b0a3b50 100644
--- a/docs/assets/scss/schema-docs.scss
+++ b/docs/assets/scss/schema-docs.scss
@@ -330,4 +330,34 @@
@include u-text('bold');
}
}
+}
+
+
+.reference-element-anchor {
+ // : :after
+ font-style: normal;
+ font-variant: normal;
+ font-kerning: auto;
+ font-optical-sizing: auto;
+ font-feature-settings: normal;
+ font-variation-settings: normal;
+ font-weight: normal;
+ font-stretch: normal;
+ font-size: 1em;
+ line-height: inherit;
+ font-family: anchorjs-icons;
+ position: absolute;
+ margin-left: -1em;
+ padding-right: 0.5em;
+}
+
+.reference-element-anchor:hover {
+ text-decoration: underline;
+ transform: scale(1.06);
+ border-image: "⚓";
+}
+
+.reference-element-anchor :hover::before {
+ font-family: anchorjs-icons;
+ background-image: "⚓";
}
\ No newline at end of file
diff --git a/docs/layouts/partials/foot.html b/docs/layouts/partials/foot.html
index 1165db0fd2..79b5a7fac1 100644
--- a/docs/layouts/partials/foot.html
+++ b/docs/layouts/partials/foot.html
@@ -1,23 +1,42 @@
{{ if not .Site.IsServer }}
{{ end }}
-{{ $generateAnchors := true }}
-{{- if isset .Page.Params "generateanchors" -}}
- {{ $generateAnchors = .Page.Params.generateanchors }}
-{{- end -}}
-{{ if $generateAnchors -}}
-
+{{ $generateAnchors:= true }}
+
+{{ if ne .Page.Params.generateanchors nil }}
+{{ $generateAnchors = .Page.Params.generateanchors }}
+{{ end }}
+
+{{ if $generateAnchors }}
+
-{{- end }}
+{{ end }}
\ No newline at end of file