From 44a03fe5a08eb8bc9d15537f256f94c12dc255a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 23 Sep 2021 22:38:54 +0200 Subject: [PATCH] theme: announce alternative content in header #101 --- layouts/partials/meta.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index fa730ce9d4..729ae8da03 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -1,6 +1,10 @@ {{- partial "page-meta.go" . }} {{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }} +{{- else }} + {{- range .AlternativeOutputFormats }} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{- end }} {{- end }} {{- with .Site.Params.author }}