I noticed that none of the pages on snippets.bentasker.co.uk have tags associated with them in results.
They definitely have meta keywords (although the inclusion of title is less than ideal):
<meta name="keywords" content="NGinx,Caching POST requests in NGinx,nginx,caching,HTTP,reverse proxy,cache,POST" />
Activity
03-Jun-24 17:05
assigned to @btasker
03-Jun-24 17:07
The issue is quite subtle:
If I were to insert a
print(keywords)we'd get the HTML element back.However, it's not a string and the length of it is reported as
0, so we never enter the conditional. We should check the length of attributecontent(and of course checking that exists)03-Jun-24 17:09
mentioned in commit 87c4b17618bdf79dde39c1d99b779e0691460999
Commit: 87c4b17618bdf79dde39c1d99b779e0691460999 Author: B Tasker Date: 2024-06-03T18:08:48.000+01:00Message
fix: check for presence of meta keywords correctly (utilities/file_location_listing#58)
03-Jun-24 17:12
mentioned in commit fecdc7110b47c08d4eaad90d2cdce99e6806a842
Commit: fecdc7110b47c08d4eaad90d2cdce99e6806a842 Author: B Tasker Date: 2024-06-03T18:12:37.000+01:00Message
fix: Skip a keyword if it appears to be the page title (noticed in utilities/file_location_listing#58)