-
Hi, I am trying to remove detailpages of any events with (enddate < now) from my google index without hiding the event, since they are still needed for an archive listview. My idea was to set noindex, nofollow on condition with TS:
This is not working, I am kind of stuck. |
Beta Was this translation helpful? Give feedback.
Answered by
derhansen
Jun 28, 2022
Replies: 1 comment 2 replies
-
Try this in your
The condition compared the unix timestamp of the enddate of the event with the current unix timestamp and if the event enddate is reached, the additional meta tag is rendered. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
wilbv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this in your
Detail.html
template:The condition compared the unix timestamp of the enddate of the event with the current unix timestamp and if the event enddate is reached, the additional meta tag is rendered.