I would like to scan my website and flag every post where the meta description is shorter than X, but I haven’t been able to find a solution. I haven’t explored HTML proofer much since I can’t get it to run on my windows machine. Is there a tool tat could achieve this?
you could probably make a page with a bit of liquid to make a list of posts that meet that criteria - size
returns the number of characters in a string.
If you’re looking for a Ruby solution, you can try writing a plugin that parses the HTML with Nokogiri similar to how jekyll-mentions
and jemoji
does, only, you’d be focusing on the <head
instead of <body
Thank you both for the help. I think using size
is likely the simplest solution, as I would not really know how to write a plugin.