apinf / platform

Apinf - Open source API management platform with multi proxy and protocol support
https://apinf.com/
European Union Public License 1.1
74 stars 33 forks source link

Twitter summary card meta tags in views #2551

Open kyyberi opened 7 years ago

kyyberi commented 7 years ago

Story

As organization manager I want to see pretty summary card in Twitter about my organisation view. As organization manager I want to see pretty summary card in Twitter about each API in my organisation.

Expected sample result

kuvakaappaus 2017-05-11 07-25-14

<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@flickr" />
<meta name="twitter:title" content="Small Island Developing States Photo Submission" />
<meta name="twitter:description" content="View the album on Flickr." />
<meta name="twitter:image" content="https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg" />

Howto

https://dev.twitter.com/cards/types/summary

bajiat commented 7 years ago

@brylie Please comment.

The idea is useful.

Related to #2552

brylie commented 7 years ago

Basically, this boils down to the <head> ... </head> tags being generated on the server side, before sending the initial page to the client. Since we are technically building a 'single-page-app' the single page does not really change. After the initial page renders, the templating language 'Blaze' handles changes to the page <body> ... </body> on the client side, dynamically.

As mentioned in the other issue, there are some possible solutions here, but I can't say with 100% confidence we will solve both this and #2552.

ilarimikkonen commented 6 years ago

icoboxibg