When posting any content on the site, I often spend an unnecessary amount of time copying/pasting metadata at the head
of my page to ensure the content is recognized by Google, Facebook, Twitter, Pinterest, and so on when shared or crawled.
Here is an example of what I have to generate:
<title>All About Mergesort</title>
<meta name="author" content="Kirupa Chinnathambi" />
<meta itemprop="name" content="All About Mergesort">
<meta property="og:type" content="article" />
<meta itemprop="description" content="Learn all about how mergesort works to sort your data really REALLY quickly.">
<meta itemprop="image" content="https://www.kirupa.com/images/s/11.png">
<meta property="og:title" content="All About Mergesort">
<meta property="og:url" content="https://www.kirupa.com/sorts/mergesort.htm">
<meta property="og:image" content="https://www.kirupa.com/images/s/11.png">
<meta property="og:description" content="Learn all about how mergesort works to sort your data really REALLY quickly.">
<meta property="og:site_name" content="kirupa.com" />
<meta content="summary_large_image" name="twitter:card">
<meta content="@kirupa" name="twitter:site">
<meta content="@kirupa" name="twitter:creator">
<meta content="All About Mergesort" name="twitter:title">
<meta content="Learn all about how mergesort works to sort your data really REALLY quickly." name="twitter:description">
<meta name="twitter:image:src" content="https://www.kirupa.com/images/s/11.png">
To make all of this simpler, I created a simple metadata generator that allows anybody to input the relevant details about their content, and the tool will create all of the copy/pasteable metadata values that you can add to your own pages:
If you’ve ever found yourself in a situation where you needed to generate all of the twitter card, open graph, structured schema, and related details for your content, hopefully this tool helps.
If you have any ideas on what to improve, tags to add/remove, and so on, feel free to comment below or make a pull request with your proposed changes!
Cheers,
Kirupa