diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index 729ae8da03..1d56dd9f3a 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -3,8 +3,17 @@
{{- else }}
{{- range .AlternativeOutputFormats }}
+ {{- if ne .Name "JSON" }}
{{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{- end }}
+ {{- end }}
+{{- end }}
+{{- if and (ne .Site.Params.disableSeoHiddenPages true) (ne .Site.Params.disableSearchHiddenPages true) }}
+{{- range .AlternativeOutputFormats }}
+{{- if eq .Name "JSON" }}
+ {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+{{- end }}
+{{- end }}
{{- end }}
{{- with .Site.Params.author }}