dreikanter / public-static

Programmer's approach to web content management
https://github.com/dreikanter/public-static
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

Include Twitter Cards metadata #101

Closed dreikanter closed 10 years ago

dreikanter commented 10 years ago

Documentation: https://dev.twitter.com/docs/cards

Some examples:

<meta name="twitter:site" content="pixelapse" />
<meta name="twitter:title" content="Mac OS X Yosemite Under the Magnifying Glass" />
<meta name="twitter:description" content="A Detailed Look at the Design of Apple&#x27;s New OS - Apple revealed a sneak peek into Mac OS X Yosemite earlier this week. Not surprisingly, Apple updated its desktop OS to match iOS 7&#39;s design language. The new OS X now embodies a brighter and flatter styling, coupled with icon updates, font changes, and translucent materials. Here&#39;s a quick look at the visual design changes in Yosemite and my impressions of them." />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://data-pixelapse.s3.amazonaws.com/1/5776448/orig_3832043?AWSAccessKeyId=AKIAJXL2IXYH62T5HXDA&Expires=1717661704&Signature=FNuGtX8AES5%2BMtUgazkZjju4YmM%3D" />
<meta name="twitter:creator" content="lominming" />

Description should be filled from the page metadata field of the same name, or from the first paragraph, if there is no description in source header.