Hugo add meta for Facebook and Twitter share link preview

After analyze a example link that can preview in Facebook & Twitter and search Google, I found it just need to add some meta on blog post’s html header.  One guy give an example code below. His blog post about this solution: https://vietlq.github.io/2017/04/30/access-hugo-page-variables/ His github gist about this code: https://gist.github.com/vietlq/d1c7ecfb20ce7beac4a7f4df746c797c Reference: https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary.htmlhttps://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/markup.htmlhttps://cards-dev.twitter.com/validator