RMHogervorst / blog

posts about R
https://blog.rmhogervorst.nl
2 stars 1 forks source link

meta:description improvements #41

Closed RMHogervorst closed 1 year ago

RMHogervorst commented 1 year ago

All posts have rich html metadata that I created with hugo.

What works great is title, author etc.

metavalidator

title too long? description is short (it's the subtitle) them color?, keywords not set robots not set

Google structured data result

Open graph tags analyzer

article:published_time article:modified_time datetime article:tag should be tags(stringarray) article:author:

Linkedin

Schema.org

schema.org has all the right information: date published, date modified, image, keywords, it even has wordcount author is @type thing? not human?, name is correct.

https://www.clairecodes.com/blog/2019-05-03-meta-descriptions-in-hugo-templates/

RMHogervorst commented 1 year ago

Adding a description yaml adds the correct description to twitter. Correct for twitter Linkedin still not correct, type =article works. publish date not. linkedin uses og:description, but that one is still wrong?

RMHogervorst commented 1 year ago

metavalidator: description is a bit too long. keywords not working

twitter site is missing.

opengraph

linkedin checker

RMHogervorst commented 1 year ago

property="og:article:author" ?

Add this to rmhogervorst.nl

<meta property="og:type" content="profile">
<meta property="profile:first_name" content="Roel M.">
<meta property="profile:last_name" content="Hogervorst">
<meta property="profile:username" content="rmhogervorst"> 
RMHogervorst commented 1 year ago

superweird

So I have this <meta name=article-published_time property="og:article:published_time" content="2022-10-25T00:00:00+00:00"> NOS story has a functional datetime in sharing and has <meta content="2022-10-24T12:26:37+0200" property="og:article:published_time"/>

Does it pick up something else? It has a

I have <time class=dt-published datetime="2022-10-25 00:00:00 +0000 UTC">Posted on October 25, 2022</time> they have <time dateTime="2022-10-24T12:26:37+0200">vandaag, 12:26</time> so it might be the datetime formatting?

Changed to <time class=dt-published datetime=2022-10-25T00:00:00+00:00>Posted on October 25, 2022</time> sthill not working

RMHogervorst commented 1 year ago

fuck, it might be the dateTime?

RMHogervorst commented 1 year ago

<meta content="2022-10-24T13:49:14+0200" property="og:article:published_time"/>

RMHogervorst commented 1 year ago

<meta name=article-published_time property="og:article:published_time" content="2022-10-25T00:00:00+00:00">

RMHogervorst commented 1 year ago

alright, I don't know how NOS does it, but I can't get it to work