Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-06-20 17:21:43

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 166
Website

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

#2 2024-06-21 00:18:04

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,105
Website

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

#3 2024-06-21 06:52:31

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 166
Website

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 (with application/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

#4 2024-06-21 07:13:20

etc
Developer
Registered: 2010-11-11
Posts: 5,090
Website GitHub

Re: nofollow in feed_link?

skewray wrote #337333:

Seems like I should be able to slide in a nofollow somehow into feed_link.

That’s easy, but dirty (but easy):

<txp:feed_link trim="<a" replace='<a rel="nofollow"' />

Offline

#5 2024-06-21 14:16:54

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 166
Website

Re: nofollow in feed_link?

Beautiful! Well, ugly, but it solves my problem without ten lines of Txp. Thank you.

Offline

Board footer

Powered by FluxBB