Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
nofollow in feed_link?
I am trying to clean up the many, many complaints from the Google Search Console, so that the relevant complaints remain. Google complains that every rss & atom link is not in the sitemap (“crawled but not indexed”). I think I want to add rel="nofollow"
to <txp:feed_link>
. How would I do that?
Last edited by skewray (2024-06-20 17:38:18)
Offline
Re: nofollow in feed_link?
That is an odd complain from google search console. I’ve never had or seen that one. I suppose that that complain only applies to link-to-feed you have in the <body />
of your page (?).
Anyway, you can build those link-to-feed more manually:
<a type="application/atom+xml" rel="alternate nofollow" href="<txp:site_url />atom/" title="Atom feed">
That is for the general feed. If you need more section or category specific links, add something like ?section=foo%2Cbar
at the end of the URL. Repeat for RSS feeds if needed (with application/rss+xml
).
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: nofollow in feed_link?
phiw13 wrote #337330:
That is an odd complain from google search console. I’ve never had or seen that one. I suppose that that complain only applies to link-to-feed you have in the
<body />
of your page (?).Anyway, you can build those link-to-feed more manually:
<a type="application/atom+xml" rel="alternate nofollow" href="<txp:site_url />atom/" title="Atom feed">...
That is for the general feed. If you need more section or category specific links, add something like
?section=foo%2Cbar
at the end of the URL. Repeat for RSS feeds if needed (withapplication/rss+xml
).
Yes, link-to-feed in <body>
. I was told I should keep those, even though I also have them in the header. Not sure why? Seems like I should be able to slide in a nofollow
somehow into feed_link
.
Last edited by skewray (2024-06-21 06:55:46)
Offline
Offline
Re: nofollow in feed_link?
Beautiful! Well, ugly, but it solves my problem without ten lines of Txp. Thank you.
Offline
Pages: 1